/* ============================================================
   DOG TRANSLATOR — "Bark Signal" theme stylesheet
   Ported verbatim from Design Source/index.html (V3 synthesis).
   Tokens mirror DESIGN.md. Fonts self-hosted (see assets/fonts/fonts.css,
   loaded ahead of this file); Google CDN is the fallback enqueue.
   ============================================================ */

:root{
  /* ---- identity palette (shipping brand colors) ---- */
  --ink:        #0c0d0f;
  --ink-soft:   #41434a;
  --ink-faint:  #5d6066;   /* AA-safe muted (darkened from #6e7177) */
  --paper:      #fffdfa;
  --cream:      #f8f4ec;
  --cream-deep: #efe9dd;
  --blue:       #2746ee;
  --blue-deep:  #1a2db5;
  --violet:     #9d74ff;
  --lime:       #d9f53c;
  --lime-deep:  #c3df1f;
  --mist:       #e8e4fd;   /* soft violet tint */
  --blue-soft:  #e4ebff;   /* soft blue tint  */

  --line:        rgba(12,13,15,.13);
  --line-strong: rgba(12,13,15,.22);

  --display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
  --serif: 'Fraunces', Georgia, serif;

  --ease: cubic-bezier(.16,1,.3,1);
  --shadow-soft: 0 1px 2px rgba(12,13,15,.05), 0 8px 24px rgba(12,13,15,.08);
  --shadow-lift: 0 2px 6px rgba(12,13,15,.08), 0 22px 50px rgba(12,13,15,.14);
  --shadow-phone: 0 4px 12px rgba(12,13,15,.12), 0 40px 90px rgba(20,28,80,.34);

  --maxw: 1240px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:84px}
body{
  font-family:var(--body);
  background:var(--cream);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:none;background:none}

:focus-visible{outline:2.5px solid var(--blue);outline-offset:3px;border-radius:5px}
.demo :focus-visible,.reviews :focus-visible,.foot :focus-visible,
.strip :focus-visible{outline-color:var(--lime)}

h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.0;letter-spacing:-.04em}
.wrap{width:min(var(--maxw),100% - 2.5rem);margin-inline:auto}

/* skip link (a11y) — hidden off the TOP edge so it never widens the page (RTL-safe) */
.skip-link{position:absolute;top:-100px;left:0;z-index:200;background:var(--ink);color:var(--paper);padding:.8rem 1.2rem;border-radius:0 0 12px 0;font-weight:700;transition:top .2s ease}
.skip-link:focus{top:0}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6em;
  font-family:var(--body);font-weight:700;font-size:1.02rem;
  padding:1.05em 2.1em;border-radius:999px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), background .3s var(--ease);
}
.btn-dark{background:var(--ink);color:var(--paper);box-shadow:var(--shadow-soft)}
.btn-dark:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.btn-ghost{border:1.5px solid var(--ink);padding:1em 1.6em}
.btn-ghost:hover{background:var(--ink);color:var(--paper)}
.btn-lime{background:var(--lime);color:var(--ink);box-shadow:0 10px 26px rgba(160,180,20,.35)}
.btn-lime:hover{transform:translateY(-3px);background:var(--lime-deep)}
.btn-blue{background:var(--blue);color:var(--paper);box-shadow:0 12px 26px rgba(39,70,238,.32)}
.btn-blue:hover{transform:translateY(-3px);background:var(--blue-deep)}
.text-link{display:inline-flex;align-items:center;gap:.45rem;font-weight:700;font-size:1rem;color:var(--ink);padding:.55em .2em;border-bottom:2px solid transparent;transition:border-color .3s var(--ease)}
.text-link span{transition:transform .35s var(--ease)}
.text-link:hover{border-color:var(--ink)}
.text-link:hover span{transform:translateX(5px)}

.rating{display:flex;align-items:center;gap:.6rem;font-weight:600;font-size:.95rem}
.stars{color:var(--blue);letter-spacing:1px}
.rating small{color:var(--ink-soft);font-weight:500}

/* ---------- Header / nav ---------- */
.site-head{
  position:relative;z-index:60;
  background:transparent;
}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;padding-block:.85rem}

.brand{display:inline-flex;align-items:center;gap:.65rem;font-family:var(--display);font-weight:800;font-size:1.22rem;letter-spacing:-.02em}
.brand-mark{width:34px;height:28px;display:flex;align-items:center;gap:3px;transform:skew(-8deg);flex:none}
.brand-mark span{display:block;width:4px;background:var(--blue);border-radius:100px;transform:rotate(-26deg)}
.brand-mark span:nth-child(1){height:16px}
.brand-mark span:nth-child(2){height:26px}
.brand-mark span:nth-child(3){height:13px}

.nav{display:flex;align-items:center;gap:2rem}
.nav-links{display:flex;align-items:center;gap:1.9rem}
.nav-links a{font-weight:600;font-size:.97rem;color:var(--ink-soft);transition:color .2s;padding:.4em 0}
.nav-links a:hover{color:var(--blue)}
.nav-links .head-cta{padding:.6em 1.9em;font-size:.9rem;border-radius:999px}

/* language switcher (theme component) sits in the nav */
.language-switcher{position:relative;font-weight:600;font-size:.9rem}
.language-switcher__button{display:inline-flex;align-items:center;gap:.35rem;color:var(--ink-soft);padding:.45em .8em;border:1px solid var(--line);border-radius:999px}
.language-switcher__button:hover{color:var(--blue);border-color:var(--line-strong)}
.language-switcher__menu{position:absolute;right:0;top:calc(100% + .5rem);background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lift);padding:.4rem;min-width:180px;max-height:62vh;overflow:auto;display:none;z-index:80}
.language-switcher.open .language-switcher__menu,.language-switcher__menu.is-open{display:block}
.language-switcher__option{display:block;padding:.5rem 1.1rem;border-radius:9px;color:var(--ink-soft);font-weight:600}
.language-switcher__option:hover{background:var(--cream)}
.language-switcher__option.is-active{color:var(--blue);background:var(--blue-soft)}
@media(max-width:860px){
  .language-switcher{width:100%;padding-top:1.4rem;margin-top:.6rem;border-top:1px solid var(--line)}
  .language-switcher__button{display:none}
  .language-switcher__menu{position:static;display:grid;grid-template-columns:1fr 1fr;gap:.35rem;padding:0;margin-top:0;background:transparent;border:none;box-shadow:none;max-height:none;overflow:visible}
  .nav.open .language-switcher__option{display:block;padding:.55rem .75rem;border-radius:.75rem;background:var(--cream-deep);color:var(--ink-soft);font-size:.9rem;text-align:center;width:auto;border-bottom:none;font-weight:600}
  .nav.open .language-switcher__option:hover{background:var(--cream)}
  .nav.open .language-switcher__option.is-active{background:var(--blue);color:var(--paper)}
}

.menu-btn{display:none;width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center}
.menu-btn svg{width:24px;height:24px;stroke:var(--ink);stroke-width:2.2;fill:none;stroke-linecap:round}
@media(max-width:860px){
  .nav-links{display:none}
  .nav .head-cta{display:none}
  .menu-btn{display:inline-flex}
  .nav.open .nav-links{
    display:flex;flex-direction:column;gap:0;align-items:flex-start;
    position:fixed;top:0;left:0;width:100vw;height:100dvh;z-index:80;overflow-y:auto;
    background:var(--paper);padding:96px 24px 32px;
  }
  .nav.open .nav-links a{font-size:1.15rem;padding:1.05rem 0;border-bottom:1px solid var(--line);color:var(--ink);width:100%}
  .nav.open .head-cta{display:inline-flex;align-self:flex-start;margin-top:1.4rem;border-bottom:none;font-size:1.02rem}
  .nav.open .lang-switcher{margin-top:1.2rem}
  .nav.open ~ .menu-btn,.menu-btn.is-open{position:fixed;top:18px;right:24px;z-index:90}
}

/* ============================================================ HERO */
.hero{position:relative;overflow:hidden;background:#ffffff;padding-top:clamp(2rem,5vw,4rem)}
.hero .wrap{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:2rem;align-items:stretch;min-height:auto}
.hero-copy{max-width:34rem;align-self:center;padding-block:clamp(.75rem,1.8vw,1.4rem)}
.kicker{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--mono);font-weight:500;font-size:.74rem;letter-spacing:.09em;text-transform:uppercase;
  background:rgba(39,70,238,.10);color:var(--blue);
  padding:.5em 1em;border-radius:999px;margin-bottom:1.4rem;
}
.kicker .kicker-paw{width:1.2em;height:1.2em;flex:none;fill:var(--blue)}
.hero h1{font-size:clamp(2.6rem,5.6vw,4.7rem);font-weight:800;letter-spacing:-.035em;line-height:.98;overflow-wrap:break-word}
.hero h1 em{font-family:var(--serif);font-style:italic;font-weight:600;color:var(--blue);letter-spacing:-.01em}
.hero h1 .h1-brand{display:block;font-size:clamp(1.25rem,2.2vw,1.85rem);font-weight:700;color:var(--ink-soft);letter-spacing:-.015em;line-height:1.1;margin-bottom:.32em}
.hero-sub{font-size:clamp(1.08rem,1.7vw,1.28rem);color:var(--ink-soft);margin-top:1.4rem;max-width:30rem;font-weight:500}
.hero-actions{display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap;margin-top:2.2rem}
.hero-trust{display:flex;align-items:center;gap:1.4rem;margin-top:1.8rem;flex-wrap:wrap}
.hero-trust .av{display:flex}
.hero-trust .av span{width:34px;height:34px;border-radius:50%;border:2.5px solid var(--cream);margin-left:-10px;background-size:cover;background-position:center;box-shadow:var(--shadow-soft)}
.hero-trust .av span:first-child{margin-left:0}

.hero-stage{position:relative;align-self:end;display:flex;align-items:flex-end;justify-content:center;min-height:480px}
/* Wrapper around video + signal + Listening pill. Transparent on desktop (display:contents
   keeps the absolute overlays resolving to .hero-stage); becomes the media box on mobile. */
.hero-media{display:contents}
.hero-signal{
  position:absolute;z-index:1;left:8%;right:8%;bottom:16%;height:40%;
  display:flex;align-items:center;justify-content:center;gap:5px;opacity:.45;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
}
.hero-signal i{width:5px;border-radius:100px;background:linear-gradient(180deg,#9d74ff,#2746ee 50%,#c66bff);height:var(--h,40%);animation:wave 1.5s ease-in-out infinite alternate;animation-delay:var(--delay,0s)}
@keyframes wave{to{height:calc(var(--h,40%) * .4);opacity:.6}}
.hero-dog{position:relative;z-index:2;height:100%;width:auto;max-width:none;aspect-ratio:1/1;object-fit:contain;object-position:center bottom;display:block;background:transparent}
.hero-bubble{
  position:absolute;z-index:3;top:5%;right:-2%;left:auto;
  background:var(--paper);color:var(--ink);
  border-radius:1.4rem 1.4rem .4rem 1.4rem;
  padding:1.05rem 1.25rem;width:min(70%,290px);
  box-shadow:var(--shadow-lift);border:1px solid var(--line);
}
.hero-bubble .hb-top{display:flex;align-items:center;gap:.5rem;margin-bottom:.55rem}
.hero-bubble .mood{font-size:.72rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--blue)}
.hero-bubble .live{margin-left:auto;display:flex;align-items:center;gap:.35rem;font-size:.68rem;font-weight:700;color:var(--ink-faint)}
.hero-bubble .live i{width:.45rem;height:.45rem;border-radius:50%;background:#e2543a;animation:blink 1.4s var(--ease) infinite}
.hero-bubble .hb-text{font-family:var(--display);font-weight:600;font-size:1.12rem;line-height:1.25;min-height:2.4em}
.hero-bubble .caret{display:inline-block;width:.5ch;background:var(--ink);margin-left:1px;animation:blink .9s steps(1) infinite}
.hero-wave{position:absolute;z-index:3;bottom:15%;right:-1%;background:var(--ink);color:var(--paper);border-radius:1.1rem;padding:.8rem 1rem;display:flex;align-items:center;gap:.7rem;box-shadow:var(--shadow-lift)}
.hero-wave .mini-wave{display:flex;align-items:center;gap:2.5px;height:24px}
.hero-wave .mini-wave i{width:3px;border-radius:2px;background:var(--lime);height:30%}
.hero-wave .label{font-size:.78rem;font-weight:700}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}

/* proof row */
.proof{width:min(var(--maxw),100% - 2.5rem);margin:2.75rem auto;background:var(--paper);border:1px solid var(--line);border-radius:20px;display:grid;grid-template-columns:repeat(4,1fr);padding:1.7rem 1.3rem;box-shadow:var(--shadow-soft)}
.proof>div{display:flex;gap:.85rem;padding:0 1.35rem;border-right:1px solid var(--line)}
.proof>div:first-child{padding-left:.4rem}
.proof>div:last-child{border-right:0;padding-right:.4rem}
.proof svg{width:26px;height:26px;stroke:var(--blue);stroke-width:1.8;fill:none;flex:none;margin-top:2px}
.proof strong{display:block;font-size:.98rem;font-weight:700;letter-spacing:-.01em;margin-bottom:.25rem}
.proof small{display:block;font-size:.82rem;line-height:1.4;color:var(--ink-soft)}

/* ============================================================ SECTION SHELL */
section{position:relative}
.pad{padding-block:clamp(4rem,9vw,8rem)}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--mono);font-weight:500;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:1.1rem}
.eyebrow .eb-paw{width:1.35em;height:1.35em;flex:none;fill:var(--blue)}
.sec-head{max-width:40rem}
.sec-head h2{font-size:clamp(2rem,4.3vw,3.3rem);font-weight:800;letter-spacing:-.03em}
.sec-head p{font-size:clamp(1.05rem,1.5vw,1.2rem);color:var(--ink-soft);margin-top:1rem;font-weight:500}

/* "Ever caught yourself" */
.caught{background:var(--cream)}
.caught .top{margin-bottom:2.5rem}
.caught-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:1.5rem}
.caught-photo{position:relative;border-radius:1.8rem;overflow:hidden;box-shadow:var(--shadow-lift);min-height:440px}
.caught-photo img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.caught-photo .tag{position:absolute;left:1.4rem;bottom:1.4rem;z-index:2;background:var(--paper);border-radius:1rem 1rem 1rem .3rem;padding:.85rem 1.1rem;box-shadow:var(--shadow-lift);max-width:78%}
.caught-photo .tag .m{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--blue);margin-bottom:.2rem}
.caught-photo .tag .t{font-family:var(--display);font-weight:600;font-size:1.05rem;line-height:1.2}
.caught-list{display:flex;flex-direction:column;gap:1rem}
.caught-item{background:var(--paper);border-radius:1.3rem;padding:1.4rem 1.5rem;border:1px solid var(--line);transition:transform .4s var(--ease),box-shadow .4s var(--ease)}
.caught-item:hover{transform:translateX(6px);box-shadow:var(--shadow-soft)}
.caught-item h3{font-size:1.18rem;font-weight:700;margin-bottom:.3rem;letter-spacing:-.01em}
.caught-item p{font-size:.97rem;color:var(--ink-soft)}
.caught-foot{margin-top:2.8rem;font-family:var(--serif);font-style:italic;font-size:1.4rem;color:var(--blue)}

/* ============================================================ SIGNATURE DEMO */
.demo{background:var(--ink);color:var(--paper);overflow:hidden}
.demo .eyebrow{color:var(--lime)}
.demo .eyebrow .eb-paw{fill:var(--lime)}
.demo .sec-head h2{color:var(--paper)}
.demo .sec-head p{color:#cdd0d6}
.demo-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(2rem,5vw,5rem);align-items:center;margin-top:3.2rem}
.demo-steps{display:flex;flex-direction:column;gap:.4rem}
.step{display:flex;gap:1.1rem;padding:1.3rem 1.4rem;border-radius:1.2rem;transition:background .4s var(--ease),transform .4s var(--ease);border:1px solid transparent;cursor:default}
.step.active{background:rgba(39,70,238,.18);border-color:rgba(157,116,255,.4)}
.step .num{width:2.4rem;height:2.4rem;flex:none;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:1.05rem;background:#26282d;color:#b8bbc2;transition:all .4s var(--ease)}
.step.active .num{background:var(--lime);color:var(--ink)}
.step h3{font-size:1.2rem;font-weight:700;color:var(--paper);margin-bottom:.25rem}
.step p{font-size:.98rem;color:#b7bac1}
.demo-cta{margin-top:1.8rem}
.demo-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:620px}
.glow{position:absolute;width:72%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,var(--blue) 0%,transparent 64%);opacity:.45;filter:blur(34px);z-index:0}
.phone{position:relative;z-index:2;width:300px;height:620px;flex:none;background:linear-gradient(160deg,#34363b,#161719);border-radius:54px;padding:13px;box-shadow:var(--shadow-phone), inset 0 0 0 2px rgba(120,124,132,.5)}
.phone-screen{position:relative;width:100%;height:100%;border-radius:42px;overflow:hidden;background:linear-gradient(180deg,var(--paper),var(--cream));display:flex;flex-direction:column}
.island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:96px;height:27px;background:var(--ink);border-radius:999px;z-index:10}
.statusbar{display:flex;justify-content:space-between;align-items:center;padding:14px 24px 0;font-size:.72rem;font-weight:700;color:var(--ink);z-index:5}
.statusbar .sig{display:flex;gap:3px;align-items:center}
.statusbar .sig b{display:inline-block;width:3px;background:var(--ink);border-radius:1px}
.statusbar .sig b:nth-child(1){height:5px}.statusbar .sig b:nth-child(2){height:7px}.statusbar .sig b:nth-child(3){height:9px}.statusbar .sig b:nth-child(4){height:11px}
.app{flex:1;display:flex;flex-direction:column;padding:18px 20px 22px;min-height:0}
.app-top{display:flex;align-items:center;gap:.55rem;margin-top:6px}
.app-top .mk{width:30px;height:24px;display:flex;align-items:center;gap:2.5px;transform:skew(-8deg)}
.app-top .mk span{display:block;width:3.4px;border-radius:100px;background:var(--blue);transform:rotate(-26deg)}
.app-top .mk span:nth-child(1){height:13px}.app-top .mk span:nth-child(2){height:21px}.app-top .mk span:nth-child(3){height:10px}
.app-top .name{font-family:var(--display);font-weight:800;font-size:1.05rem;letter-spacing:-.02em}
.app-top .lang{margin-left:auto;font-size:.7rem;font-weight:700;color:var(--ink-faint);background:var(--cream-deep);padding:.3em .7em;border-radius:999px}
.app-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.4rem;min-height:0;text-align:center}
.stage-visual{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;width:100%;min-height:0}
.status-line{font-weight:700;font-size:.95rem;color:var(--ink-soft);min-height:1.4em;transition:color .3s;margin-top:14px}
.status-line.rec{color:#d6492f}
.waveform{display:flex;align-items:center;justify-content:center;gap:3px;height:84px;width:100%}
.waveform i{width:4px;border-radius:3px;background:var(--ink);height:8%;transition:height .12s var(--ease),background .3s}
.waveform.live i{background:var(--violet)}
.mic{position:relative;width:104px;height:104px;border-radius:50%;background:radial-gradient(circle at 38% 32%, #e7ff63, var(--lime-deep));display:grid;place-items:center;color:var(--ink);box-shadow:0 12px 30px rgba(160,180,20,.5), inset 0 -3px 8px rgba(120,140,10,.4);transition:transform .4s var(--ease)}
.mic svg{width:40px;height:40px}
.mic .ring{position:absolute;inset:0;border-radius:50%;border:3px solid var(--lime);opacity:0}
.mic.pulsing .ring{animation:micring 1.6s var(--ease) infinite}
@keyframes micring{0%{opacity:.6;transform:scale(1)}100%{opacity:0;transform:scale(1.5)}}
.mic-hint{font-size:.82rem;font-weight:600;color:var(--ink-faint)}
.thinking{display:flex;gap:6px;align-items:center;justify-content:center;height:84px}
.thinking i{width:11px;height:11px;border-radius:50%;background:var(--violet);animation:thinkbounce 1.1s var(--ease) infinite}
.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}
@keyframes thinkbounce{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-12px);opacity:1}}
.result{width:100%;display:flex;flex-direction:column;gap:.7rem;opacity:0;transform:translateY(10px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.result.show{opacity:1;transform:none}
.result .mood-tag{align-self:flex-start;display:inline-flex;align-items:center;gap:.45rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--ink);background:var(--lime);padding:.4em .8em;border-radius:999px}
.result .bubble{background:var(--blue);color:var(--paper);border-radius:1.1rem 1.1rem 1.1rem .35rem;padding:1rem 1.1rem;font-family:var(--display);font-weight:600;font-size:1.08rem;line-height:1.3;text-align:left;min-height:3.4em}
.result .bubble .caret{display:inline-block;width:.5ch;background:var(--lime);margin-left:1px;animation:blink .9s steps(1) infinite}
.app-actions{display:flex;gap:.6rem;margin-top:auto;padding-top:14px}
.app-actions .a{flex:1;display:flex;align-items:center;justify-content:center;gap:.35rem;padding:.9em .5em;border-radius:14px;font-weight:700;font-size:.82rem;white-space:nowrap}
.app-actions .a.primary{background:var(--ink);color:var(--paper)}
.app-actions .a.ghost{background:var(--cream-deep);color:var(--ink)}
.demo-video{position:absolute;z-index:3;right:-14px;bottom:24px;width:228px;border-radius:1.4rem;overflow:hidden;box-shadow:var(--shadow-lift);border:5px solid var(--paper);transform:rotate(3deg)}
.demo-video video{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:3/4}
.demo-video .vcap{position:absolute;left:9px;bottom:9px;background:rgba(12,13,15,.8);color:var(--paper);font-size:.7rem;font-weight:700;padding:.28em .7em;border-radius:999px;backdrop-filter:blur(6px)}

/* ============================================================ FEATURES MOSAIC */
.features{background:var(--paper)}
.feat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1.4rem;margin-top:3.2rem}
.tile{border-radius:1.6rem;padding:1.8rem;position:relative;overflow:hidden;border:1px solid var(--line);transition:transform .5s var(--ease),box-shadow .5s var(--ease);display:flex;flex-direction:column}
.tile:hover{transform:translateY(-5px);box-shadow:var(--shadow-lift)}
.tile h3{font-size:1.45rem;font-weight:700;margin:0 0 .5rem;letter-spacing:-.02em}
.tile p{font-size:.97rem;color:var(--ink-soft);max-width:30rem}
.tile.big{grid-column:span 3;background:var(--cream)}
.tile.med{grid-column:span 3;background:var(--mist)}
.tile.sm{grid-column:span 2}
.tile.t-blue{background:var(--blue-soft)}
.tile.t-cream{background:var(--cream)}
.tile.t-lime{background:linear-gradient(160deg,#e7ff63,var(--lime))}
.mini-h2d{margin-top:1.4rem;background:var(--paper);border-radius:1.1rem;padding:1.1rem;box-shadow:var(--shadow-soft)}
.mini-h2d .said{display:flex;align-items:center;gap:.5rem;font-size:.92rem;font-weight:600;color:var(--ink-soft)}
.mini-h2d .said b{color:var(--ink)}
.mini-h2d .arrow{text-align:center;color:var(--ink-faint);font-size:1.1rem;margin:.4rem 0}
.mini-h2d .barked{display:flex;align-items:center;gap:.6rem;background:var(--blue);color:var(--paper);border-radius:.9rem;padding:.7rem .9rem}
.mini-h2d .barked .mini-wave{display:flex;gap:2px;align-items:center;height:20px}
.mini-h2d .barked .mini-wave i{width:3px;border-radius:2px;background:var(--lime);height:30%}
.mini-h2d .barked span{font-family:var(--display);font-weight:600;font-size:.95rem}
.soundboard{margin-top:1.4rem;display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.mood-btn{display:flex;align-items:center;gap:.5rem;background:var(--paper);border-radius:.9rem;padding:.7rem .85rem;font-weight:700;font-size:.92rem;box-shadow:var(--shadow-soft);transition:transform .3s var(--ease)}
.mood-btn .e{font-size:1.2rem}
.mood-btn.on{background:var(--blue);color:var(--paper)}
.train-card{margin-top:1.4rem;background:var(--paper);border-radius:1.1rem;overflow:hidden;box-shadow:var(--shadow-soft)}
.train-card .thumb{height:90px;background:linear-gradient(135deg,var(--blue),var(--violet));position:relative;display:grid;place-items:center}
.train-card .thumb .play{width:38px;height:38px;border-radius:50%;background:var(--paper);display:grid;place-items:center;box-shadow:var(--shadow-soft)}
.train-card .thumb .play::after{content:"";border-left:12px solid var(--ink);border-top:7px solid transparent;border-bottom:7px solid transparent;margin-left:3px}
.train-card .meta{padding:.85rem 1rem}
.train-card .meta b{font-weight:700;font-size:.98rem}
.train-card .meta .prog{height:6px;border-radius:3px;background:var(--cream-deep);margin-top:.6rem;overflow:hidden}
.train-card .meta .prog i{display:block;height:100%;width:62%;background:var(--blue);border-radius:3px}
.vet-card{margin-top:1.4rem;background:var(--paper);border-radius:1.1rem;padding:1.1rem;box-shadow:var(--shadow-soft)}
.vet-row{display:flex;align-items:center;gap:.7rem;padding:.55rem 0;font-size:.92rem;font-weight:600}
.vet-row+.vet-row{border-top:1px solid var(--line)}
.vet-row .ic{width:30px;height:30px;border-radius:9px;background:var(--blue-soft);display:grid;place-items:center;flex:none}
.vet-row .when{margin-left:auto;font-size:.78rem;font-weight:700;color:var(--ink-faint)}
.vet-row .when.due{color:#d6492f}

/* ============================================================ CARE BAND */
.care{background:var(--mist)}
.care-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.care-photo{position:relative;border-radius:2rem;overflow:hidden;box-shadow:var(--shadow-lift);aspect-ratio:4/5}
.care-photo img{width:100%;height:100%;object-fit:cover}
.care-photo .remind{position:absolute;right:1.2rem;top:1.2rem;background:var(--paper);border-radius:1rem;padding:.85rem 1rem;box-shadow:var(--shadow-lift);display:flex;gap:.7rem;align-items:center;max-width:80%}
.care-photo .remind .ic{width:38px;height:38px;border-radius:11px;background:var(--lime);display:grid;place-items:center;flex:none}
.care-photo .remind b{font-size:.92rem;display:block}
.care-photo .remind small{font-size:.78rem;color:var(--ink-soft)}
.care ul{list-style:none;margin-top:1.5rem;display:flex;flex-direction:column;gap:.9rem}
.care li{display:flex;gap:.8rem;align-items:flex-start;font-size:1.02rem;font-weight:500}
.care li .ck{width:1.5rem;height:1.5rem;border-radius:50%;background:var(--blue);color:var(--paper);display:grid;place-items:center;flex:none;font-size:.8rem;margin-top:.15rem}
.care-grid>div:last-child h2{font-size:clamp(1.9rem,4vw,3rem);font-weight:800;letter-spacing:-.03em}
.care-grid>div:last-child>p{font-size:1.1rem;color:var(--ink-soft);margin-top:1rem;font-weight:500}

/* ============================================================ REVIEWS */
.reviews{background:var(--blue);color:var(--paper);overflow:hidden}
.reviews .sec-head h2{color:var(--paper)}
.reviews .eyebrow{color:#cdd8ff}.reviews .eyebrow .eb-paw{fill:var(--lime)}
.rev-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;flex-wrap:wrap}
.rev-score{text-align:right}
.rev-score .big{font-family:var(--display);font-weight:800;font-size:3.4rem;line-height:1;color:var(--lime)}
.rev-score small{color:#d3dcff;font-weight:600}
.rev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:3rem}
.rev-card{background:rgba(255,255,255,.10);border-radius:1.4rem;padding:1.6rem;border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(2px)}
.rev-card .rstars{color:var(--lime);letter-spacing:2px;font-size:1rem;margin-bottom:.8rem}
.rev-card p{font-size:1.05rem;line-height:1.45;color:#f1f3ff}
.rev-card .who{display:flex;align-items:center;gap:.7rem;margin-top:1.2rem}
.rev-card .who .av{width:38px;height:38px;border-radius:50%;background:var(--lime);display:grid;place-items:center;font-family:var(--display);font-weight:800;color:var(--ink);flex:none}
.rev-card .who b{font-size:.92rem;display:block}
.rev-card .who small{font-size:.78rem;color:#dbe2ff}

/* ============================================================ FAQ */
.faq{background:var(--cream)}
.faq-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.faq-list{display:flex;flex-direction:column;gap:.8rem}
.faq details{background:var(--paper);border-radius:1.2rem;border:1px solid var(--line);overflow:hidden;transition:box-shadow .3s}
.faq details[open]{box-shadow:var(--shadow-soft)}
.faq summary{list-style:none;cursor:pointer;padding:1.3rem 1.5rem;display:flex;align-items:center;gap:1rem;font-family:var(--display);font-weight:700;font-size:1.1rem;letter-spacing:-.01em}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{background:#f2ede3}
.faq details[open] summary:hover{background:transparent}
.faq summary .pm{margin-left:auto;width:1.6rem;height:1.6rem;flex:none;position:relative;transition:transform .4s var(--ease)}
.faq summary .pm::before,.faq summary .pm::after{content:"";position:absolute;background:var(--blue);border-radius:2px;top:50%;left:50%;transform:translate(-50%,-50%)}
.faq summary .pm::before{width:1rem;height:2.5px}
.faq summary .pm::after{width:2.5px;height:1rem;transition:transform .4s var(--ease)}
.faq details[open] summary .pm::after{transform:translate(-50%,-50%) scaleY(0)}
.faq .ans{padding:0 1.5rem 1.4rem;color:var(--ink-soft);font-size:1rem;line-height:1.55}

/* ============================================================ FINAL CTA */
.final{background:var(--lime);text-align:center;overflow:hidden}
.final .wrap{position:relative;z-index:2;max-width:62rem}
.final .kicker{background:rgba(12,13,15,.08);color:#4a5318}
.final .kicker .kicker-paw{fill:#4a5318}
.final h2{font-size:clamp(2.4rem,6vw,4.6rem);font-weight:800;letter-spacing:-.035em;line-height:1;margin-top:1.2rem}
.final p{font-size:clamp(1.1rem,1.8vw,1.32rem);color:#3c4022;max-width:34rem;margin:1.3rem auto 0;font-weight:500}
.final .actions{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-top:2.4rem}
.final .actions-subtitle{margin:0;font-family:var(--display);font-weight:800;font-size:1.2rem;letter-spacing:-.015em;color:var(--ink);max-width:none}
.final .store-row{justify-content:center}
.final .disclaimer{margin-top:2.4rem;font-size:.86rem;color:#4a5026;max-width:42rem;margin-inline:auto;font-weight:500}

/* ============================================================ FOOTER */
.foot{background:var(--cream);color:var(--ink-faint);padding:4rem 0 2.3rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.2rem;align-items:start}
.foot .brand{color:var(--ink)}
.foot p{max-width:30rem;font-size:1rem;line-height:1.55;color:var(--ink-soft)}
.foot-lead{margin-top:1rem}
.foot-col h4{font-family:var(--display);font-size:.95rem;font-weight:800;color:var(--ink);margin-bottom:.6rem;letter-spacing:-.01em}
.foot-col a{display:flex;align-items:center;min-height:44px;line-height:1.3;font-size:.95rem;color:var(--ink-soft);font-weight:600}
.foot-col a:hover{color:var(--blue)}
.foot-col .foot-label{display:block;color:var(--ink-faint);font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;margin-top:.6rem}
.foot-store{display:flex;flex-direction:column;gap:.6rem;margin-top:.5rem}
.foot-bottom{grid-column:1/-1;margin-top:2.6rem;padding-top:1.5rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;font-size:.82rem;color:var(--ink-faint)}
.foot-bottom .foot-social{display:flex;gap:.5rem}
.foot-bottom .foot-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--ink);border:1px solid var(--line)}
.foot-bottom .foot-social a:hover{color:var(--blue);border-color:var(--line-strong)}

/* ============================================================ SCROLL REVEAL */
.rise{opacity:0;transform:translateY(28px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.rise.in{opacity:1;transform:none}
.rise.d1{transition-delay:.08s}.rise.d2{transition-delay:.16s}.rise.d3{transition-delay:.24s}.rise.d4{transition-delay:.32s}

/* ============================================================ RESPONSIVE */
@media(max-width:1000px){
  .hero .wrap{grid-template-columns:1fr;min-height:auto;gap:0}
  .hero .wrap{align-items:start}
  .hero-stage{min-height:340px;margin-top:.5rem}
  .hero-dog{height:auto;width:min(96%,520px);margin-left:auto}
  .demo-grid{grid-template-columns:1fr;gap:2.5rem}
  .demo-steps{order:2}
  .demo-stage{order:1;min-height:auto;flex-direction:column;gap:1.6rem}
  .caught-grid{grid-template-columns:1fr}
  .caught-photo{min-height:360px}
  .care-grid{grid-template-columns:1fr}
  .care-photo{max-width:440px}
  .faq-grid{grid-template-columns:1fr}
  .feat-grid{grid-template-columns:repeat(4,1fr)}
  .tile.big,.tile.med{grid-column:span 4}
  .tile.sm{grid-column:span 2}
  .rev-grid{grid-template-columns:1fr;max-width:520px}
  .demo-video{position:relative;right:auto;bottom:auto;transform:none;width:min(86%,360px)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .proof{grid-template-columns:repeat(2,1fr);padding:.4rem 1rem;margin-top:2rem}
  .proof>div{padding:1.1rem 1.1rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .proof>div:nth-child(2n){border-right:0}
  .proof>div:nth-child(n+3){border-bottom:0}
}
@media(max-width:700px){
  .wrap{width:min(var(--maxw),100% - 2rem)}
  .hero h1{font-size:clamp(2rem,9.5vw,3.2rem)}
  .hero h1 .h1-brand{font-size:clamp(1rem,5vw,1.5rem);margin-bottom:.15em}
  .proof{grid-template-columns:1fr;padding:.4rem 1.2rem}
  .proof>div{padding:1.1rem .2rem;border-right:0}
  .proof>div:nth-child(n+3){border-bottom:1px solid var(--line)}
  .proof>div:last-child{border-bottom:0}
  /* Mobile hero: video on top with the Listening pill overlaid, dialog full-bleed below. */
  .hero-stage{flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:auto;gap:1rem}
  .hero-media{display:block;position:relative;width:100%}
  .hero-dog{width:100%;max-width:none;margin-inline:auto}
  .hero-signal{bottom:24%}
  .hero-wave{position:absolute;left:50%;right:auto;top:auto;bottom:12px;transform:translateX(-50%);padding:.42rem .75rem;gap:.5rem;border-radius:999px}
  .hero-wave .mini-wave{height:16px}
  .hero-wave .label{font-size:.72rem}
  .hero-bubble{position:static;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;border-left:none;border-right:none;padding:1.05rem 1.25rem;box-shadow:none;border-top:1px solid var(--line)}
  .hero-bubble .hb-text{font-size:.96rem;min-height:4.6em;line-height:1.3}
  .feat-grid{grid-template-columns:1fr}
  .tile.big,.tile.med,.tile.sm{grid-column:span 1}
  .rev-head{flex-direction:column;align-items:flex-start}
  .rev-score{text-align:left}
  .foot-grid{grid-template-columns:1fr}
  .foot-bottom{flex-direction:column;align-items:flex-start}
  /* Demo: video fills stage as full-bleed background, phone floats above */
  .demo .sec-head{position:relative;z-index:4;padding-bottom:2.5rem;margin-bottom:-2.5rem}
  .demo-grid{position:relative;z-index:1}
  .demo-stage{
    width:calc(100% + 2rem);margin-inline:-1rem;
    border-radius:1.4rem 1.4rem 0 0;overflow:hidden;
    aspect-ratio:3/4;min-height:0;padding:2.5rem 1rem 1.5rem;
    flex-direction:column;justify-content:flex-end;align-items:center;gap:.75rem;
  }
  .demo-video{
    position:absolute;inset:0;width:100%;height:100%;
    border-radius:0;border:none;box-shadow:none;transform:none;z-index:0;
  }
  .demo-video::after{
    content:'';position:absolute;inset:0;pointer-events:none;z-index:1;
    background:linear-gradient(to bottom,rgba(12,13,15,1) 0%,rgba(12,13,15,.3) 22%,rgba(12,13,15,.1) 45%,rgba(12,13,15,.7) 100%);
  }
  .demo-video video{width:100%;height:100%;object-fit:cover;object-position:center;aspect-ratio:auto}
  /* Hide the "real moment" chip on mobile */
  .demo-video .vcap{display:none}
  .demo-stage .phone{position:relative;z-index:3}
  .demo-stage .glow{display:none}
}
@media(max-width:560px){
  .hero-actions{align-items:stretch}
  .hero-actions .app-cta{justify-content:center}
  .hero-actions .text-link{justify-content:center}
  .phone{width:min(84vw,300px);height:auto;aspect-ratio:300/620}
}

/* RTL (Arabic) */
[dir="rtl"] .caught-item:hover{transform:translateX(-6px)}
[dir="rtl"] .text-link:hover span{transform:translateX(-5px)}
[dir="rtl"] .hero-bubble{right:auto;left:-2%;border-radius:1.4rem 1.4rem 1.4rem .4rem}

/* NOTE: iOS Low Power Mode forces prefers-reduced-motion:reduce, which used to kill
   every animation/transition on iPhone (the "animations don't play on prod" bug).
   The waveform/demo/reveal motion is core to this marketing page, so by product
   decision decorative motion always plays. Only smooth-scroll is disabled here. */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}


/* ============================================================
   INNER PAGES — Bark Signal
   Covers: page.php (generic/contact/support/legal),
           page-about.php, home.php (blog index), single.php
   All tokens are defined above; no new tokens introduced here.
   ============================================================ */


/* ---- Shared layout helpers ---- */

/* .container — same centring logic as .wrap; inner pages use .container */
.container{
  width:min(var(--maxw),100% - 2.5rem);
  margin-inline:auto;
}

/* Narrower prose column for legal/support/contact reading comfort */
.prose-shell,
.shell.prose-shell{
  width:min(760px,100% - 2.5rem);
  margin-inline:auto;
}

/* Inner-page vertical pad — slightly smaller than home .pad */
.section{
  padding-block:clamp(2.5rem,6vw,5rem);
}

/* Section headings used by blog index & about */
.section-title{
  font-family:var(--display);
  font-size:clamp(1.75rem,3.8vw,2.8rem);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.05;
  color:var(--ink);
  margin-block:.6rem 1rem;
}
.section-subtitle{
  font-size:clamp(1rem,1.5vw,1.15rem);
  color:var(--ink-soft);
  font-weight:500;
  max-width:44rem;
  margin-bottom:2.8rem;
}


/* ============================================================
   PAGE.PHP — generic / system pages
   ============================================================ */

/* Outer wrapper: top padding so h1 clears sticky header */
.section:has(.prose-shell),
.section > .shell.prose-shell{
  padding-top:clamp(3.5rem,7vw,6rem);
}

/* Fallback when :has() is unsupported */
.prose-shell{
  padding-top:clamp(3.5rem,7vw,6rem);
}

/* Entry card resets (article element) */
article.entry-card{
  padding-top:0;
}

/* H1 — sized like a home section h2 */
.entry-title{
  font-family:var(--display);
  font-size:clamp(2rem,4.3vw,3rem);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1.0;
  color:var(--ink);
  margin-bottom:1.6rem;
}

/* Generic entry-content prose */
.entry-content{
  color:var(--ink-soft);
  font-size:1.02rem;
  line-height:1.65;
}
.entry-content p{
  margin-bottom:1.1em;
}
.entry-content a{
  color:var(--blue);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}
.entry-content a:hover{
  color:var(--blue-deep);
}
.entry-content h2{
  font-family:var(--display);
  font-size:clamp(1.3rem,2.2vw,1.65rem);
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.15;
  color:var(--ink);
  margin-block:2rem .6rem;
}
.entry-content h3{
  font-family:var(--display);
  font-size:1.15rem;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
  margin-block:1.5rem .4rem;
}
.entry-content ul,
.entry-content ol{
  padding-inline-start:1.5rem;
  margin-bottom:1.1em;
}
.entry-content li{
  margin-bottom:.4em;
}
.entry-content strong{
  color:var(--ink);
  font-weight:700;
}

/* Lead paragraph (intro text — larger) */
.entry-lead{
  font-size:clamp(1.08rem,1.6vw,1.22rem);
  color:var(--ink-soft);
  line-height:1.6;
  font-weight:500;
  margin-bottom:2rem;
}

/* ---- Legal blocks (.entry-content--legal) ---- */
.entry-content--legal .legal-block{
  border-top:1px solid var(--line);
  padding-block:1.8rem;
}
.entry-content--legal .legal-block:first-of-type{
  border-top:none;
  padding-top:0;
}
.entry-content--legal .legal-block h2{
  margin-top:0;
  margin-bottom:.7rem;
}
.entry-content--legal .legal-block p,
.entry-content--legal .legal-block li{
  font-size:1rem;
  color:var(--ink-soft);
}

/* ---- Contact page (.entry-content--contact) ---- */
.entry-content--contact{
  max-width:660px;
}
.contact-map{
  margin-top:1.6rem;
  border-radius:1.2rem;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  line-height:0; /* collapse inline-block gap under iframe */
}
.contact-map iframe{
  display:block;
  width:100%;
  height:clamp(280px,40vw,420px);
  border:0;
}

/* ---- Support page (.entry-content--support) ---- */
.support-cancel-notice{
  background:var(--blue-soft);
  border:1px solid rgba(39,70,238,.18);
  border-radius:1.1rem;
  padding:1.2rem 1.4rem;
  margin-bottom:2rem;
  font-size:.97rem;
  color:var(--ink);
  line-height:1.5;
}
.support-cancel-notice a{
  color:var(--blue);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}
.support-links{
  list-style:none;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.5rem;
  margin-top:.6rem;
}
.support-links li{
  margin:0;
}
.support-links a{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-weight:700;
  color:var(--blue);
  font-size:1rem;
  text-decoration:underline;
  text-underline-offset:3px;
}
.support-links a:hover{
  color:var(--blue-deep);
}


/* ============================================================
   PAGE-ABOUT.PHP — About page
   ============================================================ */

/* ---- Hero ---- */
.about-hero{
  position:relative;
  overflow:hidden;
  background:#fff;
  padding-block:clamp(4rem,9vw,7rem);
}
.about-hero .container{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4rem);
  align-items:center;
}
.about-hero__inner{
  max-width:36rem;
}

/* Decorative blobs */
.about-hero__blob{
  display:none;
}
.about-hero__blob--1{
  width:clamp(260px,35vw,480px);
  aspect-ratio:1;
  background:var(--mist);
  top:-10%;
  right:-8%;
}
.about-hero__blob--2{
  width:clamp(200px,28vw,380px);
  aspect-ratio:1;
  background:var(--blue-soft);
  bottom:-15%;
  left:-6%;
}
.about-hero__inner{
  position:relative;
  z-index:2;
}
.about-hero__visual{
  position:relative;
  z-index:2;
}
.about-hero__photo{
  position:relative;
  margin:0 auto;
  width:100%;
  max-width:460px;
  aspect-ratio:1;
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
}
.about-hero__photo img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  transform:scaleX(-1);
}

/* Desktop: the dog photo bleeds to the right edge and fills the right half
   as a square, vertically centered. Image background is already pure white so
   it blends seamlessly into the white hero — no gradient needed. */
@media(min-width:1001px){
    /* Container: grid stays, but NOT a containing block so photo anchors to .about-hero */
  .about-hero .container{
    position:static;
  }
  .about-hero__inner{
    position:relative;
    z-index:10;
    isolation:isolate;
  }
  /* Empty grid cell — pushes text to the left. Must be static so photo anchors to .about-hero.
     Cancel rise animation: the photo is absolutely positioned to .about-hero, so parent
     translateY would visually shift it on load and cause a jump when the transition fires. */
  .about-hero__visual{
    position:static !important;
    pointer-events:none;
    opacity:1;
    transform:none;
    transition:none;
  }
  /* Gradient overlay: white → transparent from left edge to image midpoint */
  .about-hero::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to right, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 75%);
    z-index:5;
    pointer-events:none;
  }
  /* Photo: full viewport height, anchored to section right edge.
     max-width:50vw prevents the portrait image from extending too far left on tall viewports.
     overflow:hidden clips any sub-pixel overflow from the scaleX(-1) transform. */
  .about-hero__photo{
    position:absolute;
    top:0;
    right:0;
    height:100vh;
    width:auto;
    max-width:50vw;
    aspect-ratio:auto;
    margin:0;
    overflow:hidden;
    z-index:0;
  }
  .about-hero__photo img{
    display:block;
    height:100%;
    width:auto;
    max-width:none;
    transform:scaleX(-1);
  }
}
/* Floating translation chip — echoes the product's live-translate motif */
.about-chip{
  position:absolute;
  left:1rem;
  right:1rem;
  bottom:1rem;
  display:flex;
  align-items:center;
  gap:.75rem;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:1.1rem;
  padding:.75rem .95rem;
  box-shadow:var(--shadow-soft);
}
.about-chip__bars{
  display:inline-flex;
  align-items:flex-end;
  gap:3px;
  flex:none;
  height:22px;
}
.about-chip__bars i{
  width:4px;
  border-radius:2px;
  transform-origin:bottom;
  animation:about-bar 1.1s var(--ease) infinite alternate;
}
.about-chip__bars i:nth-child(1){height:55%;background:var(--blue);animation-delay:0s}
.about-chip__bars i:nth-child(2){height:100%;background:var(--violet);animation-delay:.16s}
.about-chip__bars i:nth-child(3){height:72%;background:var(--blue);animation-delay:.32s}
@keyframes about-bar{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
.about-chip__text{
  font-family:var(--serif);
  font-style:italic;
  font-size:.95rem;
  line-height:1.25;
  color:var(--ink);
}

/* Proof stats under the hero CTA */
.about-stats{
  list-style:none;
  display:flex;
  gap:clamp(1.2rem,3vw,2.6rem);
  margin:2rem 0 0;
  padding:1.5rem 0 0;
  border-top:1px solid var(--line);
}
.about-stat{display:flex;flex-direction:column;gap:.15rem}
.about-stat__num{
  font-family:var(--display);
  font-size:clamp(1.5rem,3vw,2rem);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1;
  color:var(--blue);
}
.about-stat__label{
  font-size:.84rem;
  font-weight:600;
  line-height:1.2;
  color:var(--ink-faint);
}

/* Pill badge above h1 */
.about-hero__pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:var(--mono);
  font-size:.74rem;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--blue);
  background:var(--blue-soft);
  border:1px solid rgba(39,70,238,.18);
  padding:.45em 1em;
  border-radius:999px;
  margin-bottom:1.3rem;
}

.about-hero__h1{
  font-family:var(--display);
  font-size:clamp(2.4rem,5vw,3.8rem);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1.0;
  color:var(--ink);
  margin-bottom:1.3rem;
}
.about-hero__accent{
  color:var(--blue);
}
.about-hero__lead{
  font-size:clamp(1.05rem,1.5vw,1.2rem);
  color:var(--ink-soft);
  font-weight:500;
  line-height:1.6;
  margin-bottom:1.8rem;
  max-width:32rem;
}
.about-hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
  align-items:center;
}

/* ---- Mission section: centered statement + 3 pillars ---- */
.about-mission-head{
  max-width:44rem;
  margin-inline:auto;
  text-align:center;
}
.about-mission-head .eyebrow{
  justify-content:center;
}
.about-mission__title{
  font-family:var(--display);
  font-size:clamp(2rem,4.6vw,3.3rem);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.02;
  color:var(--ink);
  margin-block:.6rem .9rem;
}
.about-mission__title em{
  font-family:var(--serif);
  font-style:italic;
  font-weight:500;
  letter-spacing:-.01em;
  color:var(--blue);
}
.about-mission__text{
  font-size:clamp(1.05rem,1.5vw,1.2rem);
  color:var(--ink-soft);
  font-weight:500;
  line-height:1.65;
}
.about-pillars{
  list-style:none;
  margin:clamp(2.4rem,5vw,3.6rem) 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
  gap:clamp(1.6rem,3.5vw,2.8rem);
  text-align:center;
}
.about-pillar{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.55rem;
}
.about-pillar__icon{
  width:96px;
  height:96px;
  margin-bottom:.6rem;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.about-pillar__icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.about-pillar__title{
  font-family:var(--display);
  font-size:1.2rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
}
.about-pillar__text{
  font-size:1rem;
  color:var(--ink-soft);
  font-weight:500;
  line-height:1.55;
}

/* ---- Timeline ---- */
.about-timeline-section{
  background:var(--paper);
}
.about-timeline-section .section-title,
.about-timeline-section .section-subtitle{
  text-align:center;
  margin-inline:auto;
}
.about-timeline{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:0;
  max-width:680px;
  margin-inline:auto;
  margin-bottom:2.4rem;
}
/* vertical line */
.about-timeline::before{
  content:"";
  position:absolute;
  inset-inline-start:5.5rem;
  top:0;
  bottom:0;
  width:2px;
  background:var(--line-strong);
  border-radius:2px;
}
.about-timeline__item{
  display:grid;
  grid-template-columns:5.5rem 1fr;
  gap:0 1.6rem;
  padding-block:1.8rem;
  border-bottom:1px solid var(--line);
  position:relative;
}
.about-timeline__item:last-child{
  border-bottom:none;
}
/* dot on the line */
.about-timeline__item::after{
  content:"";
  position:absolute;
  inset-inline-start:calc(5.5rem - 5px);
  top:2.1rem;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--blue);
  border:2.5px solid var(--paper);
  box-shadow:0 0 0 2px var(--blue);
}
.about-timeline__year{
  font-family:var(--mono);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.05em;
  color:var(--blue);
  padding-top:.25rem;
  text-align:end;
  padding-inline-end:.6rem;
}
.about-timeline__milestone{
  font-family:var(--display);
  font-size:1.12rem;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
  margin-bottom:.35rem;
}
.about-timeline__text{
  font-size:.97rem;
  color:var(--ink-soft);
  line-height:1.55;
}
.about-timeline__cta{
  display:flex;
  justify-content:center;
  gap:.9rem;
  flex-wrap:wrap;
  margin-top:1rem;
}

/* ---- Culture section ---- */
.about-culture-section{
  position:relative;
  overflow:hidden;
}
.about-culture-visual{
  position:relative;
  min-height:clamp(320px,50vw,600px);
  display:flex;
  align-items:stretch;
}
.about-culture-visual__photo{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}
.about-culture-overlay{
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:flex-end;
  background:linear-gradient(0deg,rgba(12,13,15,.72) 0%,transparent 55%);
  padding:clamp(2rem,5vw,4rem);
}
.about-culture-overlay__inner{
  max-width:44rem;
}
.about-culture-overlay__eyebrow{
  color:var(--lime);
}
.about-culture-overlay__eyebrow .eb-paw{
  fill:var(--lime);
}
.about-culture-overlay__title{
  font-family:var(--display);
  font-size:clamp(1.8rem,4vw,3rem);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.05;
  color:var(--paper);
  margin-block:.5rem .9rem;
}
.about-culture-overlay__text{
  font-size:clamp(1rem,1.4vw,1.1rem);
  color:rgba(255,255,255,.85);
  font-weight:500;
  line-height:1.6;
}

/* ---- Team grid ---- */
.about-team-section .section-title,
.about-team-section .section-subtitle{
  text-align:center;
  margin-inline:auto;
}
.about-team-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.4rem;
  margin-block:2.4rem 1.6rem;
}
.about-team-card{
  background:none;
  border:none;
  border-radius:0;
  padding:0;
  text-align:center;
  box-shadow:none;
  transition:none;
}
.about-team-card:hover{
  transform:none;
  box-shadow:none;
}
.about-team-card__photo{
  width:clamp(120px,60%,160px);
  aspect-ratio:1;
  border-radius:50%;
  object-fit:cover;
  object-position:center top;
  display:block;
  margin-inline:auto;
  margin-bottom:.85rem;
  border:none;
  box-shadow:none;
}
.about-team-card__name{
  font-family:var(--display);
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
  margin-bottom:.2rem;
}
.about-team-card__role{
  font-size:.88rem;
  color:var(--ink-faint);
  font-weight:500;
}

/* Legal note below team grid */
.about-legal-note{
  font-size:.82rem;
  color:var(--ink-faint);
  font-style:italic;
  text-align:center;
  margin-top:.5rem;
}

/* ---- Final CTA band ---- */
.about-final-cta{
  background:var(--blue);
}
.about-final-cta .container{
  display:flex;
  justify-content:center;
}
.about-final-cta .cta{
  text-align:center;
  max-width:48rem;
}
.cta__title{
  font-family:var(--display);
  font-size:clamp(1.9rem,4vw,2.9rem);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.05;
  color:var(--paper);
  margin-bottom:.9rem;
}
.cta__text{
  font-size:clamp(1rem,1.4vw,1.12rem);
  color:rgba(255,255,255,.82);
  font-weight:500;
  line-height:1.6;
  margin-bottom:1.8rem;
}
/* ---- Store CTAs: hero / final CTA / About share this wrapper ---- */
.app-cta{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.app-cta--center{
  justify-content:center;
}

/* Shared badge behavior (hover lift). Two looks sit on top:
   --full (official badge artwork, card-mounted) and --icon (footer / sidebar). */
.footer__download{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}
.store-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-soft);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease);
}
.store-badge:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-lift);
}
.store-badge:active{
  transform:translateY(-1px);
}

/* --full: App-store-button.svg / google-play-button.svg ship with no fill of
   their own, so the card recipe used sitewide (paper + line + shadow-soft)
   supplies it. The generous transparent margin baked into the artwork is the
   badge's own padding — the wrapper is sized to the image, nothing added. */
.store-badge--full{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
}
.store-badge--full img{
  display:block;
  height:48px;
  width:auto;
}

/* --icon: dark icon-button, matching .btn-dark. */
.store-badge--icon{
  width:44px;
  height:44px;
  background:var(--ink);
  border-radius:999px;
}
.store-icon{
  display:block;
  width:26px;
  height:26px;
  background-color:var(--paper);
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
}
.store-icon--apple{
  mask-image:url('assets/app-store-icon.svg');
  -webkit-mask-image:url('assets/app-store-icon.svg');
}
.store-icon--play{
  mask-image:url('assets/google-play-icon.svg');
  -webkit-mask-image:url('assets/google-play-icon.svg');
}


/* ============================================================
   HOME.PHP — Blog index
   ============================================================ */

/* ---- Hero band ---- */
.page-hero{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding-block:clamp(3rem,7vw,5.5rem);
}
.page-hero--blog .container{
  display:flex;
  flex-direction:column;
  gap:clamp(1.8rem,4vw,3rem);
}
.page-hero__panel{
  max-width:52rem;
}
.page-title{
  font-family:var(--display);
  font-size:clamp(2.2rem,5vw,3.6rem);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1.0;
  color:var(--ink);
  margin-bottom:.9rem;
}
.page-lead{
  font-size:clamp(1.05rem,1.5vw,1.18rem);
  color:var(--ink-soft);
  font-weight:500;
  line-height:1.6;
  max-width:42rem;
}

/* ---- Featured story (2-col card) ---- */
.featured-story{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:1.6rem;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:box-shadow .4s var(--ease);
}
.featured-story:hover{
  box-shadow:var(--shadow-lift);
}
.featured-story__body{
  padding:clamp(1.6rem,3.5vw,2.6rem);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.9rem;
}
.featured-story__title{
  font-family:var(--display);
  font-size:clamp(1.4rem,2.5vw,2rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.1;
  color:var(--ink);
}
.featured-story__excerpt{
  font-size:1rem;
  color:var(--ink-soft);
  line-height:1.55;
}
.featured-story__media{
  position:relative;
  display:block;
  overflow:hidden;
  min-height:280px;
  background:var(--cream-deep);
}
.featured-story__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
  transition:transform .6s var(--ease);
}
.featured-story:hover .featured-story__media img{
  transform:scale(1.04);
}
.featured-story__overlay{
  position:absolute;
  inset-inline-start:1rem;
  inset-block-start:1rem;
  background:var(--ink);
  color:var(--paper);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:.35em .75em;
  border-radius:999px;
}

/* Featured story fallback (no thumbnail) */
.post-card__fallback{
  display:block;
  width:100%;
  height:100%;
  min-height:200px;
  background:linear-gradient(135deg,var(--blue-soft),var(--mist));
  border-radius:inherit;
}

/* Post-meta row */
.post-meta{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
  font-size:.83rem;
  color:var(--ink-faint);
  font-weight:500;
}
.post-card__tag{
  display:inline-flex;
  align-items:center;
  background:var(--blue-soft);
  color:var(--blue);
  font-family:var(--mono);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:.32em .75em;
  border-radius:999px;
}

/* CTA button in featured story */
.button.button--primary,
a.button.button--primary{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:var(--blue);
  color:var(--paper);
  font-family:var(--body);
  font-weight:700;
  font-size:.98rem;
  padding:.85em 1.6em;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(39,70,238,.28);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),background .3s var(--ease);
  width:fit-content;
}
.button.button--primary:hover,
a.button.button--primary:hover{
  transform:translateY(-3px);
  background:var(--blue-deep);
  box-shadow:0 18px 38px rgba(39,70,238,.35);
}

/* ---- Post grid (both blog index and related in single.php) ---- */
.post-grid-section{
  background:var(--cream);
}
.post-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
  gap:1.4rem;
  margin-top:2rem;
}
.post-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:1.4rem;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:var(--shadow-soft);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease);
}
.post-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lift);
}
.post-card__media{
  display:block;
  overflow:hidden;
  aspect-ratio:16/9;
  background:var(--cream-deep);
  flex:none;
}
.post-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .55s var(--ease);
}
.post-card:hover .post-card__media img{
  transform:scale(1.05);
}
.post-card__body{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  padding:1.2rem 1.3rem 1.4rem;
  flex:1;
}
.post-card__title{
  font-family:var(--display);
  font-size:1.12rem;
  font-weight:700;
  letter-spacing:-.015em;
  line-height:1.25;
  color:var(--ink);
}
.post-card__title a{
  color:inherit;
  text-decoration:none;
}
.post-card__title a:hover{
  color:var(--blue);
}
.post-card__excerpt{
  font-size:.94rem;
  color:var(--ink-soft);
  line-height:1.5;
  flex:1;
}
.post-card__cta{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-weight:700;
  font-size:.9rem;
  color:var(--blue);
  margin-top:.4rem;
  text-decoration:underline;
  text-underline-offset:3px;
}
.post-card__cta:hover{
  color:var(--blue-deep);
}

/* ---- Pagination ---- */
.pagination-nav{
  display:flex;
  justify-content:center;
  margin-top:2.4rem;
}
.pagination-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  list-style:none;
  align-items:center;
}
.pagination-nav ul li a,
.pagination-nav ul li span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:2.4rem;
  min-height:2.4rem;
  padding:.4em .9em;
  border-radius:999px;
  font-weight:700;
  font-size:.92rem;
  color:var(--ink-soft);
  border:1.5px solid var(--line);
  background:var(--paper);
  transition:background .2s,color .2s,border-color .2s;
}
.pagination-nav ul li a:hover{
  background:var(--blue-soft);
  color:var(--blue);
  border-color:var(--blue);
}
.pagination-nav ul li .current{
  background:var(--blue);
  color:var(--paper);
  border-color:var(--blue);
}

/* ---- Empty state ---- */
.empty-state{
  text-align:center;
  padding-block:3rem;
  color:var(--ink-soft);
  font-size:1.05rem;
}


/* ============================================================
   SINGLE.PHP — Blog article
   ============================================================ */

/* Breadcrumbs */
.breadcrumbs{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
  font-size:.84rem;
  font-weight:600;
  color:var(--ink-faint);
  margin-bottom:2rem;
}
.breadcrumbs a{
  color:var(--ink-faint);
  text-decoration:none;
  transition:color .2s;
}
.breadcrumbs a:hover{
  color:var(--blue);
}
.breadcrumbs span{
  color:var(--line-strong);
}

/* Article hero */
.article-hero{
  max-width:780px;
  margin-bottom:2.4rem;
}
.article-hero__title{
  font-family:var(--display);
  font-size:clamp(1.9rem,4vw,3rem);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1.05;
  color:var(--ink);
  margin-block:.6rem 1rem;
}
.article-excerpt{
  font-size:clamp(1.05rem,1.5vw,1.2rem);
  color:var(--ink-soft);
  font-weight:500;
  line-height:1.6;
  margin-bottom:1.2rem;
}
.article-hero__meta{
  display:flex;
  align-items:center;
  gap:.9rem;
  flex-wrap:wrap;
  font-size:.84rem;
  color:var(--ink-faint);
  font-weight:600;
  margin-bottom:1.6rem;
}
.article-hero__meta span + span::before{
  content:"·";
  margin-inline-end:.9rem;
}
.article-hero__image{
  border-radius:1.4rem;
  overflow:hidden;
  box-shadow:var(--shadow-lift);
  margin-top:1.4rem;
}
.article-hero__image img{
  width:100%;
  height:auto;
  display:block;
  max-height:480px;
  object-fit:cover;
}

/* Two-column article shell */
.article-shell{
  display:grid;
  grid-template-columns:1fr 280px;
  gap:clamp(2rem,4vw,3.5rem);
  align-items:start;
  margin-top:2rem;
}
.article-main{
  min-width:0; /* prevent blowout in grid */
}

/* Article body prose */
.article-content{
  font-size:1.04rem;
  line-height:1.7;
  color:var(--ink-soft);
  max-width:70ch;
}
.article-content h2{
  font-family:var(--display);
  font-size:clamp(1.35rem,2.2vw,1.7rem);
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.15;
  color:var(--ink);
  margin-block:2.2rem .7rem;
  scroll-margin-top:100px;
}
.article-content h3{
  font-family:var(--display);
  font-size:1.18rem;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
  margin-block:1.6rem .5rem;
  scroll-margin-top:100px;
}
.article-content p{
  margin-bottom:1.15em;
}
.article-content a{
  color:var(--blue);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}
.article-content a:hover{
  color:var(--blue-deep);
}
.article-content ul,
.article-content ol{
  padding-inline-start:1.5rem;
  margin-bottom:1.2em;
}
.article-content li{
  margin-bottom:.45em;
}
.article-content blockquote{
  border-inline-start:3px solid var(--blue);
  padding-inline-start:1.2rem;
  margin-inline:0;
  margin-block:.8em;
  color:var(--ink-soft);
  font-style:italic;
}
.article-content img{
  border-radius:1rem;
  box-shadow:var(--shadow-soft);
  margin-block:1.2rem;
}
.article-content strong{
  color:var(--ink);
  font-weight:700;
}
.article-content code{
  font-family:var(--mono);
  font-size:.9em;
  background:var(--cream-deep);
  padding:.15em .4em;
  border-radius:.35em;
}

/* Related posts section below article */
.related-posts{
  margin-top:3.5rem;
  padding-top:2.5rem;
  border-top:1px solid var(--line);
}
.related-posts .eyebrow{
  margin-bottom:.8rem;
}

/* ---- Sidebar ---- */
.article-sidebar{
  position:sticky;
  top:calc(84px + 1.5rem); /* clear the sticky header */
  display:flex;
  flex-direction:column;
  gap:1.4rem;
}

/* Table of contents */
.toc{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:1.2rem;
  padding:1.3rem 1.4rem;
  box-shadow:var(--shadow-soft);
}
.toc h2{
  font-family:var(--display);
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink-faint);
  margin-bottom:.9rem;
}
.toc nav{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.toc nav a{
  display:block;
  font-size:.9rem;
  font-weight:600;
  color:var(--ink-soft);
  padding:.4rem .6rem;
  border-radius:.6rem;
  text-decoration:none;
  line-height:1.35;
  transition:background .2s,color .2s;
}
.toc nav a:hover{
  background:var(--blue-soft);
  color:var(--blue);
}

/* CTA panel (sidebar) */
.cta-panel{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:1.3rem;
  padding:1.4rem;
  box-shadow:var(--shadow-soft);
}
.cta-panel h2{
  font-family:var(--display);
  font-size:1.1rem;
  font-weight:700;
  letter-spacing:-.015em;
  line-height:1.2;
  color:var(--ink);
  margin-bottom:.6rem;
}
.cta-panel p{
  font-size:.9rem;
  color:var(--ink-soft);
  line-height:1.55;
  margin-bottom:1.1rem;
}
.cta-panel__downloads{
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.cta-panel__downloads .appstore{
  justify-content:flex-start;
  width:100%;
}


/* ============================================================
   INNER-PAGE RESPONSIVE
   ============================================================ */

@media(max-width:1000px){
  /* About: hero stacks */
  .about-hero .container{
    grid-template-columns:1fr;
    text-align:center;
  }
  .about-hero__inner{
    max-width:100%;
  }
  .about-hero__cta{
    justify-content:center;
  }
  .about-hero__visual{
    order:1;
    width:100vw;
    margin-inline:calc(-50vw + 50%);
  }
  .about-hero__photo{
    width:100%;
    max-width:none;
    margin-inline:0;
    aspect-ratio:auto;
  }
  .about-hero{
    padding-bottom:0;
  }
  .about-stats{
    justify-content:center;
  }
  /* About: team → 2-col */
  .about-team-grid{
    grid-template-columns:repeat(2,1fr);
  }
  /* Article: sidebar drops below */
  .article-shell{
    grid-template-columns:1fr;
  }
  .article-sidebar{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .toc,.cta-panel{
    flex:1;
    min-width:260px;
  }
}

@media(max-width:780px){
  /* Featured story stacks */
  .featured-story{
    grid-template-columns:1fr;
  }
  .featured-story__media{
    order:-1;
    min-height:220px;
    aspect-ratio:16/9;
    position:relative;
  }
  .featured-story__media img{
    position:absolute;
  }
  /* timeline remove sidebar line */
  .about-timeline::before{
    display:none;
  }
  .about-timeline__item{
    grid-template-columns:1fr;
    gap:.3rem;
    padding-block:1.4rem;
  }
  .about-timeline__item::after{
    display:none;
  }
  .about-timeline__year{
    text-align:start;
    padding-inline-end:0;
  }
  /* Team → 2-col */
  .about-team-grid{
    grid-template-columns:repeat(2,1fr);
  }
  /* Blog: post-grid → 1-col */
  .post-grid{
    grid-template-columns:1fr;
  }
  /* Container width tightens */
  .container{
    width:min(var(--maxw),100% - 2rem);
  }
  .prose-shell,.shell.prose-shell{
    width:min(760px,100% - 2rem);
  }
}

@media(max-width:560px){
  /* About: team → 1-col */
  .about-team-grid{
    grid-template-columns:1fr;
  }
  /* Article sidebar: stack vertically */
  .article-sidebar{
    flex-direction:column;
  }
  .toc,.cta-panel{
    width:100%;
  }
  /* CTA panel downloads full-width */
  .cta-panel__downloads .appstore{
    justify-content:center;
  }
}


/* ============================================================
   INNER-PAGE RTL
   ============================================================ */

[dir="rtl"] .about-timeline::before{
  inset-inline-start:auto;
  inset-inline-end:5.5rem;
}
[dir="rtl"] .about-timeline__item::after{
  inset-inline-start:auto;
  inset-inline-end:calc(5.5rem - 5px);
}
[dir="rtl"] .about-timeline__year{
  text-align:start;
  padding-inline-end:0;
  padding-inline-start:.6rem;
}
[dir="rtl"] .article-content blockquote{
  border-inline-start:none;
  border-inline-end:3px solid var(--blue);
  padding-inline-start:0;
  padding-inline-end:1.2rem;
}
[dir="rtl"] .breadcrumbs a:hover{
  color:var(--blue);
}

/* ============================================================ 404 */
.error-404{background:var(--cream)}
.error-404__inner{max-width:40rem;margin-inline:auto;text-align:center;padding-block:clamp(3rem,9vw,7rem)}
.error-404__title{font-size:clamp(2.2rem,6vw,4rem);font-weight:800;letter-spacing:-.035em;line-height:1;margin-top:.6rem}
.error-404__text{font-size:1.1rem;color:var(--ink-soft);margin:1.2rem auto 0;max-width:34rem;font-weight:500}
.error-404__actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:2.2rem}

