/* House style base. Spec: house-style.md (reference implementation: turny/website/style.css).
   Put product-specific CSS after this file; set the product slots in :root there. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin.woff2") format("woff2-variations"), url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141414;
  --soft: #5d5f66;
  --faint: #6c6e75;
  --line: rgba(20, 20, 20, .09);
  --page: #fbfbfa;
  --card: #f3f3f1;
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Product slots: override all six in the product stylesheet. These greys are placeholders. */
  --wall-glow-1: #e8e8e6;
  --wall-glow-2: #d6d6d3;
  --wall-top: #cfcfcc;
  --wall-mid: #8d8d8a;
  --wall-bottom: #3c3c3b;
  --accent: #d6d6d3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); font: 17px/1.5 var(--body); overflow-x: hidden; }
.pn { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 250, .8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 18px var(--display); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--soft); }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.btn:hover { background: #2a2a2a; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn .icon { width: 15px; height: 15px; margin-top: -2px; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* hover: springy swell plus two rings pulsing out */
.btn { --ring: rgba(20, 20, 20, .22); position: relative; transition: scale .35s var(--spring), background .15s; }
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
@media (hover: hover) {
  .btn:hover { scale: 1.03; }
  .btn:hover::before { animation: swell .7s ease-out; }
  .btn:hover::after { animation: swell .7s .14s ease-out backwards; }
  .btn:hover .icon { animation: drop .5s var(--ease); }
}
/* scale (not transform) so it composes with the .rv reveal transform; after :hover so a press still shrinks */
.btn:active { scale: .97; }
@keyframes swell { from { box-shadow: 0 0 0 0 var(--ring); } to { box-shadow: 0 0 0 10px transparent; } }
@keyframes drop { 40% { translate: 0 3px; } 70% { translate: 0 -1px; } }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 0 52px; }
.hero h1 { font: 700 clamp(46px, 7.4vw, 88px)/.98 var(--display); letter-spacing: -.04em; }
.hero .lede { max-width: 33em; margin: 24px auto 32px; font-size: 20px; line-height: 1.5; color: var(--soft); }
.hero .ctas { justify-content: center; }
.fine { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* ---------- wallpaper + product stage ---------- */
.wallpaper { background:
    radial-gradient(70% 80% at 15% 0%, var(--wall-glow-1), transparent 70%),
    radial-gradient(60% 70% at 85% 10%, var(--wall-glow-2), transparent 70%),
    linear-gradient(170deg, var(--wall-top), var(--wall-mid) 55%, var(--wall-bottom)); }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* The screen is authored at --w × --h and scaled by --s (set by base.js) to fit. */
.stage-wrap { padding: 0 24px; }
.stage { --s: 1; --w: 1180px; --h: 720px; max-width: 1180px; margin: 0 auto; height: calc(var(--h) * var(--s)); position: relative; }
.screen { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); transform: scale(var(--s)); transform-origin: top left;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 90px -30px color-mix(in srgb, var(--wall-bottom) 55%, transparent), 0 18px 36px -18px color-mix(in srgb, var(--wall-bottom) 35%, transparent); }
.screen > * { position: relative; z-index: 1; }

/* product fragment surfaces */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(250, 250, 252, .68));
  backdrop-filter: blur(28px) saturate(1.9); -webkit-backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(0, 0, 0, .14), 0 22px 50px -12px rgba(0, 0, 0, .35);
}
.solid { background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 12px 30px -10px rgba(0, 0, 0, .18); }

/* ---------- scenario switcher ---------- */
.demo { max-width: 760px; margin: 28px auto 0; padding: 0 24px; text-align: center; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 14px; background: #efeeec; }
.seg button { position: relative; height: 38px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--soft); transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button::after { content: ""; position: absolute; inset: -3px 0; } /* 44px tap target without changing the look */
.seg button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.caption { min-height: 3em; margin-top: 16px; color: var(--soft); font-size: 16px; }

/* ---------- sections ---------- */
.section { padding: 140px 0 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--faint); margin-bottom: 14px; }
.section h2 { font: 700 clamp(34px, 4.6vw, 54px)/1.04 var(--display); letter-spacing: -.035em; max-width: 15em; }
.section .sub { font-size: 19px; color: var(--soft); max-width: 36em; margin-top: 18px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.card { grid-column: span 2; background: var(--card); border-radius: 22px; padding: 30px 30px 0; display: flex; flex-direction: column; overflow: hidden; }
.card.wide { grid-column: span 3; }
.card h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.015em; }
.card p { margin-top: 8px; font-size: 16px; color: var(--soft); max-width: 30em; }
.card .vis { min-height: 190px; flex: 1 0 auto; display: flex; align-items: flex-end; justify-content: center; margin-top: 28px; position: relative; }
.card .vis.wallpaper { margin: 28px -30px 0; padding: 32px 30px 0; }
.card .vis > .glass, .card .vis > .solid { position: relative; border-radius: 16px 16px 0 0; padding: 16px 18px 6px; width: 100%; max-width: 360px; }

/* small pieces used inside cards */
.kc { display: inline-flex; gap: 3px; }
.kc kbd { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; display: grid; place-items: center; font: 500 11px var(--body); background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1px rgba(0, 0, 0, .08); }
.code { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #1d1d1f; color: #e8e6e1; font: 12px/1.6 var(--mono); text-align: left; }
.code span { color: #f0b35a; }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.trust h3 { font: 700 18px var(--display); margin-bottom: 8px; letter-spacing: -.01em; }
.trust p { color: var(--soft); font-size: 16px; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.price-card { background: var(--ink); color: #fff; border-radius: 26px; padding: 40px; position: relative; overflow: hidden; }
.price { font: 700 84px/1 var(--display); letter-spacing: -.04em; }
.price small { font: 500 20px var(--body); letter-spacing: 0; color: #a7a7ab; margin-left: 6px; }
.price-card .what { margin: 12px 0 28px; color: #c9c9cc; font-size: 17px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; font-size: 16px; }
.price-card li { display: flex; gap: 10px; align-items: baseline; }
.price-card li::before { content: ""; width: 14px; height: 8px; flex: none; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
.price-card .btn { --ring: rgba(255, 255, 255, .35); background: #fff; color: var(--ink); }
.price-card .btn:hover { background: #e9e9e7; }
.price-card .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.price-card .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.price-card .btn:focus-visible { outline-color: #fff; }
.steps { display: grid; gap: 28px; }
.steps > div { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.steps b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font: 700 16px var(--display); }
.steps h3 { font: 700 18px var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.steps p { color: var(--soft); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 18px var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--faint); transition: transform .2s; }
.faq details[open]:not([data-dir="close"]) summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--soft); max-width: 44em; }
.faq details p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.faq code { font: 14px var(--mono); background: var(--card); padding: 1px 5px; border-radius: 5px; }

/* ---------- closing CTA + footer ---------- */
.final { text-align: center; padding: 150px 24px 120px; }
.final .ctas { justify-content: center; }
.mark-big { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 17px; background: #e6e6e3; display: grid; place-items: center; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 14px 30px -10px rgba(0, 0, 0, .25); }
.final h2 { font: 700 clamp(38px, 5.4vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.final p { color: var(--soft); font-size: 19px; margin: 18px 0 30px; }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; height: 80px; font-size: 14px; color: var(--faint); }
footer nav { display: flex; gap: 22px; }
footer nav a { padding: 12px 0; }
footer a:hover { color: var(--ink); }

/* ---------- simple pages: buy, thanks, legal, articles ---------- */
.simple-page { max-width: 560px; padding-top: 72px; padding-bottom: 96px; }
.simple-page .brand { margin-bottom: 48px; }
.simple-page h1 { font: 700 36px var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.simple-page p { color: var(--soft); font-size: 17px; line-height: 1.55; margin: 0 0 16px; }
.simple-page .ctas { margin-top: 28px; }
.simple-page .key { font-family: var(--mono); font-size: 18px; color: var(--ink); background: var(--card); border-radius: 10px; padding: 14px 16px; user-select: all; overflow-wrap: anywhere; }
.simple-page .note { font-size: 14px; color: var(--faint); margin-top: 32px; }
.simple-page.legal { max-width: 680px; }
.legal .updated { font-size: 14px; color: var(--faint); margin-bottom: 32px; }
.legal h2 { font: 600 20px/1.3 var(--display); letter-spacing: -.01em; margin: 40px 0 12px; }
.legal h3 { font: 600 16px/1.4 var(--body); margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; }
.legal ul, .legal ol { color: var(--soft); line-height: 1.55; margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li b { color: var(--ink); }
.legal a:not(.brand, .btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal img { display: block; max-width: 100%; height: auto; border-radius: 16px; margin: 8px 0; }
.legal .note { font-size: 14px; margin-top: 0; }
.simple-page.article { max-width: 880px; }
.article > p, .article > ul, .article > h2 { max-width: 680px; }
.compare-wrap { overflow-x: auto; margin: 28px 0 12px; }
.compare { border-collapse: collapse; min-width: 760px; font-size: 14px; line-height: 1.4; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.compare thead th { font-weight: 600; color: var(--ink); font-size: 13px; }
.compare tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare tr.us th, .compare tr.us td { color: var(--ink); background: var(--card); }
.compare tr.us th { padding-left: 12px; border-radius: 10px 0 0 10px; }
.compare thead th:first-child, .compare tbody tr:not(.us) th { padding-left: 12px; }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.btn.rv { transition: opacity .7s var(--ease), transform .7s var(--ease), scale .35s var(--spring), background .15s; }
.hero > * { animation: up .8s var(--ease) both; }
/* The headline and lede are the LCP candidates; fading them in from opacity 0 delays LCP, so they only slide. */
.hero > h1, .hero > .lede { animation-name: slide; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; } .hero > :nth-child(4) { animation-delay: .22s; }
.stage-wrap { animation: up 1s .25s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@keyframes slide { from { transform: translateY(16px); } }
.hero h1, .hero .lede, .section h2, .final h2 { text-wrap: balance; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .pricing { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero .lede { font-size: 18px; }
  .stage-wrap { padding: 12px 16px 0; }
  .seg { gap: 2px; }
  .seg button { padding: 0 11px; font-size: 14px; }
  .wrap { padding: 0 16px; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 24px 22px 0; }
  .card .vis.wallpaper { margin: 24px -22px 0; padding: 24px 16px 0; }
  .section { padding-top: 100px; }
  .price-card { padding: 30px 24px; }
  .price { font-size: 68px; }
  .final { padding: 110px 16px 96px; }
  footer .wrap { flex-direction: column; justify-content: center; gap: 8px; height: auto; padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
