/* Daynest website styles: design system v2, "Soft tiles" (chosen 2026-12-01).
   Warm cream with earthy tones, pale colour tiles, a soft wave at the top, the app's font.
   Dark mode (2026-12-01, the user's palette): near-black neutral base, and only Prairie Winds #e8e4d9,
   #d29145 (amber), Freshly Baked #e5c185, Treetop #9dc0ad, Catnip #74a892 and teal #008585.
   Dark mode follows the device unless the visitor picks one (data-theme on <html>). */

@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400 600;font-display:swap;
  src:url("fonts/atkinson-hyperlegible-next-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400 600;font-display:swap;
  src:url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ---------- Tokens ---------- */
:root{
  --bg:#f6efe4; --surface:#fffaf2; --ink:#3a2a20; --muted:#6f5f52; --line:rgba(58,42,32,.14);
  --button:#4b3427; --on-button:#fbf3e6;          /* main button: deep brown pill */
  --link:#9a4f33;                                  /* terracotta, 4.5:1 on cream */
  --eyebrow:#515e3a;                               /* deep sage */
  --logo:#c9734f;
  --press:rgba(58,42,32,.06);
  --shadow:0 1px 2px rgba(58,42,32,.04),0 12px 30px -22px rgba(58,42,32,.3);
  --screen-shadow:0 2px 6px rgba(40,25,15,.08),0 24px 50px -24px rgba(40,25,15,.45);
  /* Day-type colours: deep tone (marks, strips) and pale tint (tile backgrounds) */
  --good:#55708a;   --good-t:#e3e9ee;
  --okay:#5f6d45;   --okay-t:#e6eadb;
  --low:#a9583a;    --low-t:#f4e0d5;
  --surv:#a77a22;   --surv-t:#f6e8c9;
  /* Shapes: the soft wave and blob */
  --wave-1:#e6eadb; --wave-2:#f6e8c9; --blob:#f4e0d5;
  --play-bg:#fffaf2; --play-ink:#3a2a20;          /* the round play button on clips */
  --tile-bar:0px;                                  /* dark mode: a coloured bar on top of each tile */
  /* Shape and rhythm */
  --radius:26px; --radius-screen:30px; --radius-small:12px;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:72px; --s9:112px;
  --gutter:16px; --wide:1080px; --text:36rem;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#161a19; --surface:#1f2423; --ink:#e8e4d9; --muted:#9dc0ad; --line:rgba(232,228,217,.12);
  --button:#e5c185; --on-button:#161a19; --link:#e5c185; --eyebrow:#9dc0ad; --logo:#d29145;
  --press:rgba(232,228,217,.06); --shadow:0 1px 2px rgba(0,0,0,.3); --screen-shadow:0 20px 50px -24px rgba(0,0,0,.75);
  --good:#008585; --okay:#74a892; --low:#d29145; --surv:#e5c185;
  --good-t:#1f2423; --okay-t:#1f2423; --low-t:#1f2423; --surv-t:#1f2423;
  --tile-bar:5px; --mark:#161a19; --play-bg:#e5c185; --play-ink:#161a19;
  --wave-1:#1f2423; --wave-2:#232928; --blob:#008585;
  color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#161a19; --surface:#1f2423; --ink:#e8e4d9; --muted:#9dc0ad; --line:rgba(232,228,217,.12);
  --button:#e5c185; --on-button:#161a19; --link:#e5c185; --eyebrow:#9dc0ad; --logo:#d29145;
  --press:rgba(232,228,217,.06); --shadow:0 1px 2px rgba(0,0,0,.3); --screen-shadow:0 20px 50px -24px rgba(0,0,0,.75);
  --good:#008585; --okay:#74a892; --low:#d29145; --surv:#e5c185;
  --good-t:#1f2423; --okay-t:#1f2423; --low-t:#1f2423; --surv-t:#1f2423;
  --tile-bar:5px; --mark:#161a19; --play-bg:#e5c185; --play-ink:#161a19;
  --wave-1:#1f2423; --wave-2:#232928; --blob:#008585;
  color-scheme:dark;
}
@media (min-width:600px){ :root{--gutter:24px;} }
@media (min-width:1000px){ :root{--gutter:40px;} }

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
html,body{margin:0;background:var(--bg);color:var(--ink);}
body{font-family:"Atkinson Hyperlegible Next",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
img,video,svg{display:block;max-width:100%;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:8px;}
.wrap{max-width:var(--wide);margin:0 auto;padding:0 var(--gutter);}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* ---------- Type ---------- */
.eyebrow{font-size:15px;font-weight:600;color:var(--eyebrow);margin:0 0 var(--s3);}
h1,.h1{font-size:clamp(36px,6.4vw,56px);font-weight:600;letter-spacing:-.025em;line-height:1.08;margin:0 0 var(--s5);}
h2,.h2{font-size:clamp(28px,4.4vw,40px);font-weight:600;letter-spacing:-.02em;line-height:1.15;margin:0 0 20px;}
h3,.h3{font-size:19px;font-weight:600;line-height:1.35;margin:0 0 var(--s2);}
p{margin:0 0 12px;max-width:var(--text);}
.lead{font-size:clamp(19px,2.2vw,21px);line-height:1.55;}
.small{font-size:15px;color:var(--muted);}
.muted{color:var(--muted);}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:3px;}
a:hover{text-decoration-thickness:2px;}
strong{font-weight:600;}

/* ---------- Header and footer ---------- */
.site-head{display:flex;align-items:center;justify-content:space-between;min-height:72px;position:relative;z-index:2;}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:600;color:var(--ink);text-decoration:none;}
.brand svg{width:30px;height:30px;}
.logo-ring{fill:none;stroke:var(--logo);stroke-width:2.4;}
.logo-dot{fill:var(--logo);}
.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;color:var(--muted);}
.icon-btn:hover{background:var(--press);color:var(--ink);}
.icon-btn .icon-sun{display:none;}
.icon-btn.is-dark .icon-sun{display:block;}
.icon-btn.is-dark .icon-moon{display:none;}
.site-foot{border-top:1px solid var(--line);padding:var(--s6) 0 var(--s7);font-size:15px;color:var(--muted);}
.site-foot p{max-width:44rem;margin-bottom:var(--s2);}

/* ---------- Icons ---------- */
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;}

/* ---------- Button and links ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;
  border-radius:999px;font-size:17px;font-weight:600;text-decoration:none;transition:transform .12s ease,filter .2s ease;}
.btn-primary{background:var(--button);color:var(--on-button);}
.btn-primary:hover{filter:brightness(1.12);text-decoration:none;}
.btn:active{transform:scale(.98);}
.btn .icon{width:20px;height:20px;}
.cta .small{margin:var(--s3) 0 0;}

/* ---------- Hero with the soft wave ---------- */
.hero{position:relative;overflow:hidden;padding:var(--s4) 0 var(--s7);}
.hero-wave{position:absolute;inset:0;width:100%;height:100%;z-index:0;}
.hero-wave .w1{fill:var(--wave-1);} .hero-wave .w2{fill:var(--wave-2);}
.hero > .wrap{position:relative;z-index:1;}
.hero-grid{display:grid;gap:var(--s6);align-items:center;}
@media (min-width:860px){ .hero-grid{grid-template-columns:1.1fr .9fr;} }

/* The opening sits under the header, so the wave reaches the top of the page */
.site-head.wrap{position:relative;z-index:2;}
.hero.under-head{margin-top:-72px;padding-top:calc(72px + var(--s4));}
.hero .screen{margin-block:0;}

/* ---------- Page sections ---------- */
.closing-line{font-size:clamp(20px,2.4vw,24px);font-weight:600;line-height:1.4;color:var(--eyebrow);}
ul.ptiles,ul.tiles{list-style:none;margin:0;padding:0;}
.split .tiles{margin-top:var(--s5);}
@media (min-width:480px){ .split .tiles{grid-template-columns:1fr 1fr;} }
.after-tiles{margin-top:var(--s4);}
/* Feature tile: one wide tinted card (Your days stay yours, the closing) */
.feature{border-radius:var(--radius);padding:clamp(24px,5vw,56px);background:var(--tint);color:var(--ink);
  box-shadow:inset 0 var(--tile-bar) 0 0 var(--deep);}
.feature p:last-child{margin-bottom:0;}
.feature .cta{margin-top:var(--s5);}
/* Screenshot thumbnails at the top of a point tile: the top of the screen, rounded */
.thumb img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:16px;border:1px solid var(--line);margin-bottom:16px;}
@media (min-width:700px){ .principles li:last-child{grid-column:span 2;} }

/* ---------- App screen: real screenshot, rounded, no device frame ---------- */
.screen{position:relative;width:min(72vw,300px);margin:0 auto;}
.screen img,.screen video{position:relative;z-index:1;width:100%;height:auto;border-radius:var(--radius-screen);box-shadow:var(--screen-shadow);}
.screen .blob{position:absolute;z-index:0;width:130%;left:-15%;top:6%;fill:var(--blob);}
/* Light and dark copies of each screenshot or clip: the one for the current theme shows */
.s-dark{display:none;}
:root[data-theme="dark"] .s-light{display:none;}
:root[data-theme="dark"] .s-dark{display:block;}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .s-light{display:none;}
  :root:not([data-theme="light"]) .s-dark{display:block;}
}
.play{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;
  display:grid;place-items:center;background:var(--play-bg);color:var(--play-ink);border:1px solid var(--line);box-shadow:var(--shadow);}
.play:hover{filter:brightness(1.06);}
.play[hidden]{display:none;}
.play:focus-visible{border-radius:50%;}
.screen.playing .play{display:none;}
.screen.playing video{cursor:pointer;}
.play .icon{width:24px;height:24px;margin-left:3px;}
.screen figcaption{margin-top:var(--s3);text-align:center;font-size:15px;color:var(--muted);}

/* ---------- Tiles ---------- */
/* Day tiles: pale tint, brown text, the app's day-shape strip in the deep tone */
.tiles{display:grid;gap:14px;grid-template-columns:1fr;}
@media (min-width:480px){ .tiles{grid-template-columns:1fr 1fr;} }
@media (min-width:860px){ .tiles{grid-template-columns:repeat(4,1fr);} }
.tile{border-radius:var(--radius);padding:20px;min-height:150px;display:flex;flex-direction:column;gap:8px;background:var(--tint);color:var(--ink);
  box-shadow:inset 0 var(--tile-bar) 0 0 var(--deep);}
.tile strong{font-size:19px;line-height:1.3;}
.tile span:not(.strip){font-size:15px;line-height:1.45;}
.t-good{--tint:var(--good-t);--deep:var(--good);} .t-okay{--tint:var(--okay-t);--deep:var(--okay);}
.t-low{--tint:var(--low-t);--deep:var(--low);}    .t-surv{--tint:var(--surv-t);--deep:var(--surv);}
.strip{display:inline-flex;gap:3px;align-items:center;color:var(--deep);}
.strip i{display:block;width:8px;height:16px;border-radius:3px;background:currentColor;}
/* Point tiles: white card, a small tinted icon square, a short idea */
.ptiles{display:grid;gap:14px;}
@media (min-width:700px){ .ptiles{grid-template-columns:repeat(3,1fr);} }
.ptiles.two{grid-template-columns:1fr;}
@media (min-width:700px){ .ptiles.two{grid-template-columns:1fr 1fr;} }
.ptile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;}
.ptile .mark,.feature .mark{width:36px;height:36px;border-radius:var(--radius-small);background:var(--mark,var(--tint,var(--okay-t)));color:var(--deep,var(--okay));
  display:grid;place-items:center;margin-bottom:12px;}
.ptile .mark .icon{width:20px;height:20px;}
.ptile p{font-size:16px;color:var(--muted);margin:0;}
.ptile h3{margin-bottom:8px;}

/* ---------- Sections and layout ---------- */
.section{padding:clamp(40px,6vw,72px) 0;  /* rhythm taken from tiimoapp.com: about 144px between sections on desktop */}
.sec-head{margin-bottom:20px;}
.sec-head p{color:var(--muted);}
.split{display:grid;gap:var(--s6);align-items:center;}
@media (min-width:860px){
  .split{grid-template-columns:1fr 1fr;gap:56px;}
  .split.flip > :first-child{order:2;}
}

/* ---------- Plain answers (one open at a time, works without scripts) ---------- */
.qa{max-width:44rem;display:grid;gap:10px;}
.qa details{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:0 20px;}
.qa summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:var(--s4);
  padding:16px 0;font-size:18px;font-weight:600;}
.qa summary::-webkit-details-marker{display:none;}
.qa summary .icon{color:var(--muted);transition:transform .2s var(--ease);}
.qa details[open] summary .icon{transform:rotate(180deg);}
.qa details p{color:var(--muted);margin:0 0 18px;}

/* ---------- Motion: one soft fade as sections come into view, never looping ---------- */
.reveal-on .reveal{opacity:0;transform:translateY(10px);transition:opacity .6s var(--ease),transform .6s var(--ease);}
.reveal-on .reveal.in{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important;animation:none !important;}
  .reveal-on .reveal{opacity:1;transform:none;}
}
