/* Perch landing page. The font and the accent come from the app (apps/island/src/styles/theme.css). */
:root {
  --page: #000;
  --panel: #fff;
  --ink: #0a0a0c;
  --grey: #6b6b76;
  --chip: #f1f1f4;
  --line: rgb(255 255 255 / 0.1);
  /* The brand colour: the app's green accent, and its darker partner for text on white. */
  --accent: #35d07f;
  --accent-strong: #178a4f;
  --spring: cubic-bezier(0.22, 1.15, 0.36, 1);
  --fade: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--page);
  color: #fff;
  font-family: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; background: var(--page); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-row-center { justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
/* The logo: the notch hanging from the top of a green tile, with a live dot. Drawn by main.js. */
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark .logo-notch { transform-origin: 50% 0; transition: transform 0.5s var(--spring); }
.brand:hover .logo-notch { transform: scale(1.18, 1.3); }
.brand-mark .logo-dot { transform-box: fill-box; transform-origin: center; animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; transform: scale(0.7); } }
.nav-links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav-links a { opacity: 0.85; transition: opacity var(--fade); }
.nav-links a:hover { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 0.3s var(--spring), background var(--fade); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-brand { background: var(--accent); color: var(--ink); }
.btn-brand:hover { background: #4be092; }
.btn-light { background: #fff; color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.win { width: 14px; height: 14px; fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Panels */
main.wrap { padding-top: 64px; }
.panel {
  position: relative;
  background: var(--panel);
  color: var(--ink);
  border-radius: 56px;
  padding: 76px 60px;
  overflow: hidden;
  margin-bottom: 20px;
}
@supports (corner-shape: superellipse(1.5)) {
  .panel, .price-card, .shot img, .desk { corner-shape: superellipse(1.5); }
}
h1, h2 { letter-spacing: -0.045em; line-height: 1.02; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 78px); }
h2 { font-size: clamp(34px, 5vw, 54px); }
.kicker, .label { font-weight: 600; color: var(--grey); font-size: 16px; margin-bottom: 14px; }
.label { color: var(--accent-strong); }
.lead, .body { color: var(--grey); max-width: 600px; margin-top: 18px; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { background: var(--chip); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: #2c2c33; }
/* Three cards after the coding agents, dark against the white sections around them, with no
   edge: a small drawing of the notch on solid white, a title and two
   lines. A soft light follows the pointer over a card (main.js sets --mx and --my). They rise
   in one after another (main.js numbers them). */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 80px 0 100px; }
.more-card { --mx: 50%; --my: 0%; position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 12px 12px 30px; border-radius: 40px; overflow: hidden; background: linear-gradient(180deg, #131316, #0a0a0c 60%); color: #fff; box-shadow: 0 30px 60px -30px rgb(53 208 127 / 0); transition: transform 0.35s var(--spring), box-shadow var(--fade); }
.more-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgb(53 208 127 / 0.13), transparent 60%); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.more-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(53 208 127 / 0.35); }
.more-card:hover::before { opacity: 1; }
.more-card h3 { margin: 26px 20px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.more-card > p { margin: 10px 20px 0; color: #9a9aa3; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.more-art { position: relative; height: 200px; overflow: hidden; border-radius: 30px; background: #fff; }
/* The notch, hanging from the top edge of the picture. */
.mini { position: absolute; top: 0; left: 50%; width: min(86%, 300px); padding: 12px 14px 14px; border-radius: 0 0 22px 22px; background: #000; color: #f1f1f4; font-size: 12px; line-height: 1; transform: translateX(-50%); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.1), 0 0 0 1px rgb(255 255 255 / 0.05), 0 22px 40px -18px rgb(0 0 0 / 0.45); transition: transform 0.45s var(--spring); }
.more-card:hover .mini { transform: translateX(-50%) translateY(6px); }
.mini p { display: flex; align-items: center; gap: 9px; }
.mini-title { margin: 2px 4px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; }
.mini-field { height: 32px; margin-bottom: 8px; padding: 0 10px; border-radius: 10px; background: #16161a; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); color: #fff; }
.mini-field svg { width: 13px; height: 13px; fill: none; stroke: #8a8a94; stroke-width: 1.6; stroke-linecap: round; }
.caret { width: 1.5px; height: 14px; margin-left: -7px; background: var(--accent); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mini-key { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: #2a2a31; color: #a9a9b2; font-size: 10px; font-weight: 600; }
.mini-row { height: 30px; padding: 0 8px; border-radius: 9px; color: #c9c9d1; }
.mini-row.on { background: #17171c; color: #fff; }
.mini-row em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #6b6b76; }
.ic { flex: none; width: 15px; height: 15px; border-radius: 5px; background: var(--c); }
.ln { display: block; width: var(--w); height: 6px; border-radius: 3px; background: #3a3a42; }
.mini-row.on .ln { background: #d6d6de; }
.pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #2a2a31; color: #fff; font-size: 10.5px; font-weight: 600; }
.pill.done { background: rgb(53 208 127 / 0.16); color: var(--accent); }


/* Hero */
/* Two columns in one screen: the copy on the left, a recording of the real app on the right. */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  height: calc(100svh - 84px); min-height: 560px; max-height: 900px;
  padding: 28px 28px 28px 60px;
}
/* The mascot hangs above the copy, in line with its left edge. */
.hero .mascot.hang { left: 60px; margin-left: 0; }
.hero-copy { padding-top: 110px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); }
.hero .btn { margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 13px; color: var(--grey); }
/* The recording keeps its own shape, as wide as the column or as tall as the screen allows. */
.desk { width: min(100%, calc((100svh - 140px) * 0.9375)); aspect-ratio: 15 / 16; justify-self: center; border-radius: 36px; overflow: hidden; background: #178a4f; }
.desk video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (max-height: 720px) {
  .hero .mascot.hang { --mw: 96px !important; }
  .hero-copy { padding-top: 76px; }
  .hero h1 { font-size: clamp(36px, 4.4vw, 52px); }
  .hero .lead { font-size: 15.5px; margin-top: 12px; }
  .hero .btn { margin-top: 18px; }
}
/* main.js grows it a little as it scrolls into place. */
.desk { transform-origin: 50% 100%; scale: var(--grow, 1); }

/* The mascot hangs by its hands from the top edge of a panel. Drawn by main.js. */
.mascot { width: var(--mw, 170px); line-height: 0; }
.mascot svg { width: 100%; display: block; overflow: visible; }
.mascot.hang { position: absolute; top: 0; left: 50%; margin-left: calc(var(--mw) / -2); transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; translate: 0 -105%; transition: translate 1s var(--spring) 0.25s; }
/* It drops in from above when its panel comes into view. */
.in .mascot.hang { translate: 0 0; }
.mascot.hang.left { left: 150px; animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.mascot .pupil { transition: transform 0.12s ease-out; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
.mascot .waving { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(16deg); } }

/* Screenshots of the real app, each on the backdrop it was taken over */
.shots { display: grid; gap: 22px; align-content: start; }
.shots.two { grid-template-columns: 0.82fr 1fr; align-items: start; margin-top: 44px; }
.shot img { width: 100%; border-radius: 22px; box-shadow: 0 16px 36px rgb(10 70 45 / 0.22); transition: transform 0.5s var(--spring), box-shadow 0.4s ease; }
.shot:hover img { transform: translateY(-5px) scale(1.015); box-shadow: 0 24px 48px rgb(10 70 45 / 0.3); }
.shot figcaption { font-size: 13.5px; color: var(--grey); margin-top: 12px; text-align: center; }

/* Feature layouts */
.split { display: grid; grid-template-columns: 1fr 0.95fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.custom { padding-top: 190px; }
.statement { padding: 110px 20px; text-align: center; }
.statement em { font-style: normal; color: var(--accent); }
.statement p { max-width: 720px; margin: 0 auto; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; text-wrap: balance; }

/* Pricing: one card. The number of PCs is chosen at its top, and the rest of it follows. */
.pricing { padding: 110px 0 100px; text-align: center; }
.pricing .label { color: var(--accent); }
.pricing .body { margin-inline: auto; color: #a9a9b2; }
/* A soft green light behind the card. */
.price-stage { position: relative; margin-top: 56px; padding: 0 0 36px; }
.price-stage::before { content: ""; position: absolute; inset: 4% 0 0; max-width: 1180px; margin-inline: auto; background: radial-gradient(50% 50% at 50% 56%, rgb(53 208 127 / 0.62), rgb(53 208 127 / 0.2) 55%, transparent 100%); filter: blur(34px); pointer-events: none; }
/* The whole card is drawn a little smaller than its own sizes say; everything in it shrinks together. */
.price-card { position: relative; max-width: 940px; margin: 0 auto; padding: 0 44px 36px; background: #f7f7f7; color: var(--ink); border-radius: 44px; zoom: 0.84; }
/* Two columns under the notch: the choice and its price on the left, what comes with it and
   the checkout on the right, split by a thin line. One column on phones (see the 780px rule). */
.price-cols { display: grid; grid-template-columns: 1fr 1fr; }
.price-pick { display: flex; flex-direction: column; justify-content: center; padding: 8px 44px 8px 0; }
.price-buy { display: flex; flex-direction: column; padding: 8px 0 0 44px; border-left: 1px solid #e4e4e8; text-align: left; }
.price-head { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
/* The form sits at the foot of its column, level with the bottom of the price side. */
.price-buy #buy-form { margin-top: auto; }
.price-buy .fine { text-align: center; text-wrap: balance; }
/* The notch, hanging from the card's top edge. Its two flares are the pieces before and after it. */
.price-tab { --flare: 16px; position: relative; display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 30px; padding: 11px 24px 13px 20px; background: var(--ink); color: #fff; border-radius: 0 0 24px 24px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.price-tab::before, .price-tab::after { content: ""; position: absolute; top: 0; width: var(--flare); height: var(--flare); }
.price-tab::before { right: calc(100% - 0.5px); background: radial-gradient(circle at 0 100%, transparent calc(var(--flare) - 0.5px), var(--ink) var(--flare)); }
.price-tab::after { left: calc(100% - 0.5px); background: radial-gradient(circle at 100% 100%, transparent calc(var(--flare) - 0.5px), var(--ink) var(--flare)); }
.price-tab .brand-mark { width: 28px; height: 28px; }
.tiers { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; background: #fff; border-radius: 999px; }
/* The highlight slides from one option to the next; main.js places it. */
.tiers .thumb { position: absolute; top: 0; left: 0; border-radius: 999px; background: var(--ink); }
.tiers.ready .thumb { transition: transform 0.5s var(--spring), width 0.5s var(--spring); }
.tier { position: relative; z-index: 1; padding: 11px 6px; border-radius: 999px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; transition: color var(--fade); }
.tier:not(.on):hover { color: var(--grey); }
.tier.on { color: #fff; }

/* The launch offer over the choice of PCs: a badge, how many places are left, and a bar that
   shrinks as they go. The bar shows once /api/launch has answered (main.js adds .known). */
.launch { margin: -12px 0 20px; display: grid; justify-items: center; gap: 10px; }
.launch-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--grey); }
.launch-badge { padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; transition: opacity 0.15s ease, transform 0.3s var(--spring), background var(--fade), color var(--fade); }
.launch.ended .launch-badge { background: #e4e4e8; color: var(--grey); }
.launch-bar { width: min(220px, 70%); height: 6px; border-radius: 999px; background: #e4e4e8; overflow: hidden; opacity: 0; transition: opacity 0.35s ease; }
.launch.known:not(.ended) .launch-bar { opacity: 1; }
.launch-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.8s var(--spring); }
.launch-line .swap.out { transform: translateY(4px); }

.price { display: flex; align-items: center; justify-content: center; height: 104px; margin-top: 22px; font-size: 104px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .was { position: relative; margin-left: 18px; font-size: 38px; font-weight: 500; letter-spacing: -0.04em; color: #9a9aa3; }
/* The strike is drawn, since a line-through does not reach into the rolling digits. */
.price .was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; border-radius: 2px; background: currentColor; }
/* Beats .swap's display, so one PC has no gap where a second price would be. */
.price .was[hidden] { display: none; }
/* A price rolls to its new value digit by digit, like an odometer: each digit is a strip of
   0 to 9 behind a one-digit window, slid to its figure. A digit gained or lost opens or
   closes its window. main.js builds them. */
.roll-face { display: inline-flex; align-items: center; height: 1em; line-height: 1; }
/* 1ch is the font's own digit width (the price uses tabular figures), so no digit is cut;
   the negative margin keeps the price's tight letter-spacing. */
.roll-digit { display: inline-block; width: 1ch; margin-right: -0.06em; height: 1em; overflow: hidden; mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); transition: width 0.45s var(--spring), margin-right 0.45s var(--spring), opacity 0.3s ease; }
.roll-strip { display: flex; flex-direction: column; transition: transform 0.6s var(--spring); }
.roll-strip > span { display: block; height: 1em; text-align: center; }
.roll-digit.entering, .roll-digit.leaving { width: 0; margin-right: 0; opacity: 0; }
.roll-face.still :is(.roll-digit, .roll-strip) { transition: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A piece that changes with the choice: main.js adds .out, rewrites it and takes .out off. */
.swap { display: inline-block; transition: opacity 0.15s ease, transform 0.3s var(--spring); }
.swap.out { opacity: 0; transform: translateY(0.09em); }
.saving { margin-top: 22px; padding: 15px 16px; background: #fff; border-radius: 18px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.saving .swap.out, .checks .swap.out { transform: translateY(4px); }
.checks { margin: 18px 0 28px; display: grid; gap: 13px; font-size: 15px; line-height: 1.35; text-align: left; }
.checks li { display: flex; align-items: center; gap: 13px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a9a9b2' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='8.6'/%3E%3Cpath d='M6.6 10.3l2.3 2.3 4.6-4.9'/%3E%3C/svg%3E") center / contain no-repeat; }
#buy-form { display: flex; flex-direction: column; }
/* The email the key goes to: a labelled, outlined field, so it reads as something to fill in. */
.field-label { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.req { padding: 3px 9px; border-radius: 999px; background: #ececf0; color: var(--grey); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: background var(--fade), color var(--fade); }
.field { display: flex; align-items: center; height: 56px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #d6d6dd; transition: box-shadow var(--fade); }
.field:hover { box-shadow: inset 0 0 0 1.5px #b9b9c2; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgb(53 208 127 / 0.18); }
.field svg { flex: none; width: 19px; height: 19px; margin-left: 20px; fill: none; stroke: #9a9aa3; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--fade); }
.field:focus-within svg { stroke: var(--ink); }
#buy-email { flex: 1; min-width: 0; height: 100%; padding: 0 22px 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; }
#buy-email::placeholder { color: #a9a9b2; }
/* A missing or mistyped address: the field, its tag and the note under it turn red. */
#buy-form.wrong .field { box-shadow: inset 0 0 0 2px #c93a2e, 0 0 0 4px rgb(201 58 46 / 0.14); }
#buy-form.wrong .req { background: #fbe4e1; color: #c93a2e; }
#buy { margin-top: 16px; padding: 17px 24px; font-family: inherit; }
.buy-note { margin: 9px 2px 0; font-size: 12.5px; letter-spacing: -0.01em; line-height: 1.4; color: var(--grey); text-wrap: pretty; transition: color var(--fade); }
.buy-note.wrong { color: #c93a2e; }
/* Links in text only; a button keeps its own colours. */
.faq a, .page a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fine { font-size: 13px; color: #6b6b76; margin-top: 16px; }
.price-card .fine { margin-top: 4px; }
.price-card .fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color var(--fade); }
.price-card .fine a:hover { color: var(--ink); }

/* The plain pages: thanks and privacy */
.page { max-width: 720px; margin: 0 auto 20px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); }
.page h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 34px; }
.page p, .page li { color: var(--grey); margin-top: 12px; }
.page ul { list-style: disc; padding-left: 22px; }
.page a:not(.btn) { color: var(--accent-strong); }
.page .btn { margin-top: 26px; text-decoration: none; }
/* Beats `.page a` above, which would paint the button's text in the accent colour. */
.page .btn-brand { color: var(--ink); }
.page-cta { display: flex; justify-content: center; }

/* Final call */
.final { text-align: center; padding-top: 300px; }
.final .body { margin-inline: auto; }
.final .btn { margin-top: 28px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1fr; gap: 48px; padding: 100px 20px; align-items: start; }
.faq .body { color: #a9a9b2; }
.faq-list { display: grid; gap: 10px; }
details { background: #131316; border-radius: 16px; padding: 0 20px; transition: background var(--fade); }
details:hover { background: #19191d; }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; gap: 14px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--accent); font-weight: 400; display: inline-block; transition: transform 0.35s var(--spring); }
details[open] summary::before { transform: rotate(45deg); }
details p { color: #a9a9b2; padding: 0 0 20px 26px; font-size: 15.5px; }
/* main.js folds an answer open and shut by animating the card's height; the answer fades with it. */
details { overflow: hidden; }
details[open] p { animation: answer 0.5s ease 0.08s both; }
@keyframes answer { from { opacity: 0; transform: translateY(-8px); } }
details.closing summary::before { transform: none; }
details.closing p { opacity: 0; transition: opacity 0.2s ease; }
details[open]:not(.closing) { background: #19191d; }

/* Footer */
/* The footer: the brand and its links, a large faded wordmark, and a slim bar of small print. */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 64px 0 28px; background: radial-gradient(60% 120% at 50% 100%, rgb(53 208 127 / 0.08), transparent 70%); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: grid; justify-items: start; gap: 14px; }
.footer-brand p { color: #a9a9b2; font-size: 15px; }
.footer-brand .btn { margin-top: 6px; }
.footer-links { display: flex; gap: 72px; font-size: 15px; }
.footer-links > div { display: grid; align-content: start; gap: 11px; }
.footer-head { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b76; }
.footer-links a { width: fit-content; color: #c9c9d1; transition: color var(--fade), transform 0.3s var(--spring); }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-links .footer-free { color: var(--accent); }
.footer-links .footer-free:hover { color: #4be092; }
/* The name, very large and fading into the page, cut off where the bar's line begins. */
.footer-word { height: 0.74em; overflow: hidden; margin-top: 48px; font-size: clamp(96px, 23vw, 300px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.9; text-align: center; background: linear-gradient(180deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.01) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: #8a8a94; font-size: 13.5px; }
.footer-bottom .dot { margin: 0 8px; }
.footer-bottom a { color: #c9c9d1; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; transition: color var(--fade), text-decoration-color var(--fade); }
.footer-bottom a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Words come up one after another. main.js wraps each word and numbers it with --i. */
.w { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(8px); transition: opacity 0.6s ease, transform 0.8s var(--spring), filter 0.6s ease; transition-delay: calc(var(--i) * var(--step, 45ms) + var(--wait, 0ms)); }
.in .w { opacity: 1; transform: none; filter: none; }
.statement { --step: 55ms; }
.hero h1 { --step: 80ms; --wait: 150ms; }

/* Pieces that follow their section in, one after another (--i is set by main.js) */
:is(.reveal, .stagger):not(.in) :is(.more-card, .chip, .shot, .kicker, .label, .lead, .body, .facts, .desk, .btn, .checks li, details, .price-card) { opacity: 0; }
.in :is(.more-card, .chip, .shot, .kicker, .label, .lead, .body, .facts, .desk, .btn, .checks li, details, .price-card) { animation: rise 0.8s var(--spring) both; animation-delay: calc(var(--i, 0) * 55ms + var(--after, 250ms)); }
.in .chip { animation-name: pop; --after: 450ms; }
.in .shot { --after: 500ms; animation-duration: 1s; }
.in .shot:nth-child(2) { --after: 640ms; }
.hero .lead { --after: 650ms; }
.hero .btn { --after: 800ms; }
.hero .facts { --after: 900ms; }
.hero .desk { --after: 1000ms; animation-duration: 1.1s; }
.in .price-card { --after: 200ms; }
.in .checks li, .in details { --after: 350ms; }
.reveal:not(.in) .thumb { opacity: 0; }
.in .thumb { animation: fade 0.5s ease 250ms both; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.9); } }
/* Once the entrance has played, a button's own hover transform must work again. */
.settled .btn { animation: none; }

/* Sections fade in as they come into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.9s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- The "Get it free" page (free.html) ---------- */
/* The menu's "Get it free": a green pill with a gift, a soft glow that breathes, and a
   streak of light that runs across it every few seconds. */
.nav-links .nav-free {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  margin: -7px 0; padding: 7px 14px 7px 11px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgb(53 208 127 / 0.22), rgb(23 138 79 / 0.32));
  box-shadow: inset 0 0 0 1px rgb(53 208 127 / 0.55), 0 0 18px -4px rgb(53 208 127 / 0.55);
  color: #b9f5d4; font-weight: 600; opacity: 1;
  animation: free-glow 3s ease-in-out infinite;
  transition: transform 0.4s var(--spring), background var(--fade), color var(--fade);
}
.nav-links .nav-free:hover { transform: translateY(-1px) scale(1.04); color: #fff; background: linear-gradient(135deg, rgb(53 208 127 / 0.34), rgb(23 138 79 / 0.46)); }
.nav-free::before {
  content: ""; position: absolute; inset: 0 auto 0 -60%; z-index: -1; width: 50%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.32), transparent);
  transform: skewX(-20deg); animation: free-shine 4.5s ease-in-out infinite;
}
.nav-free .gift { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 80%; animation: free-wiggle 4.5s ease-in-out infinite; }
.nav-free:hover .gift { stroke: #fff; }
@keyframes free-glow { 50% { box-shadow: inset 0 0 0 1px rgb(53 208 127 / 0.8), 0 0 26px -2px rgb(53 208 127 / 0.75); } }
@keyframes free-shine { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
@keyframes free-wiggle { 0%, 60%, 100% { transform: none; } 66% { transform: rotate(-12deg); } 72% { transform: rotate(10deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); } }
.x-logo { width: 15px; height: 15px; fill: currentColor; }
.free-badge { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; background: #e3f8ec; color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.free-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 70px 60px; }
.free-hero h1 { font-size: clamp(38px, 4.6vw, 60px); --step: 80ms; --wait: 150ms; }
.free-hero .lead strong { color: var(--ink); font-weight: 600; }
.free-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.free-actions.center { justify-content: center; }
.free-ghost { box-shadow: inset 0 0 0 1.5px rgb(10 10 12 / 0.14); color: var(--ink); }
.free-ghost:hover { background: var(--chip); }
.btn-dark:hover { background: #24242a; }
.free-hero .lead { --after: 650ms; }
.free-hero .btn { --after: 800ms; }
.free-hero .facts { --after: 900ms; }

/* The example post, dark like X's own, on a soft green stage. */
.free-stage { position: relative; display: grid; gap: 14px; padding: 34px; border-radius: 40px; background: radial-gradient(120% 90% at 20% 0%, #d9f7e7, #bdeed3 55%, #9fe3bf); }
.stagger:not(.in) .free-stage { opacity: 0; }
.in .free-stage { animation: rise 1.1s var(--spring) 1000ms both; }
.free-post { background: #000; color: #e7e9ea; border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 24px 50px -18px rgb(10 70 45 / 0.45); }
.free-post-head { display: flex; align-items: center; gap: 10px; }
.free-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, #35d07f, #178a4f); color: #000; font-weight: 700; }
.free-who { display: grid; line-height: 1.25; font-size: 14px; }
.free-who span { color: #71767b; }
.free-post-text { margin-top: 10px; font-size: 15px; line-height: 1.45; }
.free-quoted { margin-top: 12px; border: 1px solid #2f3336; border-radius: 16px; overflow: hidden; }
.free-quoted-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px 8px; font-size: 13px; }
.free-quoted-head .brand-mark { width: 18px; height: 18px; }
.free-quoted-head span:last-child { color: #71767b; }
.free-quoted img { width: 100%; }
.free-metrics { display: flex; justify-content: space-between; margin-top: 12px; padding: 0 4px; color: #71767b; font-size: 13px; font-variant-numeric: tabular-nums; }
.free-metrics span { display: inline-flex; align-items: center; gap: 6px; }
.free-metrics svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.free-metrics i { font-style: normal; min-width: 3ch; }
.free-views { color: #e7e9ea; transition: color 0.4s ease; }
.done .free-views { color: var(--accent); }
.free-goal { background: rgb(255 255 255 / 0.7); border-radius: 18px; padding: 12px 16px 14px; backdrop-filter: blur(6px); }
.free-goal-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.free-goal-row b { color: var(--ink); }
.free-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: rgb(10 10 12 / 0.08); overflow: hidden; }
.free-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #35d07f, #178a4f); }
.free-unlocked { position: absolute; right: 22px; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.5); opacity: 0; transform: translateY(-8px) scale(0.85); transition: opacity 0.3s ease, transform 0.6s var(--spring); }
.free-unlocked span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 13px; }
.done .free-unlocked { opacity: 1; transform: none; }

/* How it works */
.free-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; padding: 0; list-style: none; }
.free-step { display: flex; flex-direction: column; padding: 28px; border-radius: 30px; background: var(--chip); }
.free-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 700; }
.free-step h3 { margin-top: 18px; font-size: 22px; letter-spacing: -0.03em; }
.free-step p { margin-top: 8px; color: var(--grey); font-size: 15.5px; text-wrap: pretty; }
.free-step p b { color: var(--ink); font-weight: 600; }
.free-step p a, .free-link { color: var(--accent-strong); font-weight: 600; }
.free-link { margin-top: auto; padding-top: 16px; }
.free-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.free-meter { margin-top: auto; height: 8px; border-radius: 999px; background: rgb(10 10 12 / 0.08); overflow: hidden; }
.free-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #35d07f, #178a4f); transition: width 2.2s cubic-bezier(0.3, 0.7, 0.2, 1) 900ms; }
.in .free-meter span { width: 100%; }
.reveal:not(.in) :is(.free-step, .free-template) { opacity: 0; }
.in :is(.free-step, .free-template) { animation: rise 0.8s var(--spring) both; animation-delay: calc(var(--i, 0) * 90ms + 350ms); }

/* Ready-made posts */
.free-ideas { padding-top: 180px; text-align: center; }
.free-ideas .body { margin-inline: auto; }
.free-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; text-align: left; }
.free-template { display: flex; flex-direction: column; padding: 24px; border-radius: 28px; background: var(--ink); color: #e7e9ea; transition: transform 0.5s var(--spring); }
.free-template:hover { transform: translateY(-4px); }
.free-tag { color: var(--accent); font-size: 13px; font-weight: 600; }
.free-words { margin-top: 10px; font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.free-template-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.free-copy-btn, .free-post-btn { flex: 1; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center; transition: background var(--fade), color var(--fade); }
.free-copy-btn { background: #1c1c21; color: #fff; }
.free-copy-btn:hover { background: #26262c; }
.free-copy-btn.done { background: #e3f8ec; color: var(--accent-strong); }
.free-post-btn { background: var(--accent); color: var(--ink); }
.free-post-btn:hover { background: #4be092; }
.free-tips { justify-content: center; margin-top: 30px; }

/* The home page's pointer to it, under the prices. */
/* As wide as the price card is drawn (940px at its 0.84 zoom): a gift tile, two lines, and a
   pill that leads to the free page. */
.free-strip { display: flex; align-items: center; gap: 16px; max-width: 790px; margin: 18px auto 0; padding: 14px 14px 14px 16px; border-radius: 26px; background: linear-gradient(120deg, rgb(53 208 127 / 0.1), rgb(53 208 127 / 0.02) 55%), #111113; box-shadow: inset 0 0 0 1px rgb(53 208 127 / 0.2); color: #a9a9b2; text-align: left; transition: transform 0.3s var(--spring), box-shadow var(--fade), background var(--fade); }
.free-strip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(53 208 127 / 0.45), 0 14px 40px -18px rgb(53 208 127 / 0.5); }
.free-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: rgb(53 208 127 / 0.14); }
.free-icon .gift { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 80%; animation: free-wiggle 4.5s ease-in-out infinite; }
.free-copy { display: grid; gap: 3px; flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.free-copy b { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.free-strip .go { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 11px 16px 11px 18px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 14.5px; font-weight: 600; transition: background var(--fade); }
.free-strip:hover .go { background: #4be092; }
.free-strip .go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--spring); }
.free-strip:hover .go svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .more { grid-template-columns: 1fr; margin: 48px 0 64px; }
  .free-hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .free-steps, .free-templates { grid-template-columns: 1fr; }
  .free-stage { padding: 20px; border-radius: 30px; }
  .free-unlocked { right: 14px; top: 10px; }
  /* Beats the phone rule for .panel further down, so the mascot has room. */
  .panel.free-ideas { padding-top: 170px; }
  /* On a narrow screen the pill drops under the words and spans the strip. */
  .free-strip { flex-wrap: wrap; }
  .free-copy { flex-basis: calc(100% - 62px); }
  .free-strip .go { flex: 1 0 100%; justify-content: center; }
}

@media (max-width: 780px) {
  .panel { border-radius: 34px; padding: 48px 24px; }
  .hero { grid-template-columns: 1fr; height: auto; max-height: none; padding: 24px; gap: 32px; }
  .hero .mascot.hang { left: 24px; --mw: 120px !important; }
  .hero-copy { padding-top: 130px; }
  .desk { border-radius: 24px; width: 100%; }
  /* The menu folds away on phones, except the offer. */
  .nav-links a:not(.nav-free) { display: none; }
  .nav-links .nav-free { font-size: 13.5px; padding: 6px 12px 6px 10px; }
  .split, .shots.two, .faq { grid-template-columns: 1fr; }
  .price-card { max-width: 440px; padding: 0 20px 22px; border-radius: 38px; zoom: 0.94; }
  .price-cols { grid-template-columns: 1fr; }
  .price-pick { padding: 0; }
  .price-buy { margin-top: 26px; padding: 24px 0 0; border-left: 0; border-top: 1px solid #e4e4e8; }
  .price { font-size: 92px; }
  .price .was { margin-left: 14px; font-size: 34px; }
  .split.flip > :first-child { order: 0; }
  .custom { padding-top: 170px; }
  .mascot.hang.left { left: 40px; --mw: 110px !important; }
  .final { padding-top: 260px; }
  .final .mascot { --mw: 190px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .desk { scale: 1; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
