/* ============================================================
   THE FRIDGE — landing page
   Signal v2.2. Flat ink on cream. Hairlines, no gradients,
   no radii, no shadows — except paper, which may rotate, cast
   a soft shadow and wear a circular ink magnet.
   Colour only ever means calendar category.
   ============================================================ */

:root {
  --paper:       #FFF4E4;
  --card:        #FFF9EE;
  --ink:         #141210;
  --text:        #141210;
  --text-dim:    #4A423B;
  --label:       #6E6459;
  --muted:       #726859;
  --faint:       #C0B3A1;
  --cell:        #FFF4E4;
  --cell-weekend:#F8ECD6;
  --rule:        #141210;
  --rule-soft:   rgba(20,18,16,.16);
  --rule-hair:   rgba(20,18,16,.12);
  --edge:        #141210;
  --gold:        #FFC93C;

  /* category colours — semantics fixed, same seven as the app */
  --c-shared:   #FF4D8D;
  --c-work:     #FF8A3D;
  --c-shift:    #00BFA5;
  --c-personal: #FFC53D;
  --c-family:   #8C7BFF;
  --c-holiday:  #38B6E3;
  --c-birthday: #E14EC8;

  /* paper is a material, not a theme — it stays paper in the dark */
  --note-bg:     #FFFEF9;
  --photo-bg:    #FDFDF8;
  --photo-fill:  #E8E4DA;
  --paper-ink:   #141210;
  --paper-shadow: 2px 3px 7px rgba(20,18,16,.18);
  --magnet:      #141210;

  --hair: 1px;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;

  --gutter: 20px;
  --pad-y: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #0C0C0F;
    --card:        #141418;
    --ink:         #FFF4E4;
    --text:        #FFF4E4;
    --text-dim:    #B0A597;
    --label:       #8A8279;
    --muted:       #8A8279;
    --faint:       #45454C;
    --cell:        #16161A;
    --cell-weekend:#1C1C22;
    --rule:        rgba(255,244,228,.35);
    --rule-soft:   rgba(255,244,228,.14);
    --rule-hair:   rgba(255,244,228,.10);
    --edge:        rgba(255,244,228,.28);
    --paper-shadow: 4px 6px 18px rgba(0,0,0,.55);
  }
}

:root[data-theme="dark"] {
  --paper:       #0C0C0F;
  --card:        #141418;
  --ink:         #FFF4E4;
  --text:        #FFF4E4;
  --text-dim:    #B0A597;
  --label:       #8A8279;
  --muted:       #8A8279;
  --faint:       #45454C;
  --cell:        #16161A;
  --cell-weekend:#1C1C22;
  --rule:        rgba(255,244,228,.35);
  --rule-soft:   rgba(255,244,228,.14);
  --rule-hair:   rgba(255,244,228,.10);
  --edge:        rgba(255,244,228,.28);
  --paper-shadow: 4px 6px 18px rgba(0,0,0,.55);
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --pad-y: 96px; }
}

/* ============ BASE ============ */

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 20;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ============ SHARED TYPE ============ */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.35rem, 8.4vw, 4.15rem);
  line-height: .9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 4.6vw, 2.3rem);
  line-height: .96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.eyebrow, .kicker, .wordmark {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--label);
}
.kicker { letter-spacing: .22em; }

.lede {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 46ch;
}

.body {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 48ch;
}

.cta-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
  max-width: 40ch;
}

/* ============ BUTTON ============ */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 18px 34px;
  min-height: 56px;
  border: var(--hair) solid var(--ink);
  transition: background .12s, color .12s;
}
.btn:hover, .btn:focus-visible { background: var(--paper); color: var(--ink); }
.btn:active { opacity: .82; }

.cta-row { margin-top: 8px; }

.quiet-link {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
  padding: 14px 0;
  display: inline-block;
  border-bottom: var(--hair) solid transparent;
}
.quiet-link:hover, .quiet-link:focus-visible { color: var(--text); border-bottom-color: var(--rule); }

/* ============ TOP BAR ============ */

.topbar { border-bottom: var(--hair) solid var(--rule-soft); }
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

/* ============ HAND-DRAWN MARKS (31px box, hairline) ============ */

.mark {
  width: 31px; height: 31px;
  border: var(--hair) solid var(--edge);
  position: relative;
  flex: 0 0 auto;
  display: block;
  margin-bottom: 18px;
}

/* a note on a magnet */
.mark-note::before {
  content: ""; position: absolute;
  left: 7px; top: 10px; width: 15px; height: 12px;
  border: 1px solid var(--ink);
  transform: rotate(-5deg);
}
.mark-note::after {
  content: ""; position: absolute;
  left: 13px; top: 7px; width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

/* a calendar — a page with two tabs and a header rule */
.mark-cal::before {
  content: ""; position: absolute;
  left: 6px; top: 9px; width: 19px; height: 16px;
  border: 1px solid var(--ink);
}
.mark-cal::after {
  content: ""; position: absolute;
  left: 6px; top: 14px; width: 19px; height: 1.5px;
  background: var(--ink);
}
.mark-cal i { position: absolute; top: 5px; width: 2px; height: 5px; background: var(--ink); }
.mark-cal i:nth-child(1) { left: 11px; }
.mark-cal i:nth-child(2) { left: 19px; }

/* a tiny list — two box + line rows, second one ticked */
.mark-list i:nth-child(1) { position: absolute; left: 7px; top: 8px; width: 5px; height: 5px; border: 1px solid var(--ink); }
.mark-list i:nth-child(2) { position: absolute; left: 15px; top: 10px; width: 10px; height: 1.5px; background: var(--ink); }
.mark-list i:nth-child(3) { position: absolute; left: 7px; top: 18px; width: 5px; height: 5px; background: var(--ink); }
.mark-list i:nth-child(4) { position: absolute; left: 15px; top: 20px; width: 10px; height: 1.5px; background: var(--ink); }

/* the bell — deliberately literal */
.mark-bell i { position: absolute; }
.mark-bell .b-body {
  left: 9px; top: 8px; width: 11px; height: 9px;
  border: 1.5px solid var(--ink);
  border-bottom: none;
  border-radius: 5.5px 5.5px 1px 1px;
}
.mark-bell .b-rim { left: 7px; top: 17px; width: 15px; height: 1.5px; background: var(--ink); }
.mark-bell .b-clapper { left: 13px; top: 19.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.mark-bell .b-cap { left: 13.5px; top: 5.5px; width: 2px; height: 2px; border-radius: 50%; background: var(--ink); }

/* shift painter: three day cells, first empty */
.mark-paint { width: 31px; height: 31px; }
.mark-paint i { position: absolute; top: 8px; width: 5px; height: 13px; border: 1px solid var(--ink); }
.mark-paint i:nth-child(1) { left: 5px; }
.mark-paint i:nth-child(2) { left: 12px; background: var(--ink); }
.mark-paint i:nth-child(3) { left: 19px; background: var(--ink); }

/* ============ PAPER — the one material with rotation + shadow ============ */

.paper-note {
  padding: 13px 13px 15px;
  background: var(--note-bg);
  color: var(--paper-ink);
  box-shadow: var(--paper-shadow);
  position: relative;
  width: var(--note-w, 172px);
  max-width: 100%;
}
.paper-note::before,
.polaroid::before,
.list-card::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;        /* the magnet — the only circle allowed */
  background: var(--magnet);
  z-index: 1;
}
.paper-note .pn-from {
  font-size: 7.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(20,18,16,.6);
  margin-bottom: 5px;
}
.paper-note .pn-text { font-size: 13px; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.paper-note.sm { --note-w: 148px; }

.polaroid {
  background: var(--photo-bg);
  color: var(--paper-ink);
  padding: 7px 7px 6px;
  width: var(--pol-w, 124px);
  box-shadow: var(--paper-shadow);
  position: relative;
}
.pol-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--photo-fill);
  position: relative;
  overflow: hidden;
}
.pol-photo .ph-sun {
  position: absolute; right: 20%; top: 18%;
  width: 17%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(20,18,16,.58);
}
.pol-photo .ph-horizon {
  position: absolute; left: 0; right: 0; top: 60%;
  height: 1.5px; background: rgba(20,18,16,.58);
}
.pol-photo .ph-block {
  position: absolute; left: 16%; bottom: 0; width: 30%; height: 30%;
  background: rgba(20,18,16,.58);
}
.polaroid .pol-caption {
  font-size: 10px; font-weight: 700;
  text-align: center;
  padding: 8px 2px 2px;
  line-height: 1.25;
}
.polaroid .pol-from {
  font-size: 7px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(20,18,16,.45);
  text-align: center;
  padding-bottom: 2px;
}

.list-card {
  width: var(--list-w, 168px);
  background: var(--note-bg);
  color: var(--paper-ink);
  padding: 13px 13px 11px;
  box-shadow: var(--paper-shadow);
  position: relative;
}
.list-card.wide { --list-w: 236px; }
.list-card .lc-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 9px;
}
.list-card .lc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.list-card .lc-box { width: 11px; height: 11px; border: 1px solid #141210; flex: 0 0 auto; }
.list-card .lc-box.done { background: #141210; }
.list-card .lc-label { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.list-card .lc-label.done { text-decoration: line-through; color: rgba(20,18,16,.45); }
.list-card .lc-foot {
  font-size: 7.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(20,18,16,.6);
  margin-top: 10px;
}

.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(1.8deg); }

/* ============ HERO ============ */

.hero { padding: 44px 0 var(--pad-y); }

.hero-in {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-copy .eyebrow { margin-bottom: -4px; }
.hero-copy .cta-row { margin-top: 4px; }

/* the fridge door */
.door {
  background: var(--card);
  border: var(--hair) solid var(--edge);
  padding: 22px 44px 26px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 10px;
  align-content: flex-start;
  align-items: flex-start;
  position: relative;
  min-height: 300px;
}

/* the door handle — a bar and two brackets, flat ink, scales with the door */
.door-handle {
  position: absolute;
  top: 15%; bottom: 15%;
  right: 16px;
  width: 10px;
  background: var(--ink);
  border-left: var(--hair) solid var(--card);
  border-right: var(--hair) solid var(--card);
}
.door-handle::before,
.door-handle::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 21px; height: 9px;
  background: var(--ink);
}
.door-handle::before { top: 0; }
.door-handle::after { bottom: 0; }

.door .prop-a { --note-w: 100%; transform: rotate(-1.6deg); }
.door .prop-b { --pol-w: 106px; transform: rotate(2.2deg); }
.door .prop-c { --list-w: 146px; transform: rotate(-1.4deg); }

@media (min-width: 560px) {
  .door { padding: 30px 60px 34px 24px; gap: 26px 18px; }
  .door-handle { right: 22px; }
  .door .prop-a { --note-w: 186px; }
  .door .prop-b { --pol-w: 128px; }
  .door .prop-c { --list-w: 168px; }
}

@media (min-width: 940px) {
  .hero-in {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .hero-copy { flex: 1 1 52%; }
  .hero-door { flex: 1 1 48%; min-width: 0; }
  .door { min-height: 420px; }
}

/* ============ FEATURES ============ */

.feature { border-top: var(--hair) solid var(--rule-soft); padding: var(--pad-y) 0; }
/* .alt hands the padding and rules over to the tinted band inside it */
.feature.alt { border-top: none; padding: 0; }
.f-band {
  background: var(--card);
  border-top: var(--hair) solid var(--rule-soft);
  border-bottom: var(--hair) solid var(--rule-soft);
  padding: var(--pad-y) 0;
}

.feature-in {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.f-copy { display: flex; flex-direction: column; gap: 14px; }
.f-copy .kicker { margin-bottom: -6px; }
.f-copy .mark { margin-bottom: 4px; }

.f-demo { display: flex; }

.stage {
  flex: 1;
  background: var(--card);
  border: var(--hair) solid var(--rule-soft);
  padding: 34px 22px 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 16px;
  align-items: flex-start;
  justify-content: center;
}
.f-band .stage { background: var(--paper); }

@media (min-width: 880px) {
  .feature-in {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .f-copy { flex: 1 1 46%; }
  .f-demo { flex: 1 1 54%; min-width: 0; }
  .feature:nth-of-type(even) .f-copy { order: 2; }
}

/* ---- the calendar set-piece ---- */

.cal { width: 100%; max-width: 340px; }
.cal-legend { display: flex; gap: 0; margin-bottom: 12px; }
.cal-legend i { flex: 1; height: 7px; background: var(--cat); }

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cal-dow span {
  font-size: 8px; font-weight: 800; letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--label);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: var(--hair) solid var(--rule-soft);
  border-left: var(--hair) solid var(--rule-soft);
}
.cal-cell {
  border-right: var(--hair) solid var(--rule-soft);
  border-bottom: var(--hair) solid var(--rule-soft);
  background: var(--cell);
  min-height: 42px;
  padding: 4px 3px;
}
.cal-cell.wknd { background: var(--cell-weekend); }
.cal-cell b { font-size: 9px; font-weight: 800; color: var(--text-dim); display: block; }
.cal-cell .pill { display: block; height: 5px; background: var(--cat); margin-top: 4px; }

.cal-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
}
.cal-cap .mark { margin-bottom: 0; }

/* ---- the notification set-piece ---- */

.banner {
  width: 100%;
  max-width: 300px;
  background: var(--card);
  border: var(--hair) solid var(--rule-soft);
  padding: 13px 14px 14px;
  color: var(--text);
}
.f-band .banner { background: var(--card); border-color: var(--rule-soft); }
.banner.b2 { opacity: .62; }
.bn-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--label);
  margin-bottom: 9px;
}
.bn-icon {
  width: 15px; height: 15px;
  background: var(--ink);
  position: relative;
  flex: 0 0 auto;
}
.bn-icon::after {
  content: "";
  position: absolute;
  left: 4px; top: 4px; width: 7px; height: 7px;
  background: var(--paper);
}
.bn-time { margin-left: auto; letter-spacing: .10em; }
.bn-title { font-size: 13px; font-weight: 800; letter-spacing: .01em; margin-bottom: 3px; }
.bn-text { font-size: 13px; font-weight: 500; color: var(--text-dim); line-height: 1.4; }

/* ============ HOW IT WORKS ============ */

.how {
  border-top: var(--hair) solid var(--rule-soft);
  padding: var(--pad-y) 0;
}
.how-title { margin-bottom: 34px; }

.steps { list-style: none; display: grid; gap: 0; }
.step {
  border-top: var(--hair) solid var(--rule-soft);
  padding: 24px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step:last-child { border-bottom: var(--hair) solid var(--rule-soft); }
.step-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--faint);
}
.step-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.how-cta { margin-top: 34px; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: var(--hair) solid var(--rule-soft); }
  .step {
    border-top: none;
    border-left: var(--hair) solid var(--rule-soft);
    padding: 26px 24px 30px;
  }
  .step:first-child { border-left: none; padding-left: 0; }
  .step:last-child { border-bottom: none; }
}

/* ============ HONESTY ============ */

.honest {
  border-top: var(--hair) solid var(--rule-soft);
  padding: var(--pad-y) 0;
}
.honest-in {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.honest-copy { display: flex; flex-direction: column; gap: 14px; }
.honest-copy .kicker { margin-bottom: -6px; }
.honest-prop { display: flex; justify-content: flex-start; padding-top: 10px; }
.honest-prop .paper-note { --note-w: 200px; }

@media (min-width: 880px) {
  .honest-in { flex-direction: row; align-items: center; gap: 64px; }
  .honest-copy { flex: 1 1 62%; }
  .honest-prop { flex: 1 1 38%; justify-content: center; }
}

/* ============ FOOTER ============ */

.foot { border-top: var(--hair) solid var(--rule); }
.foot-in {
  padding-top: 26px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foot-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: var(--hair) solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); border-bottom-color: var(--rule); }
.foot-links .dot { width: 3px; height: 3px; background: var(--faint); flex: 0 0 auto; }

@media (min-width: 760px) {
  .foot-in { flex-direction: row; align-items: center; justify-content: space-between; }
}
