/* ============================================================
   EXO — landing (simple, spacious, friendly)
   Warm paper · one terracotta accent · soft cards · big phones
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --paper:#FBF9F4;
  --paper-2:#F4F0E8;
  --ink:#221E18;
  --muted:#6E665A;
  --line:rgba(34,30,24,.10);
  --card:#FFFFFF;
  --rust:#C0543A;
  --rust-soft:#E7A892;
  --glow:rgba(192,84,58,.18);
  /* soft accents for feature screens */
  --a-food:#FF9F43;
  --a-supp:#7E9A5B;
  --a-sleep:#6366E0;
  --maxw:1120px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --serif:'Fraunces',Georgia,serif;
  --sans:'Hanken Grotesk',system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  font-family:var(--sans);background:var(--paper);color:var(--ink);
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;
  transition:background .5s var(--ease),color .5s var(--ease);
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
::selection{background:var(--rust);color:#fff;}

.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px;}
section{position:relative;}

/* type */
.display{font-family:var(--serif);font-weight:600;line-height:1.02;letter-spacing:-.02em;font-optical-sizing:auto;}
.display em{font-style:italic;font-weight:500;color:var(--rust);}
h1.display{font-size:clamp(38px,6.4vw,76px);}
h2.display{font-size:clamp(30px,4.6vw,52px);}
h3.display{font-size:clamp(22px,2.6vw,30px);}
.lead{font-size:clamp(18px,2vw,21px);color:var(--muted);line-height:1.55;}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:16px;
  padding:14px 24px;border-radius:999px;transition:.3s var(--ease);cursor:pointer;border:0;}
.btn-primary{background:var(--ink);color:var(--paper);box-shadow:0 12px 28px -12px rgba(34,30,24,.5);}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 20px 40px -14px rgba(34,30,24,.55);}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line);}
.btn-ghost:hover{border-color:var(--ink);}

.appstore{display:inline-flex;align-items:center;gap:12px;background:var(--ink);color:var(--paper);
  padding:13px 22px 13px 18px;border-radius:16px;transition:.3s var(--ease);box-shadow:0 12px 28px -12px rgba(34,30,24,.45);}
.appstore:hover{transform:translateY(-3px);box-shadow:0 20px 40px -14px rgba(34,30,24,.5);}
.appstore svg{width:26px;height:26px;}
.appstore .t{line-height:1.15;text-align:left;}
.appstore .t small{font-size:10px;opacity:.72;display:block;}
.appstore .t b{font-family:var(--serif);font-weight:600;font-size:19px;}

.pill{display:inline-flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);
  border-radius:999px;padding:7px 16px 7px 8px;font-size:14px;font-weight:600;color:var(--muted);
  box-shadow:0 8px 20px -14px rgba(34,30,24,.4);}
.pill img{width:26px;height:26px;border-radius:50%;}

/* ============ NAV ============ */
.nav{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--paper) 82%,transparent);
  backdrop-filter:saturate(1.3) blur(12px);border-bottom:1px solid var(--line);}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:68px;}
.brand{display:flex;align-items:center;gap:11px;font-family:var(--serif);font-weight:600;font-size:23px;letter-spacing:-.01em;}
.brand img{width:34px;height:34px;}
.nav-r{display:flex;align-items:center;gap:14px;}
.toggle{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);
  display:grid;place-items:center;cursor:pointer;transition:.3s var(--ease);}
.toggle:hover{border-color:var(--rust);transform:rotate(-18deg);}

/* ============ HERO ============ */
/* fills the first screen so the phone fits without scrolling (nav is 69px) */
.hero{display:flex;align-items:center;min-height:calc(100svh - 69px);padding:clamp(14px,2vw,30px) 0;overflow:hidden;}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(30px,5vw,64px);align-items:center;}
.hero-copy{justify-self:center;width:min(100%,680px);text-align:center;}
.hero .pill{margin-bottom:24px;margin-inline:auto;}
.hero h1{font-size:clamp(40px,5vw,66px);margin-bottom:20px;max-width:none;}
.hero .lead{max-width:40ch;margin-inline:auto;margin-bottom:30px;}
.hero-cta{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;}

/* hero visual: phone sized by viewport height + buddy */
.hero-stage{position:relative;display:grid;place-items:center;}
.phone.phone-hero{width:auto;height:min(600px,calc(100svh - 150px));}
.hero-stage .glow{position:absolute;inset:6% 6% 8%;background:radial-gradient(closest-side,var(--glow),transparent 72%);filter:blur(12px);z-index:0;}
@keyframes float{0%,100%{transform:translateY(0) rotate(-2deg);}50%{transform:translateY(-14px) rotate(2deg);}}

/* ---- EXO buddy: mascot + speech bubble + reactions ---- */
.exo-buddy{position:absolute;z-index:5;left:-4%;bottom:4%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  cursor:pointer;-webkit-tap-highlight-color:transparent;}
.exo-buddy .bubble{margin-left:14px;background:var(--card);border:1px solid var(--line);border-radius:16px 16px 16px 5px;
  padding:9px 14px;font-size:14px;font-weight:600;color:var(--ink);box-shadow:0 14px 30px -18px rgba(34,30,24,.55);
  white-space:nowrap;transform-origin:bottom left;animation:bubblein .6s var(--ease) .9s both;}
.exo-buddy .bubble b{color:var(--rust);}
.exo-buddy .mascot{width:clamp(104px,12vw,148px);filter:drop-shadow(0 18px 24px rgba(34,30,24,.24));
  animation:breathe 4.2s var(--ease) infinite;transition:transform .35s var(--ease);}
.exo-buddy:hover .mascot{transform:translateY(-7px) scale(1.07) rotate(-4deg);}
.exo-buddy.hop .mascot{animation:hop .55s var(--ease);}
@keyframes breathe{0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(-8px) scale(1.025);}}
@keyframes hop{0%{transform:translateY(0) scale(1);}30%{transform:translateY(-26px) scale(1.08);}55%{transform:translateY(0) scale(.96);}75%{transform:translateY(-8px) scale(1.02);}100%{transform:translateY(0) scale(1);}}
@keyframes bubblein{0%{opacity:0;transform:scale(.7) translateY(8px);}60%{transform:scale(1.06);}100%{opacity:1;transform:none;}}

/* ---- app-like bottom nav inside phone screens ---- */
.phone .scr-nav{margin-top:auto;height:44px;border-top:1px solid rgba(20,16,10,.07);display:flex;align-items:center;
  justify-content:space-around;padding:0 22px;background:rgba(255,255,255,.5);}
.phone .scr-nav i{width:21px;height:21px;border-radius:7px;background:#E4DDCF;transition:.35s var(--ease);}
.phone .scr-nav i.on{background:var(--accent,var(--rust));transform:scale(1.05);}

/* ============ PHONE MOCKUP (always a light app screen, both themes) ============ */
.phone{position:relative;width:var(--pw,300px);aspect-ratio:9/19.2;border-radius:40px;flex-shrink:0;
  background:#1b1813;padding:11px;box-shadow:0 50px 90px -45px rgba(20,16,10,.65);z-index:2;}
.phone .screen{position:relative;width:100%;height:100%;border-radius:30px;overflow:hidden;
  background:linear-gradient(180deg,var(--scr,#F4F0E8),#FCFBF8 78%);display:flex;flex-direction:column;color:#241F18;}
.phone .bar{height:38px;display:flex;align-items:center;justify-content:center;position:relative;}
.phone .bar::before{content:"";width:54px;height:7px;border-radius:6px;background:rgba(0,0,0,.82);position:absolute;top:11px;}
.phone .scr-head{padding:6px 22px 0;}
.phone .scr-head .k{font-size:11px;color:#8B8276;font-weight:600;}
.phone .scr-head .v{font-family:var(--serif);font-weight:600;font-size:19px;color:#241F18;}
.phone .scr-art{flex:1;display:grid;place-items:center;padding:8px 14px 18px;}
.phone .scr-art img{width:100%;max-height:100%;object-fit:contain;}

/* ============ SECTION FRAME ============ */
.band{padding:clamp(56px,9vw,108px) 0;}
.band.soft{background:var(--paper-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.sec-center{text-align:center;max-width:720px;margin:0 auto clamp(40px,6vw,64px);}
.sec-center .eyebrow{color:var(--rust);font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:16px;}
.sec-center h2{margin-bottom:18px;}
.sec-center .lead{margin:0 auto;max-width:54ch;}

/* ============ INTERACTIVE SHOWCASE (one phone, clickable tabs) ============ */
.showcase-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(34px,5vw,72px);align-items:center;max-width:1000px;margin:0 auto;}
.showcase-grid.flip .showcase-phone{order:-1;}
.tabs{display:flex;flex-direction:column;gap:8px;}
.tab{display:flex;gap:15px;align-items:flex-start;text-align:left;width:100%;font:inherit;color:inherit;
  background:transparent;border:1px solid transparent;border-radius:18px;padding:17px 19px;cursor:pointer;transition:.3s var(--ease);}
.tab:hover{background:var(--card);}
.tab.active{background:var(--card);border-color:var(--line);box-shadow:0 20px 44px -30px rgba(34,30,24,.45);}
.tab .tn{width:36px;height:36px;border-radius:11px;flex-shrink:0;display:grid;place-items:center;
  background:color-mix(in srgb,var(--accent,var(--rust)) 14%,transparent);color:var(--accent,var(--rust));transition:.3s var(--ease);}
.tab .tn svg{width:19px;height:19px;}
.tab.active .tn{background:var(--accent,var(--rust));color:#fff;}
.tab .tx h4{font-family:var(--serif);font-weight:600;font-size:19px;line-height:1.15;}
.tab .tx p{color:var(--muted);font-size:14.5px;line-height:1.45;max-height:0;opacity:0;overflow:hidden;transition:max-height .4s var(--ease),opacity .35s var(--ease),margin .3s;}
.tab.active .tx p{max-height:90px;opacity:1;margin-top:6px;}

.showcase-phone{position:relative;display:grid;place-items:center;}
.showcase-phone .glow{position:absolute;inset:9%;z-index:0;filter:blur(14px);transition:.6s var(--ease);
  background:radial-gradient(closest-side,color-mix(in srgb,var(--accent,var(--rust)) 24%,transparent),transparent 70%);}
.showcase-phone .scr-head,.showcase-phone .scr-art{transition:opacity .3s var(--ease);}
.showcase-phone.swapping .scr-head,.showcase-phone.swapping .scr-art{opacity:0;}

/* ============ CTA (compact card) ============ */
.cta-mini{padding:clamp(40px,6vw,76px) 0;}
.cta-card{max-width:820px;margin:0 auto;display:flex;align-items:center;gap:26px;
  background:var(--card);border:1px solid var(--line);border-radius:26px;padding:24px 32px;
  box-shadow:0 34px 64px -44px rgba(34,30,24,.45);}
.cta-card .mini-mascot{width:78px;flex-shrink:0;animation:breathe 4.2s var(--ease) infinite;
  filter:drop-shadow(0 12px 18px rgba(34,30,24,.2));}
.cta-card .cta-copy{flex:1;min-width:0;}
.cta-card .cta-copy h2{font-size:clamp(24px,3vw,33px);margin-bottom:3px;}
.cta-card .cta-copy p{color:var(--muted);font-size:15.5px;}
.cta-card .appstore{flex-shrink:0;}

/* ============ FOOTER (single row) ============ */
footer{border-top:1px solid var(--line);padding:26px 0;background:var(--paper-2);}
.foot-row{display:flex;align-items:center;justify-content:space-between;gap:18px 28px;flex-wrap:wrap;}
.foot-row .brand{font-size:20px;}
.foot-row .brand img{width:28px;height:28px;}
.foot-nav{display:flex;gap:22px;flex-wrap:wrap;}
.foot-nav a{color:var(--muted);font-size:14px;transition:.2s;}
.foot-nav a:hover{color:var(--rust);}
.foot-c{color:var(--ink-3,var(--muted));font-size:13px;}

/* ============ INDEX ONE-PAGE LAYOUT ============ */
.landing-onepage{min-height:100svh;display:flex;flex-direction:column;}
.landing-onepage .display{letter-spacing:0;}
.landing-onepage .nav{position:relative;flex:0 0 auto;}
.landing-onepage .nav-in{height:56px;}
.landing-onepage .brand{font-size:21px;}
.landing-onepage .brand img{width:30px;height:30px;}
.landing-onepage .nav .appstore{padding:9px 17px 9px 14px;gap:9px;border-radius:999px;}
.landing-onepage .nav .appstore svg{width:21px;height:21px;}
.landing-onepage .nav .appstore .t b{font-size:16px;}
.landing-onepage .hero{flex:1 1 auto;min-height:0;padding:clamp(10px,1.6vw,18px) 0;align-items:center;}
.landing-onepage .hero-grid{gap:clamp(20px,3.5vw,42px);}
.landing-onepage .hero .pill{margin-bottom:13px;padding:6px 13px 6px 7px;font-size:13px;}
.landing-onepage .hero .pill img{width:22px;height:22px;}
.landing-onepage .hero h1{font-size:54px;margin-bottom:12px;}
.landing-onepage .hero .lead{font-size:17px;line-height:1.42;max-width:38ch;margin-bottom:18px;}
.landing-onepage .hero-cta .appstore{padding:11px 20px 11px 16px;}
.landing-onepage .hero-cta .appstore svg{width:24px;height:24px;}
.landing-onepage .hero-cta .appstore .t b{font-size:18px;}
.landing-onepage .phone.phone-hero{height:min(440px,48vw,calc(100svh - 270px));}
.landing-onepage .note .note-txt{font-size:17px;}
.landing-onepage .note .note-arrow{width:126px;height:48px;}
.landing-onepage .exo-buddy{left:-1%;bottom:2%;}
.landing-onepage .exo-buddy .bubble{font-size:13px;padding:7px 11px;}
.landing-onepage .exo-buddy .mascot{width:clamp(82px,9vw,118px);}
.landing-onepage .cta-mini{flex:0 0 auto;padding:6px 0 12px;}
.landing-onepage .cta-card{max-width:760px;gap:18px;border-radius:22px;padding:14px 24px;}
.landing-onepage .cta-card .mini-mascot{width:54px;}
.landing-onepage .cta-card .cta-copy h2{font-size:26px;margin-bottom:0;}
.landing-onepage .cta-card .cta-copy p{font-size:14.5px;line-height:1.35;}
.landing-onepage .cta-card .appstore{padding:10px 18px 10px 15px;gap:9px;}
.landing-onepage .cta-card .appstore svg{width:22px;height:22px;}
.landing-onepage .cta-card .appstore .t b{font-size:17px;}
.landing-onepage footer{flex:0 0 auto;margin-top:0;padding:12px 0;border-radius:28px 18px 0 0;}
.landing-onepage .foot-row{gap:10px 22px;}
.landing-onepage .foot-row .brand{font-size:18px;}
.landing-onepage .foot-row .brand img{width:24px;height:24px;}
.landing-onepage .foot-nav{gap:16px;}
.landing-onepage .foot-nav a,.landing-onepage .foot-c{font-size:12.5px;}

/* reveal */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .8s var(--ease),transform .8s var(--ease);}
.reveal.in{opacity:1;transform:none;}
.reveal.d1{transition-delay:.08s;}.reveal.d2{transition-delay:.16s;}.reveal.d3{transition-delay:.24s;}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;}.reveal{opacity:1;transform:none;}}

/* responsive */
@media (max-width:880px){
  .landing-onepage{display:block;min-height:100svh;}
  .landing-onepage .nav{position:sticky;}
  .landing-onepage .nav-in{height:58px;}
  .landing-onepage .hero{min-height:0;padding:clamp(18px,4vw,30px) 0 clamp(20px,5vw,34px);}
  .landing-onepage .hero-grid{gap:12px;}
  .landing-onepage .hero .pill{margin-bottom:12px;}
  .landing-onepage .hero h1{font-size:42px;margin-bottom:10px;}
  .landing-onepage .hero .lead{font-size:16px;line-height:1.42;margin-bottom:16px;}
  .landing-onepage .phone.phone-hero{height:min(390px,68vw);}
  .landing-onepage .cta-mini{padding:0 0 10px;}
  .landing-onepage .cta-card{gap:12px;padding:18px 20px;}
  .landing-onepage .cta-card .mini-mascot{width:48px;}
  .landing-onepage footer{padding:12px 0;}
  .hero{min-height:auto;padding:clamp(24px,5vw,40px) 0 clamp(36px,7vw,56px);}
  .hero-grid{grid-template-columns:1fr;gap:18px;text-align:center;}
  .hero-copy{justify-self:stretch;width:100%;}
  .hero .pill{margin-inline:auto;}
  .hero h1{margin-inline:auto;max-width:15ch;}
  .hero .lead{margin-inline:auto;}
  .hero-cta{justify-content:center;}
  .hero-stage{margin-top:8px;}
  .phone.phone-hero{height:min(540px,72vw);}
  .exo-buddy{left:auto;right:2%;bottom:2%;}
  .showcase-grid{grid-template-columns:1fr;gap:30px;}
  .showcase-grid.flip .showcase-phone{order:0;}
  .tabs{max-width:480px;margin:0 auto;width:100%;}
  .cta-card{flex-direction:column;text-align:center;gap:18px;padding:30px 24px;}
}
@media (max-width:560px){
  body{font-size:16px;}
  .nav .brand span{display:none;}
  .landing-onepage .nav .appstore{padding:8px 14px 8px 12px;}
  .landing-onepage .hero{padding-top:16px;}
  .landing-onepage .hero h1{font-size:38px;}
  .landing-onepage .phone.phone-hero{height:min(330px,74vw);}
  .landing-onepage .exo-buddy .mascot{width:82px;}
  .landing-onepage .cta-card{border-radius:20px;padding:16px 18px;}
  .landing-onepage .foot-row{justify-content:center;text-align:center;}
  .exo-buddy .bubble{font-size:13px;}
  .foot-top{flex-direction:column;}
  .foot-links{gap:32px;}
}
