/*
 * Section layouts of the landing page (D60), in page order. Sizes and rhythm
 * follow the Space reference; see docs/design/reference-sites.md section 2.
 */

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; height: 100svh; min-height: 640px; }
.hero-inner { width: 100%; padding: 0 var(--gutter) 40px; will-change: opacity, transform; }
.hero-content { margin: 0 auto; max-width: 100%; width: fit-content; display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: rgb(var(--muted)); margin-bottom: 36px; }
.hero-title { font-size: clamp(40px, 10vw, 48px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
@media (min-width: 640px) { .hero-title { font-size: clamp(48px, 5.6vw, 76px); } }
.hero .lead { margin-top: 28px; }
.hero-actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; }
.hero-note {
  margin-top: 24px; font-size: 12px; letter-spacing: .025em; color: rgb(var(--fg) / .8);
  text-shadow: 0 0 3px rgb(var(--bg)), 0 0 8px rgb(var(--bg)), 0 0 14px rgb(var(--bg)), 0 0 22px rgb(var(--bg));
}

/* ---------- pinned demo ---------- */
.product { position: relative; }
.product-head { padding-top: clamp(72px, 12svh, 140px); }
.demo-track { position: relative; height: 290svh; margin-top: calc(-1 * clamp(8px, 3svh, 40px)); }
.demo-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 84px var(--gutter) clamp(16px, 3svh, 32px); }
.demo-stage { position: relative; flex: 1; min-height: 0; width: 100%; max-width: 1000px; margin: 0 auto; transform-origin: 50% 0%; will-change: opacity, transform; }
.is-reduced .demo-track { height: auto; }
.is-reduced .demo-sticky { position: relative; height: auto; padding-top: 48px; }
.is-reduced .demo-stage { flex: none; }

/* ---------- feature rows ---------- */
.heading-left { max-width: 42rem; }
.rows { position: relative; margin-top: 56px; }
@media (min-width: 640px) { .rows { margin-top: 64px; } }
.row {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 16px;
  padding: 28px 0; border-bottom: 1px solid rgb(var(--line) / .08);
}
.row:first-of-type { border-top: 1px solid rgb(var(--line) / .08); }
.row-no { font-size: 12px; color: rgb(var(--muted)); padding-top: 8px; }
.row h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; transition: transform .5s var(--ease); }
.row p { grid-column: 2; margin-top: 12px; max-width: 28rem; font-size: 15px; line-height: 1.625; color: rgb(var(--muted)); transition: color .5s var(--ease); }
@media (min-width: 640px) {
  .row { grid-template-columns: 2.75rem minmax(0, 1fr); padding: 36px 0; }
  .row h3 { font-size: 34px; line-height: 1.25; }
  .row-no { padding-top: 12px; }
}
@media (min-width: 1024px) {
  .row { grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 21rem); align-items: center; column-gap: 40px; }
  .row-no { padding-top: 0; }
  .row p { grid-column: 3; margin-top: 0; }
  .row:hover h3 { transform: translateX(8px); }
  .row:hover p { color: rgb(var(--fg)); }
}
.follow { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; display: none; will-change: transform; }
@media (min-width: 1024px) and (hover: hover) { .follow { display: block; } }
.follow-card {
  position: relative; width: 320px; height: 230px; margin: -128px 0 0 32px; border-radius: 22px; overflow: hidden;
  opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .35s var(--ease);
}
.follow[data-on] .follow-card { opacity: 1; transform: none; }
.is-reduced .follow { display: none; }

.link-cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .link-cards { grid-template-columns: 1fr 1fr; } }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; width: 100%;
  padding: 24px; border-radius: 24px; transition: transform .5s var(--ease);
}
@media (min-width: 640px) { .link-card { padding: 28px 32px; } }
.link-card:hover { transform: translateY(-2px); }
.link-card small { display: block; font-size: 14px; color: rgb(var(--muted)); }
.link-card b { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }
.circle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; flex: none; }

/* ---------- agent tabs ---------- */
.tabs-wrap { margin: 48px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; contain: inline-size; }
.tabs-wrap::-webkit-scrollbar { display: none; }
@media (max-width: 639px) {
  .tabs-wrap { -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); }
}
.tabs { display: flex; gap: 4px; width: max-content; margin: 0 auto; padding: 4px; border-radius: 999px; }
.tabs button { position: relative; display: flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgb(var(--muted)); transition: color .2s ease; overflow: hidden; }
.tabs button:hover, .tabs button[aria-selected="true"] { color: rgb(var(--fg)); }
.tab-pill, .tab-fill { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tab-pill { background: #fff; box-shadow: 0 1px 3px rgb(var(--shadow-ink) / .14), inset 0 1px 0 #fff; opacity: 0; transform: scale(.92); transition: opacity .25s ease, transform .4s var(--ease); }
.tabs button[aria-selected="true"] .tab-pill { opacity: 1; transform: none; }
.tab-fill { right: auto; width: 0; background: rgb(var(--fg) / .06); }
.tab-label { position: relative; }
.desk-box { margin: 32px auto 0; width: 100%; max-width: 1180px; display: flex; flex-direction: column; align-items: center; contain: inline-size; }

/* MacBook frame, drawn in CSS: black bezel with a notch, silver base. --bezel comes from tabs.js. */
.framed .mb-lid { position: relative; padding: var(--bezel) var(--bezel) calc(var(--bezel) * 2); border-radius: calc(var(--bezel) * 1.6) calc(var(--bezel) * 1.6) calc(var(--bezel) * .5) calc(var(--bezel) * .5); background: #050506;
  box-shadow: 0 0 0 1.5px #aeb0b4, 0 0 0 2.5px #d8d9dc, 0 30px 60px -30px rgb(15 17 22 / .4); }
.framed .desk { border-radius: calc(var(--bezel) * .45) calc(var(--bezel) * .45) 0 0; box-shadow: none; }
.framed .desk::after { display: none; }
.mb-base { display: none; }
.framed .mb-base { display: block; position: relative; width: 100%; height: var(--base); margin-top: -2px;
  border-radius: 3px 3px 48% 48% / 3px 3px 100% 100%; clip-path: inset(0 0 0 0 round 3px 3px 0 0);
  background: linear-gradient(180deg, #f4f5f7 0%, #e3e4e7 18%, #c9cacf 62%, #9a9ba0 82%, #6f7075 100%); box-shadow: 0 16px 24px -16px rgb(15 17 22 / .5); }
.framed .mb-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18.5%; height: 46%; transform: translateX(-50%); border-radius: 0 0 calc(var(--base) * .6) calc(var(--base) * .6) / 0 0 calc(var(--base) * .46) calc(var(--base) * .46);
  background: linear-gradient(180deg, #c3c4c8, #e2e3e6); box-shadow: inset 0 2px 3px -1px rgb(0 0 0 / .3); }

/* ---------- use cases ---------- */
.cases { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 1024px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; }
.case-art { display: flex; justify-content: center; padding: 32px 16px; background: rgb(var(--fg) / .025); }
@media (min-width: 640px) { .case-art { padding: 40px 16px; } }
.case-text { flex: 1; padding: 24px; border-top: 1px solid rgb(var(--line) / .06); }
@media (min-width: 640px) { .case-text { padding: 32px; } }
.case h3 { margin-top: 8px; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.governed {
  margin-top: 16px; border-radius: 28px; padding: 40px 24px;
  display: flex; flex-direction: column; gap: 32px;
}
@media (min-width: 640px) { .governed { padding: 48px 40px; } }
@media (min-width: 1024px) { .governed { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 64px; padding: 48px; } }
.governed h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
.governed p { margin-top: 16px; max-width: 36rem; line-height: 1.625; color: rgb(var(--muted)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; }

/* ---------- early access ---------- */
.plans { display: grid; gap: 16px; max-width: 72rem; margin: 48px auto 0; align-items: stretch; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); margin-top: 64px; } }
.plan { display: flex; flex-direction: column; border-radius: 28px; padding: 28px; }
@media (min-width: 640px) { .plan { padding: 32px; } }
.plan-hi { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(var(--fg) / .12), 0 32px 80px -32px rgb(var(--shadow-ink) / .45); }
.plan h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; }
.plan-sub { margin-top: 4px; font-size: 14px; color: rgb(var(--muted)); }
.plan-line { height: 1px; margin: 28px 0; background: rgb(var(--fg) / .07); }
.ticks { display: grid; gap: 12px; flex: 1; margin-bottom: 36px; font-size: 14px; line-height: 1.6; color: rgb(var(--muted)); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.plan-hi .ticks li::before { color: rgb(var(--fg)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } .faq-side { position: sticky; top: 112px; align-self: start; } }
.u { color: rgb(var(--fg)); text-decoration: underline; text-underline-offset: 4px; transition: opacity .2s ease; }
.u:hover { opacity: .7; }
.qa { border-top: 1px solid rgb(var(--line) / .08); }
.qa:last-child { border-bottom: 1px solid rgb(var(--line) / .08); }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; text-align: left; font-size: 16px; font-weight: 500; letter-spacing: -0.025em; }
@media (min-width: 640px) { .qa button { padding: 24px 0; font-size: 17px; } }
.qa button:hover { opacity: .7; }
.plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 999px; transition: transform .3s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: currentColor; border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] .plus { transform: rotate(45deg); }
.ans { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ease), opacity .4s var(--ease); }
.ans > p { min-height: 0; overflow: hidden; max-width: 42rem; padding-right: 56px; font-size: 15px; line-height: 1.625; color: rgb(var(--muted)); }
.qa button[aria-expanded="true"] + .ans, .qa:has(button[aria-expanded="true"]) .ans { grid-template-rows: 1fr; opacity: 1; }
.qa:has(button[aria-expanded="true"]) .ans > p { padding-bottom: 24px; }

/* ---------- sign-up ---------- */
.signup { position: relative; display: flex; align-items: center; min-height: 86svh; padding: 96px 0; scroll-margin-top: 96px; }
@media (min-width: 640px) { .signup { padding: 128px 0; } }
.signup-inner { display: flex; flex-direction: column; align-items: center; text-align: center; will-change: transform; }
.fan { position: relative; width: 100%; height: 96px; transform: scale(.5); transform-origin: top center; }
@media (min-width: 640px) { .fan { height: 192px; transform: none; } }
.fan-card {
  position: absolute; top: 0; left: 50%; width: 120px; margin-left: -60px; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px; text-align: left;
  border-radius: 15px; background: #fff;
  box-shadow: 0 0 0 .5px rgb(var(--shadow-ink) / .1), 0 24px 48px -18px rgb(var(--shadow-ink) / .45), 0 2px 4px rgb(var(--shadow-ink) / .06);
  opacity: 0; transform: translate3d(calc(var(--x) * .25), 48px, 0) rotate(0deg);
  transition: opacity .6s var(--ease), transform .9s cubic-bezier(.34, 1.4, .5, 1);
  transition-delay: calc(.1s + var(--n) * .07s);
}
.fan[data-entered] .fan-card { opacity: 1; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); }
.fan[data-entered] .fan-card:hover { transform: translate3d(var(--x), calc(var(--y) - 10px), 0) rotate(calc(var(--r) * .4)); transition-delay: 0s; transition-duration: .4s; }
.fan-card:nth-child(1) { --n: 0; --x: -224px; --y: 30px; --r: -13deg; }
.fan-card:nth-child(2) { --n: 1; --x: -112px; --y: 8px; --r: -6deg; }
.fan-card:nth-child(3) { --n: 2; --x: 0px; --y: 0px; --r: 0deg; z-index: 1; }
.fan-card:nth-child(4) { --n: 3; --x: 112px; --y: 8px; --r: 6deg; }
.fan-card:nth-child(5) { --n: 4; --x: 224px; --y: 30px; --r: 13deg; }
.fan-card .fc-k { margin-bottom: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--muted)); }
.fan-card b { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.fan-card small { font-size: 10px; color: rgb(var(--muted)); }
.signup-text { margin-top: 56px; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.signup-title { max-width: 48rem; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.words { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .28em; }
.word { display: inline-flex; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; transform: translateY(110%); transition: transform .7s var(--ease); transition-delay: calc(.25s + var(--w) * .055s); }
[data-entered] .word > span { transform: none; }
.signup .lead { margin-top: 24px; max-width: 28rem; }
.tip {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; color: #fff;
  background: rgb(24 24 27 / .95); border: 1px solid rgb(255 255 255 / .15);
  box-shadow: 0 8px 30px rgb(0 0 0 / .4);
}

/* ---------- footer ---------- */
.site-footer { overflow: hidden; }
.footer-inner { padding-top: 64px; border-top: 1px solid rgb(var(--line) / .08); }
@media (min-width: 640px) { .footer-inner { padding-top: 80px; } }
.footer-top { display: flex; flex-direction: column; gap: 56px; }
@media (min-width: 1024px) { .footer-top { flex-direction: row; justify-content: space-between; } }
.footer-brand { max-width: 20rem; }
.footer-brand p { margin: 24px 0 32px; font-size: 14px; line-height: 1.6; color: rgb(var(--muted)); }
.logo-static { max-width: 52px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, auto); column-gap: 64px; } }
.footer-cols h4 { margin: 0 0 16px; font-size: 14px; font-weight: 500; letter-spacing: -0.025em; }
.footer-cols a, .linkish { display: block; margin-top: 12px; font-size: 14px; color: rgb(var(--muted)); transition: color .2s ease; text-align: left; }
.footer-cols a:hover, .linkish:hover { color: rgb(var(--fg)); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 64px; padding-top: 24px; font-size: 12px; color: rgb(var(--muted)); }
.wordmark-wrap { overflow: hidden; }
.wordmark {
  margin-top: 40px; transform: translateY(18%); text-align: center;
  font-size: clamp(96px, 23vw, 320px); line-height: .85; font-weight: 500; letter-spacing: -0.05em;
  background-image: radial-gradient(circle at center, rgb(var(--fg) / .5) .9px, transparent 1.2px), linear-gradient(180deg, rgb(var(--fg) / .05), rgb(var(--fg) / 0));
  background-size: 4px 4px, 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 92%); mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
}

/* ---------- waitlist dialog and consent ---------- */
.modal { width: min(440px, calc(100vw - 32px)); padding: 0; border-radius: 28px; color: inherit; }
.modal::backdrop { background: rgb(var(--bg) / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: rise .5s var(--ease); }
.wl { position: relative; padding: 32px; }
.wl h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.wl-sub { margin: 8px 0 24px; font-size: 15px; line-height: 1.6; color: rgb(var(--muted)); }
.wl label { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
.wl input, .wl select { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgb(var(--fg) / .12); background: rgb(255 255 255 / .8); font-size: 15px; font-weight: 400; }
.wl input:focus, .wl select:focus { border-color: rgb(var(--fg) / .5); outline: none; box-shadow: 0 0 0 3px rgb(var(--fg) / .08); }
.wl .btn { margin-top: 8px; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-err { min-height: 20px; font-size: 13px; color: rgb(var(--fg)); }
.wl-fine { margin-top: 14px; font-size: 12px; line-height: 1.5; color: rgb(var(--muted)); }
.modal-x { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 999px; font-size: 22px; line-height: 1; color: rgb(var(--muted)); }
.modal-x:hover { color: rgb(var(--fg)); background: rgb(var(--fg) / .05); }
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 22px; font-size: 14px; line-height: 1.5;
}
@media (min-width: 640px) { .consent { flex-direction: row; align-items: center; } }
.consent-actions { display: flex; gap: 8px; flex: none; }
