/* tomo.css - the Tomo journey page.
   Warm, calm, clinical-but-human: cream paper in light, deep cocoa in dark, Tomo's own peach as
   the one accent. Fraunces for the voice of the page, Inter for reading, Plex Mono for numbers. */

:root,
:root[data-theme="light"]{
  --bg:#fbf6f0;
  --bg-2:#f4ebe1;
  --card:#ffffff;
  --text:#211915;
  --muted:#6b5b52;
  --line:rgba(33,25,21,.12);
  --line-2:rgba(33,25,21,.22);
  --peach:#f6a46a;
  --peach-2:#f08a45;
  --peach-soft:rgba(246,164,106,.16);
  --peach-text:#a3481a;          /* peach as TEXT on cream: 5.3:1 */
  --on-peach:#211915;
  --shadow:0 30px 70px -30px rgba(86,44,18,.35);
  --shadow-sm:0 12px 30px -16px rgba(86,44,18,.30);
  --veil:rgba(251,246,240,.82);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#15100d; --bg-2:#1d1612; --card:#241b16; --text:#f6ede6; --muted:#c0ab9d;
    --line:rgba(246,237,230,.10); --line-2:rgba(246,237,230,.20);
    --peach:#f7a76c; --peach-2:#f39050; --peach-soft:rgba(247,167,108,.14); --peach-text:#f7b384; --on-peach:#1a120e;
    --shadow:0 30px 70px -30px rgba(0,0,0,.8); --shadow-sm:0 12px 30px -16px rgba(0,0,0,.7); --veil:rgba(21,16,13,.82);
  }
}
:root[data-theme="dark"]{
  --bg:#15100d; --bg-2:#1d1612; --card:#241b16; --text:#f6ede6; --muted:#c0ab9d;
  --line:rgba(246,237,230,.10); --line-2:rgba(246,237,230,.20);
  --peach:#f7a76c; --peach-2:#f39050; --peach-soft:rgba(247,167,108,.14); --peach-text:#f7b384; --on-peach:#1a120e;
  --shadow:0 30px 70px -30px rgba(0,0,0,.8); --shadow-sm:0 12px 30px -16px rgba(0,0,0,.7); --veil:rgba(21,16,13,.82);
}
:root{
  --f-display:"Fraunces",Georgia,"Times New Roman",serif;
  --f-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --maxw:1220px;
  --gut:clamp(16px,4vw,56px);
  --ease:cubic-bezier(.22,.9,.28,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:76px}
body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.6 var(--f-body);overflow-x:hidden;transition:background .3s,color .3s}
img,video{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{margin:0}
.tm-wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut)}
.tm-skip{position:absolute;left:-9999px;top:8px;z-index:50;background:var(--peach);color:var(--on-peach);padding:10px 14px;border-radius:10px}
.tm-skip:focus{left:12px}
:focus-visible{outline:3px solid var(--peach-2);outline-offset:3px;border-radius:8px}

/* designed scrollbars */
html{scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:99px;border:3px solid var(--bg)}
::-webkit-scrollbar-track{background:transparent}

/* icons: line only, colour from the text */
.tm-ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tm-ico--sm{width:16px;height:16px}
.tm-ico--lg{width:30px;height:30px;stroke-width:1.5}

/* ── nav ── */
.tm-nav{position:fixed;inset:0 0 auto 0;z-index:20;transition:background .3s,box-shadow .3s,backdrop-filter .3s}
.tm-nav.is-solid{background:var(--veil);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 1px 0 var(--line)}
.tm-nav__in{display:flex;align-items:center;gap:20px;height:70px}
.tm-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.tm-brand img{width:38px;height:38px;border-radius:50%}
.tm-brand__name{font:700 22px/1 var(--f-display);letter-spacing:-.01em}
.tm-brand__by{font:500 12px/1 var(--f-mono);color:var(--muted);font-style:normal;padding:4px 8px;border:1px solid var(--line);border-radius:99px}
.tm-nav__links{display:flex;gap:26px;margin-left:auto}
.tm-nav__links a{text-decoration:none;font-weight:500;font-size:15px;color:var(--muted);transition:color .2s}
.tm-nav__links a:hover{color:var(--text)}
.tm-nav__tools{display:flex;align-items:center;gap:8px}
.tm-round{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:42px;height:42px;padding:0 10px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:var(--text);font:600 13px var(--f-body);cursor:pointer}
.tm-round:hover{border-color:var(--peach-2)}
.tm-ico--moon{display:none}
:root[data-theme="dark"] .tm-ico--sun{display:none}
:root[data-theme="dark"] .tm-ico--moon{display:block}
.tm-flag{display:inline-block;width:22px;height:15px;border-radius:3px;overflow:hidden;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.14)}
.tm-flag svg{width:100%;height:100%;display:block}

/* language picker: own popup with search, flag + name + explanation per option */
.tm-pick{position:fixed;width:270px;max-width:calc(100vw - 24px);padding:10px;border-radius:16px;background:var(--card);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow)}
.tm-pick__search{display:flex;align-items:center;gap:8px;padding:0 10px;height:42px;border-radius:10px;border:1px solid var(--line-2);margin-bottom:6px;color:var(--muted)}
.tm-pick__search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font:500 15px var(--f-body);outline:none}
.tm-pick__list{list-style:none;margin:0;padding:0;max-height:300px;overflow:auto}
.tm-pick__opt{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:inherit;font:600 15px var(--f-body);text-align:left;cursor:pointer}
.tm-pick__opt:hover,.tm-pick__opt.is-hi{background:var(--peach-soft)}
.tm-pick__opt small{display:block;font-weight:500;font-size:12.5px;color:var(--muted)}
.tm-pick__opt > span:nth-child(2){flex:1}
.tm-pick__none{padding:12px;color:var(--muted);font-size:14px}

/* ── buttons ── */
.tm-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:999px;background:var(--peach);color:var(--on-peach);font:700 16px/1 var(--f-body);text-decoration:none;border:0;cursor:pointer;
  box-shadow:0 10px 30px -12px rgba(240,138,69,.7),inset 0 -2px 0 rgba(0,0,0,.08);transition:transform .25s var(--ease),box-shadow .25s,background .2s}
.tm-btn:hover{background:var(--peach-2);transform:translateY(-2px);box-shadow:0 16px 36px -12px rgba(240,138,69,.8)}
.tm-btn .tm-ico{transition:transform .25s var(--ease)}
.tm-btn:hover .tm-ico{transform:translateX(3px)}
.tm-btn--ghost{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.tm-btn--ghost:hover{background:var(--peach-soft);box-shadow:inset 0 0 0 1.5px var(--peach-2)}
.tm-btn--sm{min-height:42px;padding:0 18px;font-size:14px}
.tm-btn--lg{min-height:60px;padding:0 34px;font-size:18px}

/* ── hero ── */
.tm-hero{position:relative;padding:130px 0 90px;overflow:hidden}
.tm-hero::before{content:"";position:absolute;width:900px;height:900px;right:-300px;top:-260px;border-radius:50%;
  background:radial-gradient(circle at 40% 40%,var(--peach-soft),transparent 62%);pointer-events:none}
.tm-hero__in{position:relative;display:grid;grid-template-columns:1.02fr 1fr;gap:clamp(28px,5vw,72px);align-items:center}
.tm-kicker{display:inline-flex;align-items:center;gap:10px;font:500 13px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--peach-text)}
.tm-dot{width:8px;height:8px;border-radius:50%;background:var(--peach-2);box-shadow:0 0 0 6px var(--peach-soft)}
.tm-h1{margin:22px 0 22px;font:600 clamp(42px,6.2vw,84px)/1.02 var(--f-display);letter-spacing:-.025em}
.tm-line{display:block}
.tm-line--accent{font-style:italic;color:var(--peach-text)}
.tm-lead{margin:0;max-width:34em;font-size:clamp(17px,1.4vw,19px);color:var(--muted)}
.tm-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.tm-hero__who{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:28px 0 0;padding:0}
.tm-hero__who li{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:99px;border:1px solid var(--line);font-size:14px;font-weight:500;color:var(--muted)}
.tm-hero__media{position:relative;margin:0}
.tm-hero__frame{position:relative;border-radius:34px 34px 34px 8px;overflow:hidden;aspect-ratio:4/4.3;box-shadow:var(--shadow);background:var(--bg-2)}
.tm-hero__video{width:100%;height:100%;object-fit:cover;object-position:62% 50%}
.tm-hero__frame::after{content:"";position:absolute;inset:auto 0 0 0;height:44%;background:linear-gradient(transparent,rgba(26,16,10,.72));pointer-events:none}
.tm-wave{position:absolute;left:0;right:0;bottom:56px;width:100%;height:80px;z-index:1}
.tm-listen{position:absolute;left:20px;bottom:18px;z-index:2;display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:99px;background:rgba(255,255,255,.14);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font:600 13px var(--f-body);border:1px solid rgba(255,255,255,.22)}
.tm-listen__dot{width:9px;height:9px;border-radius:50%;background:#ff6b4a;animation:tmPulse 1.6s infinite}
@keyframes tmPulse{0%{box-shadow:0 0 0 0 rgba(255,107,74,.6)}70%{box-shadow:0 0 0 10px rgba(255,107,74,0)}100%{box-shadow:0 0 0 0 rgba(255,107,74,0)}}
.tm-hero__badge{position:absolute;width:96px;height:96px;top:-26px;left:-26px;border-radius:50%;box-shadow:var(--shadow-sm);border:5px solid var(--bg)}

/* ── the problem, word by word ── */
.tm-say{padding:clamp(80px,12vh,150px) 0}
.tm-eyebrow{display:block;font:500 13px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--peach-text);margin-bottom:18px}
.tm-say__big{margin:0;max-width:22em;font:500 clamp(28px,3.6vw,50px)/1.22 var(--f-display);letter-spacing:-.015em}
.tm-say__big .w{opacity:.18;transition:opacity .2s}
.tm-calm .tm-say__big .w{opacity:1}
.tm-say__answer{margin:28px 0 0;font:600 italic clamp(28px,3.6vw,50px)/1.2 var(--f-display);color:var(--peach-text)}

/* ── how it works: sticky screen beside the steps ── */
.tm-head{margin-bottom:clamp(28px,5vh,56px)}
.tm-h2{font:600 clamp(32px,4.2vw,56px)/1.06 var(--f-display);letter-spacing:-.02em;max-width:18em}
.tm-how{padding:clamp(40px,8vh,100px) 0;background:var(--bg-2)}
.tm-how__in{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(24px,5vw,72px)}
.tm-how__steps{list-style:none;margin:0;padding:0}
.tm-step{min-height:62vh;display:flex;flex-direction:column;justify-content:center;padding:24px 0;opacity:.35;transition:opacity .4s var(--ease)}
.tm-step.is-on{opacity:1}
.tm-step__no{font:500 14px var(--f-mono);color:var(--peach-text)}
.tm-step__phase{display:inline-block;margin:6px 0 10px;font:600 12px/1 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tm-step h3{font:600 clamp(26px,2.6vw,36px)/1.12 var(--f-display);letter-spacing:-.01em;margin-bottom:12px}
.tm-step p{margin:0;max-width:26em;color:var(--muted);font-size:18px}
.tm-step__shot{display:none;margin:18px 0 0}
.tm-step__shot img{border-radius:18px;box-shadow:var(--shadow-sm);width:100%;height:auto}
.tm-how__screen{position:sticky;top:calc(50vh - 220px);height:fit-content;align-self:start;margin-top:12vh}
.tm-device{position:relative;aspect-ratio:1400/788;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);background:#2a1c14;border:8px solid var(--card)}
.tm-device img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.04);transition:opacity .6s var(--ease),transform 1.2s var(--ease)}
.tm-device img.is-on{opacity:1;transform:none}
.tm-progress{height:4px;margin:18px 8px 0;border-radius:99px;background:var(--line);overflow:hidden}
.tm-progress span{display:block;height:100%;width:0;background:var(--peach-2);border-radius:99px;transition:width .4s var(--ease)}

/* ── what is Tomo ── */
.tm-what{padding:clamp(80px,12vh,140px) 0}
.tm-what__in{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(24px,5vw,72px);align-items:center}
.tm-what__txt p{color:var(--muted);font-size:18px;margin:20px 0 0}
.tm-what__img{margin:0}
.tm-what__img img{border-radius:24px;box-shadow:var(--shadow);width:100%;height:auto}
/* the cycle: an SVG line loop, two round photos and real-text pills (translated), all placed in percent */
.tm-cycle{position:relative;aspect-ratio:1000/620;container-type:inline-size}
.tm-cycle__loop{position:absolute;inset:0;width:100%;height:100%;color:var(--peach-2);overflow:visible}
.tm-cycle__loop path{fill:none;stroke:currentColor;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.tm-cycle img.tm-cycle__ph{position:absolute;top:51.6%;width:23%;height:auto;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);border:4px solid var(--card);box-shadow:var(--shadow-sm);object-fit:cover}
.tm-cycle img.tm-cycle__ph--l{left:27%}
.tm-cycle img.tm-cycle__ph--r{left:73%}
.tm-cycle__pill{position:absolute;transform:translate(-50%,-50%);width:max-content;max-width:25%;text-align:center;background:var(--card);color:var(--text);border:1px solid var(--line-2);border-radius:14px;box-shadow:var(--shadow-sm);padding:.55em .9em;font:600 clamp(11.5px,2.4cqw,16px)/1.25 var(--f-body);hyphens:auto;overflow-wrap:anywhere}
.tm-cycle__pill--tl{left:27%;top:23.4%}
.tm-cycle__pill--tr{left:73%;top:23.4%}
.tm-cycle__pill--bl{left:27%;top:79.8%}
.tm-cycle__pill--br{left:73%;top:79.8%}
.tm-cycle__pill--c{left:50%;top:51.6%;border-color:var(--peach-2)}
@media (max-width:560px){
  .tm-cycle{aspect-ratio:1000/800}
  .tm-cycle img.tm-cycle__ph{top:50%;width:27%}
  .tm-cycle__pill{max-width:30%;padding:.5em .6em}
  .tm-cycle__pill--tl,.tm-cycle__pill--tr{top:18%}
  .tm-cycle__pill--bl,.tm-cycle__pill--br{top:82%}
  .tm-cycle__pill--c{top:50%;max-width:26%}
}

/* ── benefits ── */
.tm-benefits{padding:clamp(60px,10vh,120px) 0}
.tm-ben{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.tm-ben li{grid-column:span 2}
.tm-ben li:nth-child(n+4){grid-column:span 3}
.tm-card{padding:26px 22px;border-radius:22px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-sm);transition:transform .3s var(--ease),border-color .3s}
.tm-card:hover{transform:translateY(-4px);border-color:var(--peach)}
.tm-card .tm-ico{color:var(--peach-text)}
.tm-card h3{font:600 20px/1.2 var(--f-display);margin:18px 0 8px}
.tm-card p{margin:0;font-size:15px;color:var(--muted)}

/* ── features ── */
.tm-features{padding:clamp(60px,10vh,120px) 0;background:var(--bg-2)}
.tm-feat{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tm-feat__i{padding:28px;border-radius:22px;background:var(--card);border:1px solid var(--line);position:relative;overflow:hidden}
.tm-feat__i--wide{grid-column:span 2}
.tm-feat__i::after{content:"";position:absolute;right:-60px;top:-60px;width:160px;height:160px;border-radius:50%;background:var(--peach-soft);transition:transform .5s var(--ease)}
.tm-feat__i:hover::after{transform:scale(1.4)}
.tm-feat__i .tm-ico{color:var(--peach-text);position:relative;z-index:1}
.tm-feat__i h3{font:600 21px/1.2 var(--f-display);margin:18px 0 8px;position:relative;z-index:1}
.tm-feat__i p{margin:0;color:var(--muted);font-size:15.5px;position:relative;z-index:1}

/* ── read more ── */
.tm-read{padding:clamp(60px,10vh,120px) 0}
.tm-articles{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tm-article{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:center;padding:14px;border-radius:22px;background:var(--card);border:1px solid var(--line);text-decoration:none;transition:transform .3s var(--ease),border-color .3s}
.tm-article:hover{transform:translateY(-3px);border-color:var(--peach)}
.tm-article img{width:150px;height:150px;object-fit:cover;border-radius:14px}
.tm-article h3{font:600 20px/1.25 var(--f-display)}
.tm-article__go{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-weight:600;font-size:14px;color:var(--peach-text)}

/* ── final ── */
.tm-final{padding:clamp(40px,8vh,90px) 0 clamp(70px,10vh,120px)}
.tm-final__in{position:relative}
.tm-final__photo{width:100%;height:clamp(380px,62vh,620px);object-fit:cover;border-radius:32px}
.tm-final__card{position:relative;margin:-160px auto 0;max-width:620px;padding:36px clamp(22px,4vw,44px);border-radius:28px;background:var(--card);box-shadow:var(--shadow);text-align:center;border:1px solid var(--line)}
.tm-final__logo{width:64px;height:64px;border-radius:50%;margin:-70px auto 16px;border:5px solid var(--card)}
.tm-final__card .tm-h2{margin:0 auto 12px;font-size:clamp(28px,3.4vw,42px)}
.tm-final__card p{color:var(--muted);margin:0 0 24px}
.tm-final__org{margin:22px 0 0 !important;font-size:14px}
.tm-final__org a{color:var(--peach-text);font-weight:600}

/* ── footer ── */
.tm-foot{border-top:1px solid var(--line);padding:56px 0 110px;font-size:15px}
.tm-foot__in{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px}
.tm-foot__col{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.tm-foot h3{font:600 13px var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:10px 0 4px}
.tm-foot a{color:var(--text);text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.tm-foot a:hover{color:var(--peach-text)}
.tm-foot address{font-style:normal;color:var(--muted)}
.tm-foot__tag{color:var(--muted);margin:6px 0 0}
.tm-foot__social{display:flex;gap:16px;margin:0}

/* sticky start, appears once the hero CTA is out of view */
.tm-sticky{position:fixed;right:20px;bottom:20px;z-index:15;padding:0 22px 0 8px;min-height:54px;transform:translateY(140%);opacity:0;transition:transform .4s var(--ease),opacity .3s}
.tm-sticky img{width:38px;height:38px;border-radius:50%}
.tm-sticky.is-on{transform:none;opacity:1}

/* reveal */
.tm-move [data-rise]{opacity:0;transform:translateY(26px)}
.tm-move [data-rise].is-in{opacity:1;transform:none;transition:opacity .7s var(--ease),transform .7s var(--ease)}

/* ── tablet ── */
@media (max-width:1080px){
  .tm-ben{grid-template-columns:repeat(2,1fr)}
  .tm-ben li,.tm-ben li:nth-child(n+4){grid-column:auto}
  .tm-ben li:last-child{grid-column:span 2}
  .tm-feat{grid-template-columns:repeat(2,1fr)}
  .tm-feat__i--wide{grid-column:span 2}
  .tm-foot__in{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .tm-nav__links{display:none}
  .tm-nav__tools{margin-left:auto}
  .tm-hero{padding-top:100px}
  .tm-hero__in,.tm-what__in{grid-template-columns:1fr}
  .tm-hero__frame{aspect-ratio:16/12}
  .tm-hero__badge{width:72px;height:72px;top:-20px;left:auto;right:16px}
  .tm-how__in{grid-template-columns:1fr}
  .tm-how__screen{display:none}
  .tm-step{min-height:0;opacity:1;padding:26px 0;border-top:1px solid var(--line)}
  .tm-step__shot{display:block}
  .tm-articles{grid-template-columns:1fr}
}
/* ── phone ── */
@media (max-width:560px){
  body{font-size:16px}
  .tm-brand__by{display:none}
  .tm-nav__cta{display:none}
  .tm-cta-row .tm-btn{flex:1 1 100%}
  .tm-ben{grid-template-columns:1fr}
  .tm-ben li,.tm-ben li:last-child{grid-column:auto}
  .tm-feat{grid-template-columns:1fr}
  .tm-feat__i--wide{grid-column:auto}
  .tm-article{grid-template-columns:96px 1fr;gap:14px}
  .tm-article img{width:96px;height:96px}
  .tm-article h3{font-size:17px}
  .tm-final__photo{height:300px;border-radius:22px}
  .tm-final__card{margin-top:-80px}
  .tm-foot__in{grid-template-columns:1fr}
  .tm-sticky{left:16px;right:16px;bottom:14px}
}

/* reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important}
}
