/* TidyPlan — landing and policy pages.
   Palette = the app's own zone colors on a pale "freshly cleaned" mint. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #18323a;
  --ink-soft: #4a6168;
  --paper: #eef6f4;
  --sheet: #ffffff;
  --line: #cfe2de;
  --teal: #2a9d8f;
  --teal-deep: #1b6f66;
  --apricot: #f4a261;
  --lilac: #8e7dbe;
  --steel: #457b9d;

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  /* Faint planner grid: the page itself is squared paper. */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--sheet);
  padding: 0.5rem 0.9rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 1.25rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg {
  flex: none;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: var(--step--1);
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.site-nav a:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Let the chart scroll inside its sheet instead of widening the page. */
.hero .wrap > * {
  min-width: 0;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
}
.hero h1 .tick-word {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--apricot) 55%, transparent) 62%);
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 34ch;
}
.actions {
  display: flex;
  gap: 0.75rem 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  display: inline-block;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ink);
}
.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.facts {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.facts li::before {
  content: "☑ ";
  color: var(--teal);
}

/* ---------- Signature: the chart on the fridge ---------- */

.fridge {
  position: relative;
  padding-top: 1.1rem;
}
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 6px;
  padding: 1.4rem 1.2rem 1.1rem;
  box-shadow:
    0 1px 0 rgba(24, 50, 58, 0.06),
    0 18px 40px -18px rgba(24, 50, 58, 0.45);
  transform: rotate(-1.6deg);
}
.magnet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: -1.3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2ab, var(--apricot) 55%, #d97f3b);
  box-shadow: 0 6px 10px -4px rgba(24, 50, 58, 0.5);
  z-index: 2;
}
.sheet-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.sheet-range {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
}
.chart-scroll {
  overflow-x: auto;
}
.chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  line-height: 1.25;
  min-width: 34rem;
}
.chart th,
.chart td {
  border: 1px solid #dfe8e6;
  padding: 0.35rem 0.4rem;
  vertical-align: top;
  text-align: left;
}
.chart thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 0.72rem;
}
.chart tbody th {
  font-weight: 700;
  white-space: nowrap;
}
.zone-kitchen {
  background: color-mix(in srgb, var(--apricot) 22%, #fff);
}
.zone-bath {
  background: color-mix(in srgb, var(--teal) 18%, #fff);
}
.zone-living {
  background: color-mix(in srgb, var(--lilac) 18%, #fff);
}
.zone-kitchen th {
  background: color-mix(in srgb, var(--apricot) 40%, #fff);
}
.zone-bath th {
  background: color-mix(in srgb, var(--teal) 32%, #fff);
}
.zone-living th {
  background: color-mix(in srgb, var(--lilac) 32%, #fff);
}

.task {
  display: flex;
  gap: 0.3rem;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 0.2rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.task:last-child {
  margin-bottom: 0;
}
.box {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.05rem;
}
.box rect {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.box path {
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.35s ease-out;
}
.task[aria-pressed="true"] .box path {
  stroke-dashoffset: 0;
}
.task[aria-pressed="true"] .label {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
}
.sheet-footer {
  margin: 0.75rem 0 0;
  font-size: 0.74rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}
.sheet-footer strong {
  font-weight: 700;
}
.swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.3rem;
  vertical-align: -0.05rem;
}
.hint {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section-band {
  background: var(--sheet);
  border-block: 1px solid var(--line);
}
.section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}
.section .intro {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 2.25rem;
}

/* How it works: the real order of the app's tabs, so an ordered list */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.how-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.how-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.6rem;
}
/* Number badge */
.how-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--apricot);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}
/* Line joining the steps */
.how-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 2.5rem;
  bottom: 0.3rem;
  border-left: 2px dashed var(--line);
}
.how-steps h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}
.how-steps p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}
.good {
  position: sticky;
  top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
}
.good h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.good ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: var(--step--1);
}
.good li + li {
  margin-top: 0.5rem;
}

/* Rule -> dates, inside the tasks step */
.rules {
  display: grid;
  /* One column per part, shared by all rows, sized to the longest phrase. */
  grid-template-columns: max-content auto minmax(0, 1fr);
  gap: 0.6rem 0.9rem;
  align-items: center;
  margin: 1rem 0 0;
}
.rule {
  display: contents;
}
.rule dt {
  font-family: var(--mono);
  font-weight: 500;
  background: var(--paper);
  border: 1px dashed var(--teal);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
}
.rule .arrow {
  color: var(--teal);
  font-family: var(--mono);
}
.rule dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.date {
  font-family: var(--mono);
  font-size: var(--step--1);
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}
.date.note {
  background: var(--apricot);
  color: var(--ink);
}
.rules-note {
  margin: 0.8rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* App screenshots: the real panel, framed like Canva's side panel */
.shots {
  display: grid;
  max-width: 58rem;
  /* Always one row; on narrow screens the row scrolls sideways. */
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 1fr);
  overflow-x: auto;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 36px -24px rgba(24, 50, 58, 0.55);
}
.shot figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
}
.see-more {
  margin: 1rem 0 0;
  font-weight: 700;
}

/* Screenshots page */
.page-head {
  padding-bottom: 1rem;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.page-head .intro {
  margin-bottom: 0;
}
.cals {
  display: grid;
  max-width: 44rem;
  /* Portrait month next to landscape week, both the same height. */
  grid-template-columns: minmax(0, 0.707fr) minmax(0, 1.414fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.cal {
  margin: 0;
}
.cal img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 36px -24px rgba(24, 50, 58, 0.55);
}
.cal figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.cal figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
}
/* Calendar or list: the two outputs side by side, as printed pages. */
.kinds {
  display: grid;
  max-width: 46rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: start;
}
.kind {
  margin: 0;
}
.kind img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 36px -24px rgba(24, 50, 58, 0.55);
}
.kind figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.kind figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
}
.zoom-hint {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.zoom {
  display: block;
  cursor: zoom-in;
  border-radius: 14px;
}
.zoom img {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.zoom:hover img {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -22px rgba(24, 50, 58, 0.65);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(24, 50, 58, 0.78);
}
.lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 10px;
}
.lightbox-close {
  display: block;
  margin: 0.75rem auto 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--sheet);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}
.shots-note {
  margin: 1.25rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Templates */
.templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.template {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 8px solid var(--zone, var(--teal));
  border-radius: 6px;
  padding: 1rem 1.1rem;
}
.template h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}
.template p {
  margin: 0 0 0.7rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.template .includes {
  font-size: 0.82rem;
  color: var(--ink);
}
.includes span {
  font-weight: 700;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  background: var(--teal-deep);
  color: #fff;
}
.tag.later {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--ink-soft);
}

/* ---------- Text pages (privacy, terms, support) ---------- */

.doc {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}
.doc article {
  background: var(--sheet);
  border-radius: 6px;
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 46rem;
  box-shadow: 0 18px 40px -26px rgba(24, 50, 58, 0.45);
}
.doc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.4rem;
}
.doc .updated {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-1);
  margin: 2rem 0 0.4rem;
}
.doc p,
.doc li {
  max-width: 64ch;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 36rem) {
  .kinds {
    grid-template-columns: minmax(0, 1fr);
    max-width: 22rem;
  }
}

@media (max-width: 52rem) {
  .cals {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots {
    gap: 0.75rem;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet {
    transform: rotate(-0.8deg);
  }
  .how {
    grid-template-columns: minmax(0, 1fr);
  }
  .good {
    position: static;
  }
  .rules {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
  .rule dd {
    margin-bottom: 0.6rem;
  }
  .rule .arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoom img,
  .box path,
  .button {
    transition: none;
  }
}
