/* Phones only (24 Nov, Jonathan: "the same thing, just polished so it's perfect for the mobile"). Same sections, words,
   art and animations; what changes: nothing is pinned, animations play once on their own when they come into view, the
   notch is phone-sized, and things are big enough to read. Loaded with a media query (the same one as window.PHONE in
   try.js), so desktop never sees a line of it. Colours only from tokens.css. */
:root { --notch: 78px; --mb: 34px; --gutter: 20px; --sec: 72px; }
html { scroll-behavior: auto; }

/* ---- menu bar + notch: same idea, small; a bigger invisible area to tap ---- */
.menubar { padding-inline: 18px; font-size: 15px; }
.island:not(.g-notch) { border-radius: 0 0 10px 10px; }
.island:not(.g-notch)::before { content: ""; position: absolute; inset: 0 -16px -12px; }
.menubar:not(.chrome), .island:not(.g-notch) { transition: opacity .25s, inline-size .5s var(--spring), block-size .45s var(--spring); }
:root[data-hero="0"] .menubar:not(.chrome), :root[data-hero="0"] .island:not(.g-notch), :root[data-hero="0"] .panel { opacity: 0; visibility: hidden; pointer-events: none; }
.float { padding-block-start: env(safe-area-inset-top); }

/* ---- opening: the page flows; then the MacBook, in its dark room, eases back as you reach it ---- */
.pull { block-size: auto !important; }
.stick { position: static; block-size: auto; overflow: visible; }
.stick > .room, .rig > .mac-img, .desk-look { display: none; }
.rig, .page { position: static; transform: none !important; will-change: auto; }
.screen { position: relative; inset: auto; inline-size: 100%; block-size: auto; contain: none; overflow: clip visible; }
.hero { min-block-size: 0; padding: calc(var(--mb) + 44px) var(--gutter) 64px; }
.hero .desk { margin-block-start: 30px; }
.ph-room { padding: 76px 0 84px; overflow: clip; text-align: center; background: black; }
.ph-mac { position: relative; inline-size: 94%; margin-inline: auto; aspect-ratio: 2080 / 1646; transform-origin: 50% 40%; }
.ph-mac .mac-img { display: block; } .ph-scr { position: absolute; left: 10.192%; top: 4.617%; inline-size: 79.615%; block-size: 62.637%; overflow: hidden; border-radius: 4px 4px 0 0; background: var(--paper); }
.ph-scr img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; }
.ph-room .after { position: static; padding: 10px var(--gutter) 0; }
.after span { filter: none; transition: opacity .7s var(--soft), transform .7s var(--soft); }

/* ---- Ask ---- */
html .ask { block-size: auto; }
html .ask-stick { position: relative; block-size: max(600px, 88svh); }
html .ask-title { inset-block-start: 56px; } html .ask-title span, html .ask-said { filter: none; transition: opacity .6s var(--soft), transform .6s var(--soft); }
html .acard { will-change: transform, opacity; }

/* ---- Dictation ---- */
.dict { block-size: auto; }
.dict-stick { position: relative; block-size: auto; overflow: visible; display: block; }
.d-grid { padding: 72px var(--gutter) 40px; gap: 24px; }
.d-copy .sec-lead { font-size: 17px; }
.d-stage { block-size: 590px; }
.d-said { font-size: 23px; } .d-said.long { font-size: 20px; } .d-took { font-size: 14px; }
.d-app { block-size: 298px; } .d-b, .d-mailbody { font-size: 17px; } .d-apps button { min-block-size: 44px; font-size: 15px; }

/* ---- AI: the same windows, nearly the whole width, text you can read ---- */
.ai { block-size: auto; }
.ai-stick { position: relative; block-size: auto; }
.ai-in { display: block; block-size: auto; padding: 64px 10px 30px; }
.ai-head { padding-inline: 10px; } .ai-head .sec-lead { margin-block-start: 8px; font-size: 17px; }
.ai-tabs { inline-size: 100%; margin-block: 22px 12px; } .ai-tabs button { min-block-size: 44px; font-size: 13.5px; }
.ai-desk { inline-size: 100%; block-size: 530px; }
.aw-log { overflow: hidden; }   /* no scrolling inside the page: it follows its own last line */
.aw-claude .aw-main, .aw-gpt .aw-main { grid-template-rows: 48px minmax(0, 1fr) auto; }
.aw-top { font-size: 15px; }
.aw-claude .m-ai, .aw-gpt .m-ai { font-size: 18px; line-height: 1.5; } .m-me { font-size: 17px; max-inline-size: 88%; } .m-ai blockquote { font-size: 17px; }
.m-tool, .m-tool .t-name, .m-tool .t-from, .m-tool .lbl, .m-tool .rows p { font-size: 14.5px; } .m-tool .r-req { font-size: 14px; } .m-tool .r-k { font-size: 11.5px !important; }
.aw-claude .aw-comp, .aw-gpt .aw-comp, .aw input { font-size: 17px; }
.aw-code { font-size: 15px; } .ed-code { font-size: 13px; }
.ai-foot { margin-block-start: 14px; } .ai-hint { font-size: 14px; }
.drop { touch-action: pan-y; }

/* ---- What people say: one stays; the arrows on the right (or a swipe) move between them ---- */
.love { block-size: auto; }
.love-stick { position: relative; block-size: auto; padding-block: 72px 84px; }
.love-title { min-block-size: 2.12em; }
.feat { touch-action: pan-y; min-block-size: 330px; margin-block-start: 24px; } .feat blockquote { font-size: 23px; }
.feat.in, .love-title.swap { animation-name: phFade; } @keyframes phFade { from { opacity: 0; transform: translateX(var(--from, 14px)); } }
.love-nav { gap: 10px; margin-block-start: 18px; } .love-dots { order: -1; flex: 1; gap: 4px; } .love-dots button { inline-size: auto; flex: 0 1 22px; block-size: 44px; } .love-dots button::after { inset: 20px 0; }
.love-arrow { inline-size: 48px; block-size: 48px; } .love-arrow svg { inline-size: 18px; block-size: 18px; }

/* ---- Questions: the same Notes window; each note opens in place ---- */
.faq-head { margin-block-end: 28px; }
.nw { min-block-size: 0; } .nw-side { position: relative; padding: 16px 12px 12px; border: 0; }
.nw-note { display: none; } .nw-side .nw-bar { position: absolute; inset: 8px 10px auto auto; margin: 0; padding: 0; border: 0; inline-size: auto; }
.nw-side .nw-tb:first-child, .nw-side .nw-sp { display: none; }
.nw-side ul.nw-list { max-block-size: none; overflow: visible; }
.nw-search { block-size: 42px; } .nw-search input { font-size: 16px; }
.nw-list button { padding: 14px 12px; } .nw-list button b { font-size: 17px; } .nw-list button small { font-size: 14px; }
.nw-list button[aria-selected="true"] small { display: none; }
.nw-side .nw-a { padding: 4px 14px 18px; font-size: 17px; } .nw-a .wd { animation: none; }

/* ---- the ending + the footer Dock: nothing floats over it, the icons keep their shape ---- */
.bezel { display: none; } :root[data-chrome="1"] .chrome { translate: 0 0; padding-inline: 18px; } :root[data-chrome="1"] .g-notch { translate: -50% 0; }
.end { block-size: auto; } .end-stick { position: relative; min-block-size: 0; padding-block-end: 0; display: block; }
.end-in { padding: 84px var(--gutter) 60px; } .end-title { font-size: clamp(32px, 9.3vw, 46px); }
.end .fine { font-size: 14px; }
.site-foot { padding-block-end: calc(112px + env(safe-area-inset-bottom)); font-size: 16px; } .foot-cols .fh { font-size: 15px; } .foot-cols a { padding-block: 7px; }
.mac-dock .dk, [data-dock].mac-dock .dk { --base: min(40px, calc((100vw - 62px) / 9 - 4px)); inline-size: calc(var(--base) + 4px); }
.mac-dock .dk .ic img, .mac-dock .dk .ic svg { inline-size: 100%; block-size: auto; } .mac-dock .dk .ic.stash svg { inline-size: 62%; }
.mac-dock .dk .ic { border-radius: 24%; overflow: hidden; } .mac-dock .dk .ic.soc::after { inset: 22%; }
[data-dock].dock { inset-block-end: calc(22px + env(safe-area-inset-bottom)); }

/* ---- smoothness: glass that has to re-blur what scrolls under it becomes plain ---- */
.menubar, .float .pill, .mac-dock, .nf, .fx-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.menubar { background: color-mix(in srgb, var(--paper) 94%, transparent); } html .fx-card { background: var(--paper); }
[data-dock].mac-dock { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; }
.float .pill.brand { background: var(--graphite-bottom); } :root[data-nav="ink"] .float .pill.brand { background: var(--paper); }
[id$="-title"] { scroll-margin-block-start: 88px; }
/* the character floats by itself (the phone's own animation, no script) */
.drop, .drop-still { animation: phFloat 2.6s ease-in-out infinite alternate; } @keyframes phFloat { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.drop-shadow { filter: none; } .drop-wrap { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .drop, .drop-still { animation: none; } }
.drop.off { animation-play-state: paused; }
/* two quick taps on a button must not zoom the page (pinch still works) */
html, button, a, .fx-row, .ofx-row { touch-action: manipulation; }

/* ===== 24 Nov, evening: the desktop page, faithfully (one page, no options) ===== */
.ph-brand { display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--ink); } .ph-brand svg { inline-size: 52px; block-size: 37px; } .ph-brand b { font: 500 58px/1 var(--font-serif); letter-spacing: -.03em; }
.hero { padding-block-start: calc(var(--mb) + 34px); } .hero .display { margin-block-start: 22px; font-size: clamp(33px, 9.4vw, 42px); } .hero .sub { margin-block-start: 16px; font-size: 17px; } .hero .cta, .hero .desk { display: none; }
.ph-how { margin: 34px 0 16px; max-inline-size: 20em; font-size: 17px; line-height: 1.4; color: var(--ink-2); } .ph-how b { color: var(--ink); }
.hero .panel { position: relative; inset: auto; translate: none; transform: none; opacity: 1; visibility: visible !important; pointer-events: auto !important; inline-size: calc(100vw - 20px); z-index: 2; text-align: start; }
.hero .panel-in { padding: 14px 0 12px; border-radius: 26px; background: var(--well); -webkit-backdrop-filter: none; backdrop-filter: none; } .hero .ph-row { padding-inline: 16px; gap: 10px; } .p-brand { display: inline-flex; font-size: 16px; } .p-search { block-size: 36px; } .p-search input { font-size: 16px; }
.hero .tabs { padding-inline: 18px; gap: 18px; overflow: hidden; white-space: nowrap; font-size: 15px; } .hero .cards { grid-auto-columns: 150px; padding: 3px 16px 8px; scroll-padding-inline: 16px; overscroll-behavior-x: contain; } .hero .card { block-size: 162px; } .hero .card .body { font-size: 16px; } .hero .foot { padding-inline: 18px 14px; } .paste-btn { block-size: 36px; }
.hero .grip { display: none; } .card.ghost { position: fixed; z-index: 110; inset: 0 auto auto 0; block-size: 162px; pointer-events: none; will-change: transform; box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .08), 0 20px 30px -14px rgb(var(--shade-rgb) / .4); }
:root[data-hero="0"] .hero .panel { opacity: 1; }
.hero .demo { margin-block-start: 18px; inline-size: 100%; } .pad-demo { min-block-size: 0; } .pad { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px 6px; } .pad-todo { grid-column: 1; grid-row: 2; rotate: 0deg; margin: 10px 0 0; } .pad-todo li { font-size: 15px; } .pad-doc { font-size: 18px; } .pad-free { min-block-size: 44px; } .demo #talk { display: none; }
.menubar .mb-dl { display: inline !important; } .menubar .mb-clock { display: none; }
.keys .fx-nav { display: flex; } .fx-head { flex-direction: row !important; align-items: end !important; } .fx-nav { gap: 8px; } .fx-nav button { inline-size: 44px; block-size: 44px; } .fx-nav span { display: none; }
.keys .fx-row .fx-pic { aspect-ratio: 316 / 380; } html .fx-small { margin-block-start: 22px; } html .fx-small .fx-pic { aspect-ratio: 1; } .keys .fx-card { padding: 10px 10px 22px; } .keys .fx-card h3 { font-size: 25px; } .keys .fx-t { margin-inline: 10px; column-gap: 8px; } .keys .fx-card p { font-size: 17px; }
.ai-also { display: flex !important; justify-content: center; inline-size: 100%; margin-block-start: 8px; font-size: 14px; } .ai-also img { inline-size: 20px; block-size: 20px; }
.love .notifs { position: static; display: block; inline-size: auto; padding: 22px 20px 0; } .love .nf { display: none; } .love .nf.next { display: grid; opacity: .8; transform: none; font-size: 15.5px; background: var(--surface); } .feat { min-block-size: 300px; }
.end-stick { display: block; } .end-receipt, .end-plane { display: grid !important; position: relative; inset: auto; touch-action: auto; } .end-receipt { margin: 8px auto 0; } .end-plane { position: absolute; inset: 26px 14px auto auto; scale: .62; transform-origin: top right; } .end { padding-block-end: 48px; }
.love .nf.next { text-align: start; } .love .nf.next > * { min-inline-size: 0; } .love .nf .role { text-align: start; }
.end-stick { padding-block-start: 92px; } .end-plane { inset: 14px 24px auto auto; scale: .74; }
.love .nf.next header b { color: var(--ink); } .love .nf.next { opacity: 1; }
.hero .cards { padding-block: 8px; margin-block-start: -5px; } .menubar:not(.float) { background: var(--paper); }
.ask .acard { opacity: 0; }   /* until ask.js has placed them: no flash of the pile */
[data-feat-q] .sym { font-family: var(--font-text); font-size: .9em; }
.hero .cards { min-block-size: 178px; }
.fx-row .fx-pic { --z: 1.18; --dy: -7%; } .fx-row .p1 { --z: 1.06; --dy: -2%; } .fx-row .p2 { --dy: -6%; } .fx-row .p6 { --z: 1; --dy: 0; }
.ph-toys { position: relative; inline-size: 100%; block-size: 118px; margin-block-start: 26px; } .ph-toys .toy { z-index: 2; }
html .faq::before { block-size: 300px; } html .faq-art { inline-size: 47%; block-size: 300px; object-position: 80% 50%; } .faq { padding-block-start: 56px; } .faq-art ~ .wrap .faq-head { text-align: start; min-block-size: 150px; padding-block-start: 64px; }
.keys .sec-title { font-size: 32px; white-space: nowrap; } html .end-door img { block-size: 64vw; object-position: 50% 60%; } html .d-art { display: none; }
.how .how-key { display: none !important; } .how .how-touch { display: inline !important; }
