/* The home page: the Tail10 design system's tokens (Quiet, combined), the day rail, the carousels and the
   dusk-and-hill footer. Dark mode follows the system unless the visitor picked a mode (theme.js sets data-theme). */

:root {
  --page: #FBFBF8; --card: #FFFFFF; --fill: rgba(18,21,20,.06); --wash: #E9F0EE;
  --ink: #121514; --ink-2: #626966; --ink-3: #6E7572; --line: #E6E7E2; --line-2: #CDD0CA; --on-ink: #FFFFFF;
  --accent: #0F766E; --accent-text: #0F766E; --due-end: #0B625B;
  --outside: #7C2D12; --normal: rgba(21,128,61,.12); --normal-edge: #439962; --chart-area: #CFE8E4; --stem: rgba(98,105,102,.75);
  --golden: #A08224; --golden-wash: #F4EDD6; --charcoal: #33383E; --charcoal-wash: #EAECEC;
  --dusk: #F8D6BE; --dusk-light: #F2A54A; --night: #3D4B6E; --hill: #C4E5DA; --hill-line: rgba(28,39,36,.14); --on-hill: #1C2724; --on-hill-2: #4A5A55;
  --hero-top: #FBEBDD; --note-yellow: #BE860D; --note-yellow-tint: #EFE4C9; --note-green-tint: #D4DACC;
  --sh-card: 0 0 0 .5px rgba(60,40,12,.11), 0 10px 22px -16px rgba(96,62,20,.4);
  --sh-tile: 0 0 0 .5px rgba(60,40,12,.12), 0 8px 18px -14px rgba(96,62,20,.4);
  --sh-hero: 0 20px 30px -20px rgba(11,98,91,.8), inset 0 1px 0 rgba(255,255,255,.18);
  --sh-panel: 0 22px 44px -14px rgba(60,40,12,.36), 0 2px 6px rgba(60,40,12,.08), 0 0 0 .5px rgba(60,40,12,.12);
  --rounded: ui-rounded, "SF Pro Rounded", Nunito, -apple-system, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
:root[data-theme="dark"] {
    --page: #131514; --card: #1E2221; --fill: rgba(255,255,255,.09); --wash: #1E2A28;
    --ink: #F1F2EF; --ink-2: #A2A8A4; --ink-3: #79807C; --line: #2A2E2B; --line-2: #3B403D; --on-ink: #131514;
    --accent-text: #14A090; --outside: #FF8F00; --normal-edge: #36915A; --chart-area: #13342F; --stem: rgba(162,168,164,.75);
    --golden: #E2C46A; --golden-wash: #2B2716; --charcoal: #8E969E; --charcoal-wash: #222528;
    --dusk: #1E2E4E; --dusk-light: #ECE7D4; --night: #7F8FBF; --hill: #143E43; --hill-line: rgba(255,255,255,.13); --on-hill: #E8F1EE; --on-hill-2: #9DB8B4;
    --note-yellow: #A76B20; --note-yellow-tint: #3F2F18; --note-green-tint: #4A5344;
    --sh-card: 0 0 0 .5px rgba(255,255,255,.1); --sh-tile: 0 0 0 .5px rgba(255,255,255,.1);
    --sh-hero: 0 20px 30px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.16);
    --sh-panel: 0 22px 44px -14px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.12);
    --note-blue: #226CBB; --note-green: #CFEAB8; --note-purple: #D7BADE;
  --note-blue-tint: #182F46; --note-purple-tint: #4E4751;
    --hero-top: #2A2620;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #131514; --card: #1E2221; --fill: rgba(255,255,255,.09); --wash: #1E2A28;
    --ink: #F1F2EF; --ink-2: #A2A8A4; --ink-3: #79807C; --line: #2A2E2B; --line-2: #3B403D; --on-ink: #131514;
    --accent-text: #14A090; --outside: #FF8F00; --normal-edge: #36915A; --chart-area: #13342F; --stem: rgba(162,168,164,.75);
    --golden: #E2C46A; --golden-wash: #2B2716; --charcoal: #8E969E; --charcoal-wash: #222528;
    --dusk: #1E2E4E; --dusk-light: #ECE7D4; --night: #7F8FBF; --hill: #143E43; --hill-line: rgba(255,255,255,.13); --on-hill: #E8F1EE; --on-hill-2: #9DB8B4;
    --note-yellow: #A76B20; --note-yellow-tint: #3F2F18; --note-green-tint: #4A5344;
    --sh-card: 0 0 0 .5px rgba(255,255,255,.1); --sh-tile: 0 0 0 .5px rgba(255,255,255,.1);
    --sh-hero: 0 20px 30px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.16);
    --sh-panel: 0 22px 44px -14px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.12);
    --note-blue: #226CBB; --note-green: #CFEAB8; --note-purple: #D7BADE;
  --note-blue-tint: #182F46; --note-purple-tint: #4E4751;
    --hero-top: #2A2620;
  }
}
:root[data-theme="dark"] .lt { display: none !important; }
:root[data-theme="dark"] .dk { display: inline-block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lt { display: none !important; }
  :root:not([data-theme="light"]) .dk { display: inline-block !important; }
}
.dk { display: none; }

* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nw { white-space: nowrap; }

/* Type */
.sent { font-family: var(--rounded); font-weight: 400; margin: 0; color: var(--ink); text-wrap: balance; }
.sent b { font-weight: 700; }
.h1 { font-size: clamp(46px, 6.2vw, 76px); line-height: 1.05; }
.h2 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.1; }
.h3 { font-size: 28px; line-height: 34px; }
.lede { font: 400 19px/28px var(--text); color: var(--ink-2); margin: 0; text-wrap: pretty; }
.label { font: 600 15px/20px var(--text); color: var(--ink); margin: 0; }
.small { font: 400 13px/18px var(--text); color: var(--ink-2); margin: 0; }

/* I3 icons, drawn in ink-2 through a mask */
.ic { display: inline-block; flex: none; width: 24px; height: 24px; background: var(--ink-2);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ic.s15 { width: 15px; height: 15px; } .ic.s18 { width: 18px; height: 18px; }
.ic.s28 { width: 28px; height: 28px; } .ic.s32 { width: 32px; height: 32px; } .ic.s40 { width: 40px; height: 40px; }
.ic.ink { background: var(--ink); } .ic.white { background: #FFFFFF; }
.i-vet { -webkit-mask-image: url(assets/kinds/kind-vet.svg); mask-image: url(assets/kinds/kind-vet.svg); }
.i-med { -webkit-mask-image: url(assets/kinds/kind-medication.svg); mask-image: url(assets/kinds/kind-medication.svg); }
.i-vacc { -webkit-mask-image: url(assets/kinds/kind-vaccination.svg); mask-image: url(assets/kinds/kind-vaccination.svg); }
.i-food { -webkit-mask-image: url(assets/kinds/kind-food.svg); mask-image: url(assets/kinds/kind-food.svg); }
.i-stool { -webkit-mask-image: url(assets/kinds/kind-stool.svg); mask-image: url(assets/kinds/kind-stool.svg); }
.i-weight { -webkit-mask-image: url(assets/kinds/kind-weight.svg); mask-image: url(assets/kinds/kind-weight.svg); }
.i-temp { -webkit-mask-image: url(assets/kinds/kind-temperature.svg); mask-image: url(assets/kinds/kind-temperature.svg); }
.i-note { -webkit-mask-image: url(assets/kinds/kind-note.svg); mask-image: url(assets/kinds/kind-note.svg); }
.i-lab { -webkit-mask-image: url(assets/kinds/kind-lab.svg); mask-image: url(assets/kinds/kind-lab.svg); }
.i-cond { -webkit-mask-image: url(assets/kinds/kind-condition.svg); mask-image: url(assets/kinds/kind-condition.svg); }
.i-symp { -webkit-mask-image: url(assets/kinds/kind-symptom.svg); mask-image: url(assets/kinds/kind-symptom.svg); }
.i-resp { -webkit-mask-image: url(assets/kinds/kind-respiratory.svg); mask-image: url(assets/kinds/kind-respiratory.svg); }
.i-groom { -webkit-mask-image: url(assets/kinds/kind-grooming.svg); mask-image: url(assets/kinds/kind-grooming.svg); }
.i-supp { -webkit-mask-image: url(assets/kinds/kind-supplement.svg); mask-image: url(assets/kinds/kind-supplement.svg); }
.i-allergy { -webkit-mask-image: url(assets/kinds/kind-allergy.svg); mask-image: url(assets/kinds/kind-allergy.svg); }
.i-none { visibility: hidden; }
/* Line icons for privacy, stroke drawn inline */
.li { width: 32px; height: 32px; color: var(--ink-2); flex: none; }

/* Navigation and buttons */
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav .logo { line-height: 0; }
.nav .logo img { height: 32px; width: auto; }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { font: 500 15px/20px var(--text); color: var(--ink-2); text-decoration: none; }
.nav .links a:hover { color: var(--ink); }
.cap { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 17px/22px var(--text); text-decoration: none; }
.cap-line { border: 1px solid var(--line-2); color: var(--ink); }
.cap-ink { background: var(--ink); color: var(--on-ink); min-height: 40px; padding: 0 18px; font-size: 15px; }
.cap-ink:hover { color: var(--on-ink); opacity: .9; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 48px; width: auto; }
.facts { font: 400 15px/20px var(--text); color: var(--ink-2); margin: 0; }

/* Feature rows: a 28 pt icon, a title and a line */
.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.row .ic { width: 28px; height: 28px; margin-top: -2px; }
.row b { display: block; font: 600 17px/22px var(--text); color: var(--ink); }
.row span { display: block; font: 400 15px/21px var(--text); color: var(--ink-2); margin-top: 3px; }

/* Drawn app screens */
.screen { width: 100%; max-width: 400px; border-radius: 44px; background: linear-gradient(180deg, var(--wash) 0, var(--page) 280px);
  box-shadow: var(--sh-panel); padding: 30px 18px 22px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.screen.golden { background: linear-gradient(180deg, var(--golden-wash) 0, var(--page) 300px); }
.screen .sent { padding: 0 6px; }
.av { width: 44px; height: 44px; border-radius: 999px; flex: none; display: block; }
.av.s40 { width: 40px; height: 40px; } .av.s32 { width: 32px; height: 32px; }
.ring { box-shadow: 0 0 0 3px var(--card), 0 0 0 7px var(--golden); }
.due { border-radius: 28px; background: linear-gradient(165deg, #0F766E, #0B625B); color: #FFFFFF; padding: 16px 16px 4px; box-shadow: var(--sh-hero); }
.due-top { display: flex; justify-content: space-between; align-items: center; font: 600 15px/20px var(--text); padding-bottom: 6px; }
.due-top span + span { font-weight: 400; color: rgba(255,255,255,.9); }
.due-it { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.due-it .av { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.due-name { font: 600 21px/25px var(--rounded); }
.due-sub { font: 400 15px/20px var(--text); color: rgba(255,255,255,.9); }
.sg { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 13px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sg .t { font: 400 17px/22px var(--text); font-variant-numeric: tabular-nums; }
.sg .t.mut { color: var(--ink-2); font-size: 15px; }
.sg .tt { display: flex; gap: 8px; align-items: center; font: 400 17px/22px var(--text); }
.sg .st { font: 400 15px/20px var(--text); color: var(--ink-2); margin: 2px 0 0 28px; }
.sg.now .t, .sg.now .st { color: var(--accent-text); }
.sg.now .t { font-weight: 600; }
.tile { background: var(--card); border-radius: 20px; box-shadow: var(--sh-tile); min-height: 108px; padding: 16px 14px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tile b { font: 600 15px/20px var(--text); color: var(--ink); }
.tile span { display: block; font: 400 14px/19px var(--text); color: var(--ink-2); margin-top: 3px; }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--sh-card); padding: 22px; }
.panel { background: var(--card); border-radius: 28px; box-shadow: var(--sh-panel); padding: 24px 22px; width: 100%; max-width: 440px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; text-align: center; }
.cal .wd { font: 600 13px/18px var(--text); color: var(--ink-2); padding-bottom: 4px; }
.cal-d { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; }
.cal-d .n { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 400 17px/22px var(--text); font-variant-numeric: tabular-nums; }
.cal-d.other .n { color: var(--ink-3); }
.cal-d.today .n { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-d.sel .n { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.lr { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.lr .nm { flex: 1; min-width: 0; }
.lr .nm b { display: block; font: 400 17px/22px var(--text); color: var(--ink); }
.lr .nm span { display: block; font: 400 15px/20px var(--text); color: var(--ink-2); }
.lr .v { font: 600 17px/22px var(--text); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lr .v.out { color: var(--outside); }
.dia { width: 11px; height: 11px; background: var(--outside); transform: rotate(45deg) scale(.8); display: inline-block; flex: none; }
.scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.scale span { height: 44px; border-radius: 999px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font: 400 17px/22px var(--text); font-variant-numeric: tabular-nums; }
.scale span.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.flag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 400 15px/20px var(--text); }
.flag.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.primary { min-height: 52px; border-radius: 999px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 600 17px/22px var(--text); }
.banner { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 600 15px/20px var(--text); }
.banner u { text-decoration: none; opacity: .85; font-weight: 400; }
.bigval { font: 300 96px/80px var(--rounded); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.chart svg { display: block; width: 100%; height: auto; }
.axis { display: flex; justify-content: space-between; font: 400 13px/18px var(--text); color: var(--ink-2); padding: 6px 2px 0; }
.marker { position: absolute; width: 30px; height: 30px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); display: flex; align-items: center; justify-content: center; }
.note { border-radius: 22px; background: var(--note-yellow-tint); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.note .emo { font-size: 28px; line-height: 32px; }

/* Grids and sections */
.sec { padding: 112px 0; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.split .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split .art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; position: relative; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 40px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kinds .tile { justify-content: flex-start; min-height: 0; padding: 18px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pcards .card { display: flex; flex-direction: column; gap: 10px; }
.pcards b { font: 600 17px/22px var(--text); }
.pcards p { margin: 0; font: 400 15px/21px var(--text); color: var(--ink-2); }

/* The pixel dog: never information, hidden from assistive tech, off with Reduce Motion only in the app */
.dog { image-rendering: pixelated; display: block; height: auto; }

/* Dusk and the hill, the footer */
.foot { background: linear-gradient(180deg, var(--page) 0, var(--dusk) 320px); position: relative; overflow: hidden; }
.foot .sky { height: 300px; position: relative; }
.foot .sun { position: absolute; left: calc(50% + 150px); top: 180px; width: 130px; height: 130px; border-radius: 999px; background: var(--dusk-light); }
.foot .curve { display: block; width: 100%; height: 90px; margin-top: -80px; position: relative; }
.foot .curve path { fill: var(--hill); }
.foot .hill { background: var(--hill); color: var(--on-hill); position: relative; }
.foot .hill .dog { position: absolute; top: -100px; left: max(20px, calc(50% - 320px)); width: 112px; }
.foot .inner { padding-top: 36px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 26px; }
.foot .sent { color: var(--on-hill); }
.foot .lede { color: var(--on-hill-2); }
.foot .links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; border-top: 1px solid var(--hill-line); padding-top: 22px; font: 400 15px/20px var(--text); }
.foot .links a { color: var(--on-hill); text-decoration: none; }
.foot .links span { color: var(--on-hill-2); }
.foot .links img { height: 24px; width: auto; }

@media (max-width: 760px) {
  .nav .links { display: none; }
  .nav .cap-ink { margin-left: auto; }
  .sec { padding: 72px 0; }
  .side { display: none !important; }
  .screen:has(> img.dog:not(.side)) { margin-top: 56px; }
  .foot .sun { left: auto; right: 24px; }
}

/* ---- Round 3 ---- */
:root { --note-blue: #358FE1; --note-green: #3A571B; --note-purple: #662584;
  --note-blue-tint: #D3E5F3; --note-purple-tint: #DDD0E1; }

/* The day rail, as the app's Routine screen draws it (RoutineRail): each stretch runs from the colour at one time to the
   colour at the next: the dusk sun before 6:00, teal at noon, night from 21:00. rail.js sets --c1 and --c2 per slot. */
.day { position: relative; }
.day > .slot { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; padding: 88px 0; position: relative; }
.day > .slot > .seg { position: absolute; left: 9px; width: 3px; top: 112px; bottom: -112px; border-radius: 3px;
  background: linear-gradient(var(--c1, var(--line-2)), var(--c2, var(--line-2))); }
.day > .slot.last > .seg { display: none; }
.day .time { position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 6px; }
.day .time .dot { position: absolute; left: 3px; top: 16px; width: 15px; height: 15px; border-radius: 999px; background: var(--c1, var(--line-2)); box-shadow: 0 0 0 4px var(--page); }
.day .time .t { font: 400 44px/50px var(--rounded); font-variant-numeric: tabular-nums; }
.day .time .t.w { font-size: 32px; line-height: 40px; }
.day .time .k { font: 400 15px/20px var(--text); color: var(--ink-2); }
.day .time .k.now, .day .time .t.now { color: var(--accent-text); }
.day .time .k.now { font-weight: 600; }
.body { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.body .copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.body .art { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
@media (max-width: 820px) {
  .day > .slot { grid-template-columns: 1fr; row-gap: 22px; padding: 64px 0; }
  .day > .slot > .seg, .day .time .dot { display: none; }
  .day .time { flex-direction: row; align-items: baseline; gap: 12px; padding-left: 0; }
}

/* A carousel that moves on by itself; labelled capsules pick a slide. Still under Reduce Motion. */
.carousel { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.slides { display: grid; width: 100%; }
.slide { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.slide figcaption { font: 400 15px/21px var(--text); color: var(--ink-2); text-align: center; max-width: 400px; }
.slide figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 22px; margin-bottom: 2px; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dots button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 14px/20px var(--text); color: var(--ink); display: inline-flex; align-items: center; }
.dots button.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on { transition: none; } }

/* Drawn stand-ins for app screens (see NOTES.md: replace with real screenshots before building) */
.notif { width: 100%; max-width: 400px; border-radius: 24px; background: var(--card); box-shadow: var(--sh-panel); padding: 13px 15px; display: flex; gap: 12px; align-items: flex-start; }
.notif img.app { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif b { font: 600 15px/20px var(--text); }
.notif p { margin: 2px 0 0; font: 400 15px/20px var(--text); }
.notif small { float: right; font: 400 13px/20px var(--text); color: var(--ink-2); }
.routine { width: 100%; }
.routine .r { display: grid; grid-template-columns: 64px 26px 1fr; align-items: center; column-gap: 10px; min-height: 52px; border-top: 1px solid var(--line); font: 400 17px/22px var(--text); position: relative; padding-left: 14px; }
.routine .r::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rc, var(--accent-text)); }
.routine .r span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 15px; }
.routine .r em { font-style: normal; color: var(--ink-2); font-size: 15px; display: block; }
.report { width: 100%; display: flex; gap: 16px; align-items: center; }
.report .page { width: 74px; height: 96px; border-radius: 6px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line-2), 0 6px 14px -8px rgba(0,0,0,.3); padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; flex: none; }
.report .page i { display: block; height: 3px; border-radius: 2px; background: #C9CDC8; }
.report .page i.hl { background: var(--outside); width: 70%; }
.pick2 { display: flex; gap: 8px; flex-wrap: wrap; }
.notecard { border-radius: 20px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.notecard .emo { font-size: 26px; line-height: 30px; }
.notecard b { display: block; font: 600 17px/22px var(--text); }
.notecard span { display: block; font: 400 15px/20px var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 13px/18px var(--text); color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.krows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
@media (max-width: 700px) { .krows { grid-template-columns: 1fr; } }

/* A short list of titles, for the lighter mockups */
.mini { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.mini li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font: 600 17px/22px var(--text); }
.mini li .ic { width: 26px; height: 26px; }
.mini li span { font-weight: 400; color: var(--ink-2); font-size: 15px; }

/* ---- Round 4: phone first ---- */
/* Section body: heading, then the picture, then the points on a phone; heading and points beside the picture on a wide screen */
.sx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h a" "p a"; gap: 22px 64px; align-items: start; }
.sx > .h { grid-area: h; display: flex; flex-direction: column; gap: 16px; align-self: end; }
.sx > .a { grid-area: a; display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; align-self: center; min-width: 0; }
.sx > .p { grid-area: p; min-width: 0; }
@media (max-width: 820px) {
  .sx { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "a" "p"; gap: 24px; }
  .h2 { font-size: 32px; line-height: 38px; }
  .lede { font-size: 17px; line-height: 25px; }
}

/* Add sheets: drawn stand-ins for the app's stool, weight and note sheets */
.sheet { width: 100%; max-width: 400px; background: var(--card); border-radius: 30px 30px 24px 24px; box-shadow: var(--sh-panel); padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 384px; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; }
.sheet .top { display: flex; justify-content: space-between; align-items: center; font: 400 15px/20px var(--text); color: var(--ink-2); }
.sheet .top .av { width: 32px; height: 32px; }
.sheet .sent { font-size: 26px; line-height: 32px; }
.sheet .primary { margin-top: auto; }
.sheet .val { display: flex; align-items: baseline; gap: 10px; font: 400 15px/20px var(--text); color: var(--ink-2); }
.sheet .val b { font: 700 20px/26px var(--rounded); color: var(--ink); }
.sheet .bigval small { font: 400 28px/32px var(--rounded); margin-left: 6px; color: var(--ink-2); }
.sheet .field { border-radius: 16px; background: var(--fill); padding: 12px 14px; font: 400 17px/22px var(--text); }
.sheet .field.mut { color: var(--ink-2); min-height: 66px; }
.sheet .emo1 { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.swatches { display: flex; gap: 12px; }
.swatches i { width: 30px; height: 30px; border-radius: 999px; display: block; }
.swatches i.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.scale.sm span { height: 38px; font-size: 15px; }

/* Carousels on a phone: a swipeable row with the next slide peeking; it still moves on by itself */
@media (max-width: 760px) {
  .carousel.swipe { max-width: none; width: calc(100% + 48px); margin: 0 -24px; }
  .carousel.swipe .slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; padding: 6px 24px 28px; scrollbar-width: none; }
  .carousel.swipe .slides::-webkit-scrollbar { display: none; }
  .carousel.swipe .slide { flex: 0 0 86%; scroll-snap-align: start; opacity: 1; visibility: visible; justify-content: flex-start; }
  .carousel.swipe .dots { margin-top: -14px; }
}

/* ---- The site ---- */
.hero { background: linear-gradient(180deg, var(--hero-top) 0, var(--page) 620px); padding: 56px 0; }
.facts3 .row { flex-direction: column; gap: 12px; border-top: 0; padding: 0; }
.facts3 .row .ic { width: 36px; height: 36px; margin: 0; }
.prow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }
.nav .end { display: flex; align-items: center; gap: 10px; }
.theme-toggle { all: unset; box-sizing: border-box; cursor: pointer; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; } :root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } }

/* The app's own screens, from the v0.8.0 screenshot tour, cropped to the feature: no status bar, no tab bar. */
.shot { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 26px; box-shadow: var(--sh-panel); background: var(--card); }
.shot.dk { display: none; }
.pair { position: relative; width: 100%; max-width: 300px; }
.hero .pair { max-width: 330px; } .hero .shot { max-width: 330px; }
/* A reminder arriving over the Today screen; the wording follows ReminderText in the app */
.arrive { position: absolute; left: -6%; right: -6%; top: 16%; display: flex; flex-direction: column; gap: 8px; }
.arrive .notif { max-width: none; background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.notif .who { font-weight: 600; }

/* The day rail stays on a phone, as a thin line on the left */
.day > .slot { padding: 80px 0; }
.after { padding-top: 24px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 96px; }
.after > section { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 820px) {
  .hero { padding: 32px 0 48px; } .hero .split { gap: 40px; }
  .day > .slot { padding: 44px 0 44px 30px; row-gap: 18px; }
  .day > .slot > .seg { display: block; left: 6px; top: 61px; bottom: -61px; }
  .day .time { position: static; padding-left: 0; }
  .day .time .dot { display: block; left: 0; top: 54px; }
  .day .time .t { font-size: 28px; line-height: 34px; }
  .day .carousel.swipe { width: calc(100% + 24px); margin: 0 -24px 0 0; }
  .day .carousel.swipe .slides { padding: 6px 24px 40px 14px; margin-left: -14px; scroll-padding: 0 14px; }
  .day .carousel.swipe .dots { margin-top: -22px; }
  .carousel.swipe .shot { box-shadow: 0 12px 24px -14px rgba(60,40,12,.45), 0 0 0 .5px rgba(60,40,12,.16); }
  .day .carousel.swipe .slide { flex-basis: 78%; }
  .after { gap: 72px; padding-bottom: 72px; }
  .prow { grid-template-columns: 1fr; }
}
.foot .social { display: flex; gap: 16px; align-items: center; }
.foot .social a { line-height: 0; }
.foot .social svg { width: 20px; height: 20px; fill: var(--on-hill); }

/* Privacy, terms and contact */
body.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.page main { flex: 1; }
.legal .wrap { max-width: calc(72ch + 48px); padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font: 400 clamp(38px, 5.4vw, 56px)/1.08 var(--rounded); margin: 10px 0 28px; text-wrap: balance; }
.legal h1 b { font-weight: 700; }
.legal h2 { font: 700 24px/30px var(--rounded); margin: 44px 0 12px; text-wrap: balance; }
.legal p, .legal li { font: 400 17px/27px var(--text); color: var(--ink); margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 600; }
.legal mark { background: #FDE68A; color: #121514; padding: 0 4px; border-radius: 4px; }
.legal .draft { background: var(--fill); border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 22px; color: var(--ink-2); margin-bottom: 28px; }
.legal .mail { display: inline-flex; margin-top: 10px; }
.foot.mini .sky { height: 150px; }
.foot.mini .sun { top: 60px; width: 96px; height: 96px; }
.foot.mini .links { border-top: 0; padding-top: 44px; }

/* The footer (mockup Q3): Why it's free and the day's sections on the hill, then the brand with the App Store badge, Follow and Legal. */
.foot .fc h3 { margin: 0 0 14px; font: 600 12px/16px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--on-hill-2); }
.foot .fc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot .fc a { color: var(--on-hill); text-decoration: none; font: 600 15px/20px var(--text); display: inline-flex; align-items: center; gap: 10px; }
.foot .fc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .fc svg { fill: currentColor; flex: none; }
.foot .bar { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--hill-line); padding: 22px 0 32px; font: 400 14px/20px var(--text); color: var(--on-hill-2); }
.foot .disc { font: 400 14px/20px var(--text); color: var(--on-hill-2); max-width: 620px; margin: 0; }
.foot .brand > img { height: 28px; width: auto; }
.foot .brand p { margin: 12px 0 0; font: 400 15px/22px var(--text); color: var(--on-hill-2); max-width: 300px; }
.foot .top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding: 40px 0 64px; align-items: start; }
.foot .why { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.foot .daylist h3, .foot .cols h3 { margin: 0 0 14px; font: 600 12px/16px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--on-hill-2); }
.foot .daylist ol { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.foot .daylist ol::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dusk-light) 58%, var(--accent-text)), var(--accent-text) 55%, var(--night)); }
.foot .daylist li { position: relative; }
.foot .daylist li::before { content: ""; position: absolute; left: -18px; top: 13px; width: 11px; height: 11px; border-radius: 999px; background: var(--c); box-shadow: 0 0 0 3px var(--hill); }
.foot .daylist a { display: flex; gap: 16px; align-items: baseline; padding: 6px 0; text-decoration: none; color: var(--on-hill); }
.foot .daylist time { font: 400 15px/20px var(--text); color: var(--on-hill-2); width: 46px; font-variant-numeric: tabular-nums; }
.foot .daylist span { font: 400 22px/28px var(--rounded); }
.foot .daylist a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--hill-line); padding: 40px 0 36px; }
.foot .soc a span small { display: block; font: 400 13px/16px var(--text); color: var(--on-hill-2); }
@media (max-width: 820px) { .foot .top { grid-template-columns: 1fr; gap: 48px; } .foot .cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .foot .brand { grid-column: 1 / -1; } }
