/* Peekabrowser product page. Tokens mirror research/19-ui-overhaul-spec.md §2. */
:root{
  --bg-window:#F6F4F0;--bg-surface:#FFFFFF;--bg-sunken:#ECE9E3;
  --ink-1:#1A1C20;--ink-2:#5A5E66;--ink-3:#62666E;
  --line-hair:#DAD6CF;--line-strong:#85888F;
  --tide:#0A6F6B;--tide-pressed:#075955;--on-tide:#FFFFFF;--tide-soft:#D5ECE9;
  --ember:#B0421C;--ember-fill:#E8734A;--ember-soft:#FBE6DC;
  --glass-fill:rgba(251,250,248,.72);--glass-edge:rgba(255,255,255,.9);
  --shadow:0 8px 24px rgba(26,28,32,.12),0 1px 2px rgba(26,28,32,.08);
  --fill-hover:rgba(26,28,32,.06);--fill-selected:rgba(255,255,255,.92);
  --web-bar:#E7E5E1;--icon-a:#12918A;--icon-b:#075652;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  --bg-window:#0F1113;--bg-surface:#1A1D20;--bg-sunken:#24282C;
  --ink-1:#F1EFEA;--ink-2:#B3B6BC;--ink-3:#92969D;
  --line-hair:#2C3035;--line-strong:#7C8189;
  --tide:#5AD6CA;--tide-pressed:#3FBDB1;--on-tide:#06201E;--tide-soft:#143531;
  --ember:#FF9D7A;--ember-fill:#F08A62;--ember-soft:#3A2219;
  --glass-fill:rgba(30,33,37,.72);--glass-edge:rgba(255,255,255,.14);
  --shadow:0 8px 24px rgba(0,0,0,.5),0 1px 2px rgba(0,0,0,.4);
  --fill-hover:rgba(241,239,234,.08);--fill-selected:rgba(241,239,234,.16);
  --web-bar:#2A2E33;--icon-a:#0D403D;--icon-b:#061E1D;
  color-scheme:dark;
}}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg-window);color:var(--ink-1);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC","Segoe UI",sans-serif;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
html[data-lang=zh] [lang=en],html[data-lang=en] [lang=zh-Hant]{display:none!important}
a{color:var(--tide);text-underline-offset:3px}
a:focus-visible,button:focus-visible{outline:2px solid var(--tide);outline-offset:3px;border-radius:8px}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
header.top{position:sticky;top:8px;z-index:10;margin:8px auto 0;max-width:1040px;padding:0 12px}
.topbar{height:52px;border-radius:26px;display:flex;align-items:center;gap:12px;padding:0 8px 0 14px;background:var(--glass-fill);backdrop-filter:blur(24px) saturate(1.6);-webkit-backdrop-filter:blur(24px) saturate(1.6);box-shadow:var(--shadow),inset 0 0 0 .5px var(--glass-edge)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--ink-1);text-decoration:none}
.topbar nav{margin-left:auto;display:flex;gap:4px;align-items:center}
.topbar nav a{color:var(--ink-1);text-decoration:none;font-size:15px;font-weight:600;padding:0 12px;height:44px;display:flex;align-items:center;border-radius:22px}
.topbar nav a:hover{background:var(--fill-hover)}
.lang{height:36px;min-width:44px;border-radius:18px;border:0;background:var(--tide-soft);color:var(--tide);font:600 15px/1 inherit;padding:0 12px;cursor:pointer}
.appicon{border-radius:22.5%;background:linear-gradient(160deg,var(--icon-a),var(--icon-b));position:relative;overflow:hidden;flex:none;box-shadow:0 2px 8px rgba(0,0,0,.2);display:inline-block}
.appicon::before{content:"";position:absolute;left:-18%;top:22%;width:62%;height:56%;border-radius:22%;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,255,255,.62));box-shadow:0 2px 10px rgba(0,0,0,.25)}
.appicon::after{content:"";position:absolute;left:27%;top:44%;width:11%;height:11%;border-radius:50%;background:#E8734A}
.hero{padding:72px 0 40px;display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center}
h1{font-size:clamp(34px,5.4vw,54px);line-height:1.12;letter-spacing:-.5px;font-weight:700}
h1 em{font-style:normal;color:var(--tide)}
.lead{font-size:19px;color:var(--ink-2);margin-top:16px;max-width:30em}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px;align-items:center}
.cta{height:50px;border-radius:25px;padding:0 24px;background:var(--tide);color:var(--on-tide);font-weight:600;display:inline-flex;align-items:center;text-decoration:none}
.cta[aria-disabled=true]{cursor:default}
.cta.sec{background:var(--bg-surface);color:var(--ink-1);box-shadow:inset 0 0 0 1px var(--line-hair)}
.note{font-size:13px;color:var(--ink-2);margin-top:12px}
/* hero illustration */
.stage{position:relative;height:420px;border-radius:28px;background:var(--bg-sunken);overflow:hidden;box-shadow:inset 0 0 0 1px var(--line-hair)}
.doc{position:absolute;inset:28px 24px 28px 150px;border-radius:18px;background:var(--bg-surface);padding:26px 22px;display:flex;flex-direction:column;gap:13px;box-shadow:inset 0 0 0 1px var(--line-hair)}
.bar{height:11px;border-radius:6px;background:var(--web-bar)}
.word{align-self:flex-start;background:var(--ember-soft);box-shadow:inset 0 0 0 1.5px var(--ember-fill);border-radius:8px;padding:2px 9px;font-weight:600}
.pane{position:absolute;left:-14px;top:20px;bottom:20px;width:150px;border-radius:26px;background:var(--glass-fill);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:var(--shadow),inset 0 0 0 .5px var(--glass-edge);padding:18px 12px 12px 26px;display:flex;flex-direction:column;gap:6px;animation:peek .45s cubic-bezier(.3,1.3,.5,1) both}
@keyframes peek{from{transform:translateX(-64px)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.pane{animation:none}}
.d{display:flex;align-items:center;gap:8px;height:44px;border-radius:14px;padding:0 8px;font-size:13px;color:var(--ink-2);position:relative}
.d.sel{background:var(--fill-selected);color:var(--ink-1);font-weight:600}
.d.sel::before{content:"";position:absolute;left:-6px;top:12px;width:4px;height:20px;border-radius:0 3px 3px 0;background:var(--tide)}
.tile{width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font:600 12px/1 "SF Pro Rounded",-apple-system,sans-serif;flex:none}
section{padding:48px 0}
h2{font-size:28px;line-height:1.25;letter-spacing:-.2px}
.sublead{color:var(--ink-2);margin-top:8px;max-width:36em}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.card{background:var(--bg-surface);border-radius:20px;padding:22px;box-shadow:inset 0 0 0 1px var(--line-hair)}
.card h3{font-size:17px;margin-bottom:6px}
.card p{font-size:15px;color:var(--ink-2)}
.num{width:32px;height:32px;border-radius:16px;background:var(--tide-soft);color:var(--tide);font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:15px}
.tiles{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.tiles span.chip{height:44px;border-radius:22px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--line-hair);display:inline-flex;align-items:center;gap:8px;padding:0 16px 0 8px;font-size:15px;font-weight:600}
.tiers{display:grid;gap:10px;margin-top:24px;max-width:560px}
.tier{min-height:64px;border-radius:20px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--line-hair);display:flex;align-items:center;gap:14px;padding:10px 18px}
.tier.hot{background:var(--ember-soft);box-shadow:inset 0 0 0 1.5px var(--ember-fill)}
.tier .em{width:36px;height:36px;border-radius:12px;background:var(--bg-sunken);display:flex;align-items:center;justify-content:center;flex:none}
.tier.hot .em{background:transparent;color:var(--ember)}
.tier svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tier .tn{display:flex;flex-direction:column;min-width:0}
.tier .td{font-size:15px;color:var(--ink-2)}
.tier small{font-size:12px;font-weight:600;color:var(--ember);margin-left:8px}
.free{background:var(--ember-soft);border-radius:28px;padding:32px;box-shadow:inset 0 0 0 1.5px var(--ember-fill)}
.free p{color:var(--ink-1);margin-top:8px;max-width:40em}
footer{border-top:1px solid var(--line-hair);margin-top:32px;padding:28px 0 48px;font-size:13px;color:var(--ink-2)}
footer .links{display:flex;flex-wrap:wrap;gap:4px 20px;margin-bottom:10px}
footer a{display:inline-flex;align-items:center;min-height:44px}
.prose{max-width:720px;padding:56px 20px 24px;margin:0 auto}
.prose h1{font-size:34px}
.prose h2{font-size:20px;margin-top:32px}
.prose p,.prose li{color:var(--ink-1);margin-top:10px}
.prose ul{padding-left:1.3em}
@media (max-width:820px){.hero{grid-template-columns:1fr;padding-top:48px}.grid{grid-template-columns:1fr}.topbar nav a.opt{display:none}.stage{height:360px}}
@media (max-width:420px){.doc{inset:24px 16px 24px 128px}.pane{width:132px}}
.demos{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.demos figure{margin:0}
.demos img{width:100%;height:auto;display:block;border-radius:20px;box-shadow:inset 0 0 0 1px var(--line-hair)}
.demos figcaption{font-size:15px;color:var(--ink-2);margin-top:8px}
.prose h3{font-size:17px;margin-top:20px}
.prose .legal div p:first-child{margin-top:8px}
.updated{color:var(--ink-2);font-size:15px;margin-top:32px}
.sig{font-style:italic;color:var(--ink-2);margin-top:8px}
@media (max-width:820px){.demos{grid-template-columns:1fr}}
/* promo film */
.film{margin-top:20px}
.film video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:20px;background:#000;box-shadow:inset 0 0 0 1px var(--line-hair)}
/* Mac download block on the iPad page */
.macblock{background:var(--bg-surface);border-radius:28px;padding:28px 32px;box-shadow:inset 0 0 0 1px var(--line-hair);display:flex;gap:24px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.macblock .sublead{max-width:34em}
/* Mac page */
.mac-hero{padding:64px 0 24px;max-width:760px}
.facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;list-style:none}
.facts li{height:32px;border-radius:16px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--line-hair);display:inline-flex;align-items:center;padding:0 12px;font-size:13px;font-weight:600;color:var(--ink-2)}
.feat{display:grid;grid-template-columns:.85fr 1.15fr;gap:32px;align-items:center;padding:28px 0;border-top:1px solid var(--line-hair)}
.feat:first-of-type{border-top:0}
.feat h3{font-size:22px;line-height:1.3;margin-bottom:8px}
.feat p{color:var(--ink-2)}
.feat kbd{font:600 15px/1 -apple-system,sans-serif;background:var(--bg-sunken);border-radius:6px;padding:3px 7px;box-shadow:inset 0 -1px 0 var(--line-hair);color:var(--ink-1)}
.shot{margin:0;border-radius:20px;background:var(--bg-sunken);padding:20px;box-shadow:inset 0 0 0 1px var(--line-hair);display:flex;justify-content:center}
.shot img{display:block;max-width:100%;height:auto}
.shot.tall img{max-height:520px;width:auto}
.shot.rail img{max-height:420px;width:auto}
/* text-only illustration for gestures with no screenshot */
.gesture{position:relative;height:260px;border-radius:20px;background:var(--bg-sunken);box-shadow:inset 0 0 0 1px var(--line-hair);overflow:hidden}
.gesture .screen{position:absolute;inset:24px 24px 24px 24px;border-radius:12px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--line-hair);padding:22px 22px 22px 70px;display:flex;flex-direction:column;gap:12px}
.gesture .edge{position:absolute;left:24px;top:24px;bottom:24px;width:46px;border-radius:12px 0 0 12px;background:var(--glass-fill);box-shadow:inset -1px 0 0 var(--line-hair);display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:16px}
.gesture .edge .tile{width:26px;height:26px;font-size:11px}
.gesture .arrow{position:absolute;left:78px;top:50%;transform:translateY(-50%);font-size:28px;color:var(--tide);font-weight:700}
.gesture .fingers{position:absolute;right:56px;bottom:46px;display:flex;gap:10px}
.gesture .fingers i{width:22px;height:22px;border-radius:50%;background:var(--tide);opacity:.85;box-shadow:0 0 0 6px var(--tide-soft)}
.gesture .fingers i:nth-child(2){transform:translateY(-8px)}
.gesture .label{position:absolute;right:24px;bottom:18px;font-size:13px;color:var(--ink-2)}
@media (max-width:820px){.feat{grid-template-columns:1fr;gap:16px}.macblock{padding:24px}}
