:root {
  --paper: #f6f3ee;
  --ink: #17121f;
  --soft: #625c6c;
  --line: rgba(23, 18, 31, .1);
  --violet: #6a52e8;
  --violet-2: #9c8cff;
  --peach: #ffc7b8;
  --night: #0e0a12;
  --cream: #fff6ea;
  --spring: cubic-bezier(.3, 1.22, .42, 1);
  --out: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; }

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 92px); line-height: .96; letter-spacing: -.048em; font-weight: 750; }
h2 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 720; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.018em; font-weight: 650; }
h1 em, h2 em { font-style: normal; color: var(--violet); }
.sub { color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin-top: 18px; text-wrap: pretty; }
.kicker { color: var(--violet); font-weight: 650; font-size: 15px; margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .25s var(--spring), box-shadow .25s, background .2s; box-shadow: 0 10px 26px -12px rgba(23, 18, 31, .55); }
.btn:hover { transform: translateY(-2px); background: #2b2139; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(23, 18, 31, .05); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { background: #4a4455; cursor: default; box-shadow: none; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Nav */
.nav { position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0; width: min(760px, 100% - 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 12px; border-radius: 999px; background: rgba(246, 243, 238, .74); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -20px rgba(23, 18, 31, .5); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 19px; letter-spacing: -.03em; text-decoration: none; }
.brand img { border-radius: 24%; }
.nav { transition: background .3s, box-shadow .3s, color .3s; }
.nav.night { background: rgba(30, 22, 38, .72); color: var(--cream); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 30px -20px #000; }
.nav.night nav a { color: rgba(255, 246, 234, .7); }
.nav.night nav a:hover { color: var(--cream); }
.nav.night .btn { background: var(--cream); color: var(--ink); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { text-decoration: none; font-size: 14.5px; color: var(--soft); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 150px 0 90px; text-align: center; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; background: radial-gradient(48% 38% at 50% 74%, rgba(156, 140, 255, .42), transparent 70%), radial-gradient(30% 26% at 72% 62%, rgba(255, 199, 184, .65), transparent 70%); }
.hero > h1, .hero > .lede, .hero > .cta, .hero > .meta { animation: rise .8s var(--out) both; }
.hero > .lede { animation-delay: .08s; }
.hero > .cta { animation-delay: .16s; }
.hero > .meta { animation-delay: .2s; }
/* Only the position moves, so the words are there even if a browser holds animations back. */
@keyframes rise { from { transform: translateY(18px); } }
.lede { width: min(620px, 100% - 40px); margin: 26px auto 0; font-size: clamp(17px, 1.8vw, 21px); color: var(--soft); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.meta { margin-top: 14px; font-size: 14px; color: var(--soft); min-height: 1.5em; padding-inline: 20px; }

/* The screen the island sits on. app.js lays out its inside in the Mac's own points and scales it to fit. */
.device { position: relative; margin: 56px auto 0; width: min(1180px, 100% - 32px); overflow: hidden; border-radius: 26px 26px 0 0; background: #07060a; padding: 9px 9px 0; box-shadow: 0 0 0 1.5px #b9b4bf, 0 50px 90px -40px rgba(46, 28, 110, .55); }
.screen { position: relative; overflow: hidden; border-radius: 18px 18px 0 0; background: #2c2358; }
.world { position: absolute; top: 0; left: 0; width: 1512px; transform-origin: 0 0; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.menubar { position: absolute; inset: 0 0 auto; height: 32px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 13px; font-weight: 500; padding: 0 var(--bar-pad, 20px); background: rgba(14, 8, 36, .24); white-space: nowrap; }
.menubar span { display: inline-flex; gap: 20px; align-items: center; }
.menubar b { font-weight: 700; }
.menubar i { font-style: normal; }
.menubar.compact i { display: none; }
.cut { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 190px; height: 32px; background: #000; border-radius: 0 0 10px 10px; }
.island { position: absolute; top: 0; left: 50%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.island .body { position: absolute; top: -3px; background: #000; transition: opacity .18s; }
.island .body::before, .island .body::after { content: ""; position: absolute; top: 3px; width: var(--flare, 8px); height: var(--flare, 8px); transition: width .34s var(--out), height .34s var(--out); }
.island .body::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--flare, 8px) - .6px), #000 var(--flare, 8px)); }
.island .body::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--flare, 8px) - .6px), #000 var(--flare, 8px)); }
.island .layer { position: absolute; top: 0; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, clip-path; }
.island .layer img { position: absolute; top: 0; left: 0; max-width: none; will-change: transform, filter; }
.waves { position: absolute; top: 0; z-index: 2; pointer-events: none; }
.states { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px auto 0; width: min(900px, 100% - 24px); }
.states button { font: 600 14px var(--font); color: var(--ink); background: rgba(255, 255, 255, .62); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 10px 17px; cursor: pointer; transition: background .2s, color .2s, transform .25s var(--spring); }
.states button:hover { background: #fff; transform: translateY(-1px); }
.states button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.caption { margin-top: 18px; font-size: 13.5px; color: var(--soft); text-align: center; padding-inline: 20px; }

section:not(.hero) { padding: 120px 0; }
.glance, .shelf, .apps, .trust, .final { text-align: center; }
.sub { margin-inline: auto; }

/* Closed island row */
.ears { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; text-align: left; }
.ears li { background: #fff; border-radius: 26px; padding: 12px 12px 24px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; align-content: start; }
.ears strong { margin: 14px 12px 0; font-size: 18px; letter-spacing: -.015em; }
.ears span { margin: 0 12px; color: var(--soft); font-size: 15px; }
.ear { height: 118px; border-radius: 17px; overflow: hidden; position: relative; background: linear-gradient(150deg, #8f7cf0, #d9a7c4 60%, #ffcfae); }
.ear::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; background: rgba(14, 8, 36, .24); }
.ear img { position: absolute; top: 0; left: 50%; translate: -50% 0; transition: transform .45s var(--spring); transform-origin: 50% 0; }
.ears li:hover .ear img { transform: scale(1.1); }

/* Claude story */
.story { background: var(--night); color: var(--cream); border-radius: 40px; margin-inline: 10px; }
.story h2 em { color: #f2a985; }
.story .sub { color: rgba(255, 246, 234, .66); margin-inline: 0; }
.story .kicker { color: #f2a985; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.story-screen { position: sticky; top: 100px; align-self: start; }
.device-dark { margin: 0; width: 100%; border-radius: 24px; padding: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -40px rgba(217, 119, 87, .45); }
.device-dark .screen { border-radius: 17px; }
.steps { list-style: none; padding: 6vh 0 12vh; }
.steps li { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: .34; transition: opacity .35s; cursor: pointer; }
.steps li.on { opacity: 1; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 169, 133, .16); color: #f2a985; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.steps h3 { font-size: 28px; }
.steps p { margin-top: 10px; color: rgba(255, 246, 234, .72); max-width: 28em; }
.steps .inline-shot { display: none; }

/* Shelf demo */
.drop { position: relative; margin-top: 50px; touch-action: pan-y; }
.drop .device { margin: 0 auto; width: min(920px, 100%); border-radius: 26px; padding: 9px; }
.drop .screen { border-radius: 18px; }
.file { position: absolute; z-index: 6; left: calc(50% - 90px); bottom: 56px; width: 180px; display: grid; justify-items: center; gap: 8px; border: 0; background: transparent; cursor: grab; color: #fff; font: 600 13px var(--font); touch-action: none; user-select: none; -webkit-user-select: none; }
.file svg { width: 58px; filter: drop-shadow(0 12px 16px rgba(10, 5, 30, .45)); }
.file span { background: rgba(14, 8, 36, .6); padding: 3px 9px; border-radius: 7px; }
.file.home { transition: transform .6s var(--spring), opacity .3s; }
.file.dragging { cursor: grabbing; }
.file.gone { opacity: 0; pointer-events: none; }
#dropStatus { font-weight: 650; color: var(--violet); }

/* Bento: each card is a bit of screen, the island hanging from its top edge. */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 56px; text-align: left; }
.card { border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; min-height: 400px; background: var(--tone); color: var(--tone-ink, var(--ink)); }
.card.wide { grid-column: 1 / -1; }
.card header { order: 1; margin-top: auto; padding: 30px 32px 30px; }
.card header p { margin-top: 8px; font-size: 16px; opacity: .74; max-width: 31em; }
.card sup a { text-decoration: none; padding: 0 3px; }
.shot { display: flex; justify-content: center; padding: 0 14px; }
.shot img { width: 100%; height: auto; align-self: flex-start; filter: drop-shadow(0 18px 22px rgba(20, 8, 40, .3)); transition: transform .5s var(--spring); transform-origin: 50% 0; }
.card:hover .shot img { transform: scale(1.025); }
.tone-violet { --tone: linear-gradient(165deg, #ded8ff, #bfb2ff); }
.tone-rose { --tone: linear-gradient(165deg, #ffe0dc, #ffc2c0); }
.tone-sand { --tone: linear-gradient(165deg, #fbeccb, #f3d699); }
.tone-mint { --tone: linear-gradient(165deg, #daf1e3, #b4dfc6); }
.tone-sky { --tone: linear-gradient(165deg, #dcebff, #b6d2fb); }
.tone-night { --tone: linear-gradient(165deg, #302657, #17112d); --tone-ink: #fff; }
.also { margin-top: 28px; color: var(--soft); font-size: 15.5px; }
.also b { color: var(--ink); font-weight: 650; }

/* Artifacts: the heart of it */
.arts { margin-inline: 10px; border-radius: 40px; background: radial-gradient(60% 34% at 50% 30%, rgba(106, 82, 232, .42), transparent 72%), #140f2b; color: var(--cream); text-align: center; }
.arts h2 { font-size: clamp(40px, 6.4vw, 82px); }
.arts h2 em { color: #b3a4ff; }
.arts .sub { color: rgba(255, 246, 234, .72); }
.arts .kicker { color: #b3a4ff; }
.art-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.art-tabs button { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; text-align: left; font: inherit; color: var(--cream); background: rgba(255, 255, 255, .05); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); border-radius: 18px; padding: 13px 16px; cursor: pointer; transition: background .2s, box-shadow .2s, transform .25s var(--spring); }
.art-tabs button:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.art-tabs button[aria-pressed="true"] { background: rgba(179, 164, 255, .18); box-shadow: inset 0 0 0 1.5px #b3a4ff; }
.art-tabs i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 14px var(--dot); }
.art-tabs b { font-size: 15.5px; font-weight: 650; }
.play { position: relative; margin-top: 18px; }
.play .device { margin: 0; width: 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -40px rgba(140, 115, 255, .7); }
/* The Claude window, in the screen's own points: it scales with the Mac around it. */
.claude { position: absolute; left: 306px; top: 118px; width: 900px; height: 540px; display: grid; grid-template-columns: 310px minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); text-align: left; background: #f6f3ec; color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 36px 70px -20px rgba(0, 0, 0, .7); }
.claude .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.claude .bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.claude .bar i + i { background: #febc2e; }
.claude .bar i + i + i { background: #28c840; }
.claude .bar b { flex: 1; text-align: center; margin-right: 52px; font-size: 13.5px; font-weight: 600; color: var(--soft); }
.chat { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px 16px; border-right: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; min-height: 0; }
.msg.you { align-self: flex-end; max-width: 86%; background: #e9e4d9; border-radius: 16px; padding: 10px 14px; }
.msg.ai { padding-right: 10px; }
.chip { display: flex; align-items: center; gap: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 13px; padding: 11px 13px; }
.chip i { width: 30px; height: 36px; border-radius: 6px; background: linear-gradient(150deg, #f4d3c4, #d97757); }
.chip b { display: block; font-size: 14.5px; }
.chip small { color: var(--soft); font-size: 12.5px; }
.field { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 16px; padding: 12px 12px 12px 15px; color: #8d8794; font-size: 14.5px; }
.field i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #d97757; color: #fff; font-style: normal; }
.artifact { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.artifact header { display: flex; align-items: center; gap: 9px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.artifact header i { width: 9px; height: 9px; border-radius: 50%; background: #d97757; }
.artifact header small { margin-left: auto; color: var(--soft); font-size: 12.5px; }
.artifact [data-art] { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 52px 46px 24px; }
.artifact [hidden], .notch-hit[hidden] { display: none !important; }
.artifact .row { display: flex; gap: 10px; justify-content: center; align-items: center; }
.artifact button { font: 600 16px var(--font); border: 0; border-radius: 99px; padding: 12px 24px; background: rgba(23, 18, 31, .07); color: var(--ink); cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.artifact button:hover { background: rgba(23, 18, 31, .12); }
.artifact button:active { transform: scale(.94); }
.artifact button:disabled { opacity: .5; cursor: default; }
.artifact button.act, .artifact .board li button { background: var(--ink); color: #fff; }
.pomo { gap: 18px !important; padding-top: 30px !important; position: relative; isolation: isolate; }
.pomo::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 360px; height: 360px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 74, .16), transparent); opacity: 0; transition: opacity .6s; }
.pomo[data-phase="running"]::before { opacity: 1; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.12; opacity: .65; } }
.pomo .modes { display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto; border-radius: 99px; background: rgba(23, 18, 31, .05); font-size: 13px; font-weight: 600; color: var(--soft); }
.pomo .modes span { padding: 6px 14px; border-radius: 99px; }
.pomo .modes .on { background: #fff; color: #e2492f; box-shadow: 0 1px 3px rgba(23, 18, 31, .12); }
.pomo .dial { position: relative; width: 250px; height: 250px; margin: 0 auto; transition: scale .6s var(--spring); }
.pomo[data-phase="running"] .dial { scale: 1.03; }
.pomo svg { width: 100%; height: 100%; overflow: visible; }
.pomo .ticks line { stroke: #d8d2ca; stroke-width: .9; stroke-linecap: round; transition: stroke .3s, opacity .3s; }
.pomo .ticks line.lit { stroke: #ff6a4a; }
.pomo circle.track { fill: none; stroke: #f1ece6; stroke-width: 7; }
.pomo circle.go { fill: none; stroke: url(#pomoGrad); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 289; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1s linear; }
.pomo[data-phase="running"] circle.go { filter: drop-shadow(0 0 3px rgba(255, 90, 60, .55)); }
.pomo .sweep { transform-origin: 60px 60px; transition: transform 1s linear; }
.pomo .sweep circle { fill: #ff6a4a; opacity: 0; transition: opacity .4s; }
.pomo:not([data-phase="idle"]) .sweep circle { opacity: 1; }
.pomo[data-phase="running"] .sweep circle { filter: drop-shadow(0 0 4px #ff6a4a); }
.pomo .face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; }
.pomo .face small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e2492f; }
.pomo time { display: block; font-size: 58px; line-height: 1.05; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.pomo time.flip { animation: flip .45s var(--spring); }
@keyframes flip { from { transform: translateY(6px); opacity: .35; filter: blur(2px); } }
.pomo .face span { font-size: 13px; color: var(--soft); }
.pomo[data-phase="paused"] time { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }
.pomo .sessions { display: flex; justify-content: center; gap: 8px; }
.pomo .sessions i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #e3ddd5; }
.pomo .sessions i.on { background: linear-gradient(135deg, #ffb36b, #ff4f3a); box-shadow: none; }
.pomo[data-phase="running"] .sessions i.now { background: #ff6a4a; box-shadow: 0 0 0 0 rgba(255, 106, 74, .5); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(255, 106, 74, 0); } }
.artifact .pomo button.act { background: linear-gradient(135deg, #ff8a5b, #ff4f3a); min-width: 150px; box-shadow: 0 10px 22px -10px rgba(255, 79, 58, .8); }
/* Meals and calories, after the look of the Artifact it comes from: dark, lime. */
.artifact .cal { background: radial-gradient(420px 260px at 92% -8%, rgba(190, 242, 100, .1), transparent 62%), #0a0c0f; color: #f3f5f7; gap: 10px !important; padding: 18px 28px 14px !important; justify-content: flex-start !important; text-align: left; }
.cal-sum { border: 1px solid rgba(190, 242, 100, .22); border-radius: 16px; padding: 10px 16px; background: linear-gradient(135deg, rgba(190, 242, 100, .07), rgba(255, 255, 255, .03)); }
.cal-sum small { color: #8b94a1; font-size: 12.5px; font-weight: 600; }
.cal-sum p { color: #8b94a1; font-size: 14px; }
.cal-sum b { color: #f3f5f7; font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.cal-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 8px; overflow: hidden; }
.cal-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #a3e635, #d9f99d); transition: width .8s var(--spring); }
.artifact .cal ul { gap: 0; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; padding: 2px 14px; }
.artifact .cal li { min-height: 0; padding: 6px 0; gap: 12px; background: none; box-shadow: none; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; color: #f3f5f7; }
.artifact .cal li:first-child { border-top: 0; }
.cal li span { flex: 1; min-width: 0; display: grid; }
.cal li small { color: #8b94a1; font-size: 12.5px; font-weight: 500; }
.cal li em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.artifact .cal .ck { flex: none; margin: 0; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .26); display: grid; place-items: center; transition: background .3s, box-shadow .3s, transform .35s var(--spring); }
.artifact .cal .ck:disabled { opacity: 1; }
.artifact .cal li.ate .ck { background: #bef264; box-shadow: none; }
.artifact .cal li.ate .ck::after { content: "✓"; color: #0b1204; font-weight: 800; font-size: 14px; }
.artifact .cal li.next .ck { box-shadow: inset 0 0 0 2px #bef264; animation: beckonLime 1.6s ease-in-out infinite; }
.artifact .cal li.next .ck:hover { transform: scale(1.12); }
@keyframes beckonLime { 50% { box-shadow: inset 0 0 0 2px #bef264, 0 0 0 6px rgba(190, 242, 100, .16); } }
.artifact .cal li.ate em { color: #bef264; }
.artifact .cal li:not(.ate) em { color: #8b94a1; }
.cal .row:has(> [hidden]:only-child) { display: none; }
.artifact .cal #calReset { background: rgba(255, 255, 255, .08); color: #f3f5f7; }
.artifact ul { list-style: none; display: grid; gap: 12px; }
.artifact li { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 8px 12px 8px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 17px; font-weight: 550; }
.artifact li button { margin-left: auto; flex: none; padding: 10px 20px; }
.board li i { width: 20px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px #b6b0c0; display: grid; place-items: center; font: normal 700 12px var(--font); color: #fff; }
.board li.done i { background: #3f86f5; box-shadow: none; }
.board li.done i::after { content: "✓"; }
.board li.done span { text-decoration: line-through; opacity: .45; }
.board li.run { box-shadow: 0 0 0 2px #6ea8ff; }
.board small { color: var(--soft); font-size: 14px; }
.water { text-align: center; }
.water p { color: var(--soft); font-size: 18px; }
.water p b { font-size: 82px; line-height: 1; color: #1583c4; letter-spacing: -.04em; margin-right: 6px; }
#cups { display: flex; justify-content: center; gap: 12px; }
#cups i { width: 40px; height: 58px; border-radius: 9px 9px 17px 17px; box-shadow: inset 0 0 0 1.5px #a8d6ef; transition: background .3s; }
#cups i.on { background: linear-gradient(#8fdcff, #3aa8ee); box-shadow: none; }
.artifact .water button.act { background: #1583c4; }
/* Under the screen on a narrow page. */
.play > .claude { position: relative; left: auto; top: auto; width: min(620px, 100%); height: auto; margin: 14px auto 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px auto auto; }
.play > .claude .chat { border-right: 0; border-bottom: 1px solid var(--line); }
.play > .claude .chip, .play > .claude .field { display: none; }
.play > .claude .artifact [data-art] { min-height: 340px; padding: 24px 18px; }
.play > .claude .chat { padding-block: 18px; }
.flyer { position: absolute; left: 0; top: 0; z-index: 8; overflow: hidden; background: #000; pointer-events: none; will-change: transform, width, height; }
.flyer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.flyer .picture { object-fit: cover; }
.flyer .face { object-fit: contain; background: #000; opacity: 0; }
.notch-hit.quiet { z-index: 6; border-radius: 0 0 18px 18px; box-shadow: none; animation: none; }
.notch-hit.quiet:hover, .notch-hit.quiet:focus-visible { box-shadow: 0 0 0 2px rgba(179, 164, 255, .8); }
.notch-hit.quiet.opened:hover { box-shadow: none; }
.notch-hit { position: absolute; z-index: 7; border: 0; border-radius: 99px; background: transparent; cursor: pointer; box-shadow: 0 0 0 2px #b3a4ff; animation: beckon 1.6s ease-in-out infinite; }
@keyframes beckon { 50% { box-shadow: 0 0 0 5px rgba(179, 164, 255, .25); } }
.demo-cursor { position: absolute; left: -4px; top: -3px; z-index: 9; width: 24px; pointer-events: none; opacity: 0; transition: transform .8s var(--out), opacity .25s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }
.demo-cursor.on { opacity: 1; }
.demo-cursor.press path { fill: #b3a4ff; }
.see { margin-top: 24px; font-weight: 650; font-size: 18px; }
.arts .caption { color: rgba(255, 246, 234, .48); }
.how { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 70px; }
.how li { display: grid; place-items: center; min-height: 140px; background: rgba(255, 255, 255, .05); border-radius: 24px; padding: 26px 34px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.how h3 { font-size: clamp(22px, 2.4vw, 28px); }
.ask { margin: 80px auto 0; max-width: 640px; }
.ask h3 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.ask p { margin-top: 16px; color: rgba(255, 246, 234, .72); font-size: 18px; }
.ask .need { font-size: 14px; color: rgba(255, 246, 234, .48); }
.together { margin: 70px auto 0; width: min(760px, 100%); border-radius: 30px; overflow: hidden; background: linear-gradient(165deg, #5b47bd, #2a1f5e); padding-bottom: 24px; }
.together .shot img { max-width: 680px; filter: drop-shadow(0 20px 24px rgba(5, 0, 20, .5)); }
.together figcaption { margin-top: 28px; padding: 0 24px; font-size: 15.5px; color: rgba(255, 246, 234, .78); }

.card.soon { align-items: center; justify-content: center; text-align: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); padding: 30px; }
.card.soon h3 { font-size: 28px; color: var(--soft); }

/* Waves */
.waves-part { text-align: center; }
.waves-part .device { box-shadow: 0 0 0 1.5px #b9b4bf, 0 50px 90px -40px rgba(46, 28, 110, .55); }
.waves-part #waveNote { font-weight: 650; color: var(--ink); font-size: 15.5px; }
.waves-part .caption + .caption { margin-top: 4px; }

/* No notch */
.pet { border-radius: 34px; min-height: 360px; display: grid; place-items: center; background: linear-gradient(160deg, #8f7cf0, #d59fca 58%, #ffcaa8); overflow: hidden; }
.pill { display: flex; align-items: center; gap: 18px; background: #000; color: var(--cream); border-radius: 999px; padding: 16px 38px 16px 24px; box-shadow: 0 30px 50px -20px rgba(20, 8, 40, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pill canvas { width: 132px; height: 102px; }
.pill b { display: block; font: 600 24px ui-rounded, var(--font); }
.pill small { display: block; opacity: .55; font-size: 16px; }

/* Trust */
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; text-align: left; }
.trust li { padding: 4px 26px; border-left: 1px solid var(--line); }
.trust li p { margin-top: 10px; color: var(--soft); font-size: 15.5px; }

/* FAQ */
.faq h2 { text-align: center; margin-bottom: 40px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 2px; font-weight: 620; font-size: 19px; letter-spacing: -.012em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet); font-weight: 400; font-size: 26px; line-height: 1; transition: rotate .3s var(--spring); }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 2px 24px; color: var(--soft); max-width: 36em; }

/* Final */
.final { background: radial-gradient(50% 55% at 50% 70%, rgba(156, 140, 255, .38), transparent 70%); }
.final img { margin: 0 auto 26px; filter: drop-shadow(0 20px 28px rgba(70, 45, 170, .35)); }
footer { border-top: 1px solid var(--line); padding: 34px 0 46px; }
footer .wrap { display: flex; gap: 40px; justify-content: space-between; align-items: flex-start; }
footer p { font-size: 13px; color: var(--soft); max-width: 46em; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--out), transform .7s var(--out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .nav nav { display: none; }
  section:not(.hero) { padding: 88px 0; }
  .hero { padding-top: 124px; }
  .ears { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .nonotch-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  /* The story keeps its screen on top and the steps pass under it. */
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-screen { top: 72px; z-index: 4; padding-bottom: 8px; background: var(--night); }
  .steps { padding: 0 0 6vh; }
  .steps li { min-height: 34vh; justify-content: center; }
  footer .wrap { flex-direction: column; gap: 14px; }
}
@media (max-width: 620px) {
  .arts { margin-inline: 0; border-radius: 28px; }
  .arts .wrap { width: min(1120px, 100% - 24px); }
  .art-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 6px; scroll-snap-type: x mandatory; }
  .art-tabs::-webkit-scrollbar { display: none; }
  .art-tabs button { flex: none; padding: 11px 15px; scroll-snap-align: start; }
  .art-tabs b { white-space: nowrap; }
  .ears, .bento, .trust ul { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card header { padding: 26px 22px; }
  .shot { padding: 0 6px; }
  .story { margin-inline: 0; border-radius: 28px; }
  .trust li { border-left: 0; border-top: 1px solid var(--line); padding: 20px 4px 0; }
  .trust ul { gap: 20px; }
  .device { width: calc(100% - 16px); border-radius: 20px 20px 0 0; padding: 6px 6px 0; }
  .screen { border-radius: 14px 14px 0 0; }
  .device-dark { width: 100%; border-radius: 18px; padding: 5px; }
  .device-dark .screen, .drop .screen { border-radius: 13px; }
  .drop .device { padding: 5px; border-radius: 18px; }
  .file { bottom: 12px; }
  .pill { gap: 12px; padding: 12px 26px 12px 16px; }
  .pill canvas { width: 106px; height: 82px; }
  pre { font-size: 11.5px; }
  .code { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.bento .card.soon { background: transparent; border: 2px dashed rgba(23, 18, 31, .18); box-shadow: none; }

/* ================= Motion ================= */
/* Hero */
.hero { padding-top: 136px; overflow: clip; }
.hero::before { display: none; }
.glow { position: absolute; inset: 0 0 auto; height: 1000px; z-index: -1; pointer-events: none; filter: blur(60px); }
.glow i { position: absolute; border-radius: 50%; opacity: .75; }
.glow i:nth-child(1) { left: 22%; top: 46%; width: 46vw; height: 30vw; background: rgba(156, 140, 255, .55); animation: drift1 18s ease-in-out infinite alternate; }
.glow i:nth-child(2) { left: 52%; top: 40%; width: 32vw; height: 24vw; background: rgba(255, 190, 170, .8); animation: drift2 22s ease-in-out infinite alternate; }
.glow i:nth-child(3) { left: 36%; top: 64%; width: 30vw; height: 18vw; background: rgba(120, 180, 255, .35); animation: drift3 16s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, -4vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, 5vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(6vw, -6vw) scale(1.2); } }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 7px 14px 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--soft); animation: rise .8s var(--out) both; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 0 rgba(60, 207, 122, .5); animation: ping 2s infinite; }
.hero h1 { font-size: clamp(46px, 8vw, 108px); }
.hero > .lede { width: min(720px, 100% - 40px); }
.tilt { perspective: 1800px; perspective-origin: 50% 0; animation: deviceIn 1.3s var(--out) .25s both; }
.tilt .device { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); will-change: transform; }
@keyframes deviceIn { from { opacity: 0; transform: translateY(90px); } }

/* Headlines arrive word by word, rising out of their line and sharpening. */
.js [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%) rotate(4deg); filter: blur(6px); opacity: 0; transition: transform .9s cubic-bezier(.2, .9, .25, 1.06), filter .7s var(--out), opacity .5s var(--out); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); transform-origin: 0 100%; }
.js [data-split].in .w > span { transform: none; filter: none; opacity: 1; }
.hero h1[data-split] { --base: 120ms; }

/* Reveals: up (default), zoom and a stagger inside groups. */
.js .reveal { transition-delay: var(--d, 0ms); }
.js .reveal.zoom { transform: translateY(40px) scale(.94); filter: blur(4px); transition: opacity .9s var(--out), transform 1s var(--out), filter .8s var(--out); transition-delay: var(--d, 0ms); }
.js .reveal.zoom.in { transform: none; filter: none; }

/* Nav */
.nav { animation: navIn .9s var(--out) .1s both; overflow: hidden; }
@keyframes navIn { from { transform: translateY(-80px); } }
.nav .progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--violet-2), #f2a985); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); opacity: .9; }

/* Buttons catch the light. */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--out); }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost::after { background: linear-gradient(105deg, transparent 30%, rgba(106, 82, 232, .14) 50%, transparent 70%); }

/* Big dark chapters grow to the page as they arrive. */
.arts, .story { transform: scale(var(--grow, 1)); transform-origin: 50% 0; }
.arts { background: radial-gradient(520px 380px at var(--sx, 50%) var(--sy, 30%), rgba(140, 115, 255, .22), transparent 70%), radial-gradient(60% 34% at 50% 30%, rgba(106, 82, 232, .42), transparent 72%), #140f2b; }
.arts .kicker, .story .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; background: rgba(179, 164, 255, .12); }
.story .kicker { background: rgba(242, 169, 133, .12); }

/* Tabs: the chosen one glows. */
.art-tabs button { position: relative; overflow: hidden; }
.art-tabs button[aria-pressed="true"] i { animation: ping 1.8s infinite; box-shadow: 0 0 0 0 var(--dot); }
.art-tabs button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--dot, #b3a4ff); transform: scaleX(0); transition: transform .5s var(--spring); }
.art-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.art-tabs button:nth-child(1) { --dot: #ff6a4a; } .art-tabs button:nth-child(2) { --dot: #6ea8ff; } .art-tabs button:nth-child(3) { --dot: #6fd0ff; } .art-tabs button:nth-child(4) { --dot: #5bd68a; } .art-tabs button:nth-child(5) { --dot: #bef264; }

/* The Artifact's body changes with a soft slide. */
.artifact [data-art]:not([hidden]) { animation: artIn .55s var(--out); }
@keyframes artIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.chat .msg, .chat .chip { animation: msgIn .6s var(--out) both; }
.chat .msg.ai { animation-delay: .25s; }
.chat .chip { animation-delay: .45s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.claude { transition: transform .8s var(--out), box-shadow .8s; }

/* Cards lean toward the pointer, with a glint. */
.card, .ears li, .how li { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .5s var(--out), box-shadow .4s; position: relative; }
.js .card.reveal:not(.in), .js .ears li.reveal:not(.in), .js .how li.reveal:not(.in) { transform: perspective(1000px) translateY(46px) rotateX(8deg); }
.card::after, .ears li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .35), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover::after, .ears li:hover::after { opacity: 1; }
.card:hover, .ears li:hover { --lift: -4px; }
/* The island in each card drops from its top edge, as the notch opens. */
.js .card .shot img { transform: translateY(-36px) scaleY(.82); opacity: 0; filter: blur(6px) drop-shadow(0 18px 22px rgba(20, 8, 40, .3)); transition: transform 1s cubic-bezier(.3, 1.35, .45, 1), opacity .5s var(--out), filter .7s var(--out); transition-delay: calc(var(--d, 0ms) + 180ms); }
.js .card.in .shot img { transform: none; opacity: 1; filter: drop-shadow(0 18px 22px rgba(20, 8, 40, .3)); }
.js .card.in:hover .shot img { transform: scale(1.025); transition-delay: 0ms; }
.together .shot img { transition: transform 1s cubic-bezier(.3, 1.35, .45, 1), opacity .5s; }
.js .together:not(.in) .shot img { transform: translateY(-40px) scaleY(.8); opacity: 0; }
.card.soon h3 { background: linear-gradient(90deg, var(--soft), var(--violet), var(--soft)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 4s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* Closed-notch row: the island's ears play the app's own entrance (scripted in motion.js). */
.ear img { will-change: transform, filter; }

/* Story: the active number fills. */
.steps .n { transition: background .4s, color .4s, transform .5s var(--spring); }
.steps li.on .n { background: #f2a985; color: var(--night); transform: scale(1.15); }
.steps li h3, .steps li p { transition: transform .6s var(--out); }
.steps li:not(.on) h3, .steps li:not(.on) p { transform: translateX(-6px); }

/* Shelf: the file bobs until it is picked up. */
.file:not(.dragging):not(.gone) svg { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-2deg); } }

/* The pill floats. */
.pill { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* FAQ answers open smoothly (height scripted in motion.js). */
details .answer { overflow: hidden; }
summary { transition: color .2s; }
summary:hover { color: var(--violet); }

/* Final */
.final { position: relative; overflow: clip; }
.final img { animation: float 5s ease-in-out infinite; }
.final::before { content: ""; position: absolute; left: 50%; top: 120px; width: 260px; height: 260px; translate: -50% 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(156, 140, 255, .0), rgba(156, 140, 255, .55), rgba(255, 190, 170, .55), rgba(156, 140, 255, 0)); filter: blur(40px); animation: spin 12s linear infinite; z-index: -1; }
.final { isolation: isolate; }
@keyframes spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-split] .w > span, .js .card .shot img, .js .together .shot img { transform: none !important; filter: none !important; opacity: 1 !important; }
  .tilt .device, .arts, .story { transform: none !important; }
  .js .card.reveal, .js .ears li.reveal, .js .how li.reveal { transform: none !important; }
}
.js .card.reveal.in, .js .ears li.reveal.in, .js .how li.reveal.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
