/* Home page. Plain CSS, no build step. Palette taken from the hero photo. */
:root {
  --paper: #F6F7F1;
  --paper-2: #FBFBF7;
  --sky-wash: #EAF2F6;
  --gold-wash: #FBF1DA;
  --ink: #17231A;
  --ink-soft: #46524A;
  --line: rgba(23, 35, 26, 0.13);
  --line-strong: rgba(23, 35, 26, 0.28);
  --sky: #A9CBE6;
  --meadow: #5C8A45;
  --meadow-deep: #2F5230;
  --gold: #F2C46D;
  --accent: #C6E86B;
  --accent-hover: #B7DE4F;
  --accent-ink: #1C2A0E;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1600px;
  --header-h: 64px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* focus and skip link */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 13px; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 10px; align-items: baseline; }

/* placeholders: easy to spot, still readable */
.ph { background: rgba(198, 232, 107, 0.45); color: var(--accent-ink); border-radius: 4px; padding: 0 0.3em; font-family: var(--mono); font-size: 0.86em; font-weight: 500; letter-spacing: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease); }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--paper); min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink:hover { background: var(--meadow-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* text roll on hover, in the spirit of the reference */
.roll { display: inline-block; overflow: hidden; text-decoration: none; vertical-align: top; line-height: 1.4; }
.roll span { display: inline-block; position: relative; transition: transform .45s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }
button.roll { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; flex-shrink: 0; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--ink); background: radial-gradient(circle at 50% 58%, var(--accent) 0 34%, transparent 35%); }
.locale { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.locale-place { color: var(--ink-soft); }
.bar > .locale { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 32px; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-actions { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.locale-menu { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1199px) {
  .bar > .locale { display: none; }
  .logo { margin-right: auto; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; }
  .menu-icon { position: relative; width: 16px; height: 10px; display: inline-block; }
  .menu-icon span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .menu-icon span:first-child { top: 1px; }
  .menu-icon span:last-child { top: 7.5px; }
  .is-open .menu-icon span:first-child { top: 4.25px; transform: rotate(45deg); }
  .is-open .menu-icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

  .js .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 28px; padding: 24px var(--pad) 32px; background: var(--paper); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .js .is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-links { flex-direction: column; gap: 6px; font-size: 28px; letter-spacing: -0.02em; }
  .nav-links a { padding: 4px 0; }
  .nav-actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; font-size: 16px; }
  .js .locale-menu { display: block; }
  .no-js .nav, html:not(.js) .nav { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 1199px) { html:not(.js) .bar { flex-wrap: wrap; padding-block: 10px; } }

/* hero */
.hero { position: relative; background: var(--paper); }
.hero-media { position: relative; overflow: hidden; height: max(320px, 56.25vw); max-height: 100svh; background: #c9d9e2; }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 20%; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(23, 35, 26, 0) 70%, rgba(23, 35, 26, 0.28) 100%); }

.hero-copy { position: relative; padding: 28px var(--pad) 8px; max-width: var(--max); margin: 0 auto; }
.hero-panel { display: grid; gap: 18px; max-width: 640px; }
.hero-title { font-size: clamp(40px, 9vw, 84px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--ink-soft); max-width: 48ch; }

/* on wide screens the copy floats in a frosted panel in the sky, clear of her */
@media (min-width: 1180px) {
  .hero-copy { position: absolute; inset: 0; padding: 0; max-width: none; pointer-events: none; }
  .hero-panel { position: absolute; right: var(--pad); top: clamp(28px, 4vw, 64px); width: min(470px, 30vw); pointer-events: auto; padding: 26px 28px 28px; border-radius: 22px; background: rgba(250, 251, 246, 0.74); border: 1px solid rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); box-shadow: 0 24px 60px -30px rgba(23, 35, 26, 0.45); }
  .hero-title { font-size: clamp(42px, 4vw, 66px); }
}

/* sections */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
/* faint four-column grid with crosshairs, borrowed in spirit */
.section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((min(100%, var(--max)) - 2 * var(--pad)) / 4) 100%;
  background-position: calc(max(0px, (100% - var(--max)) / 2) + var(--pad)) 0;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.section::after { content: "+"; position: absolute; top: -0.72em; left: calc(max(0px, (100% - var(--max)) / 2) + var(--pad) - 0.3em); font: 400 16px/1 var(--mono); color: var(--line-strong); }
.section > .container { position: relative; }
.section-sky { background: var(--sky-wash); }
.section-gold { background: var(--gold-wash); }

.section-head { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .label { grid-column: 1; }
.statement { grid-column: 1 / -1; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.02em; line-height: 1.18; max-width: 22ch; }

/* (01) rows */
.rows { border-top: 1px solid var(--line-strong); }
.row { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; gap: 6px 20px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); transition: background-color .35s var(--ease); }
.row-title { font-size: clamp(22px, 3vw, 36px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.015em; transition: transform .5s var(--ease); }
.row-text { color: var(--ink-soft); max-width: 46ch; }
.row-tag { display: none; font-size: 12px; color: var(--ink-soft); }
.row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); background: var(--sky-wash); opacity: 0; transition: opacity .35s var(--ease); z-index: -1; }
.row:hover::before { opacity: 1; }
.row:hover .row-title { transform: translateX(8px); }
@media (min-width: 860px) {
  .row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 128px; align-items: baseline; padding: 40px 0; }
  .row-tag { display: block; text-align: right; }
}

.stories { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 12px; }
.stories-text { font-size: clamp(18px, 2vw, 24px); }

/* (02) how it works */
.how { display: grid; gap: clamp(36px, 5vw, 64px); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.step { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.step h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--ink-soft); max-width: 52ch; }
.how-figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; background: var(--sky); }
.how-figure img, .contact-figure img { width: 100%; height: 100%; object-fit: cover; }
.how-figure figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 12px; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
@media (min-width: 960px) {
  .how { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .how-figure { aspect-ratio: 16 / 10; position: sticky; top: calc(var(--header-h) + 32px); }
}

/* (03) pricing */
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -32px rgba(23, 35, 26, 0.35); }
.plan-feature { background: #fff; border-color: var(--meadow); }
.plan-trial { align-self: flex-start; font-size: 12px; text-transform: uppercase; color: var(--meadow-deep); background: var(--sky-wash); border: 1px solid rgba(47, 82, 48, 0.25); padding: 5px 10px; border-radius: 999px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.plan-badge { font-size: 12px; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 5px 10px; border-radius: 999px; }
.plan-desc { color: var(--ink-soft); font-size: 15px; min-height: 3.2em; }
.plan-name { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.plan-price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.plan-per { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan-list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); flex: 1; }
.plan-list li { position: relative; padding-left: 22px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--meadow); }
.plan-btn { align-self: flex-start; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* (04) contact */
.contact { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.contact-copy { display: grid; gap: 22px; }
.contact-title { font-size: clamp(44px, 7vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
.contact-text { font-size: 18px; color: var(--ink-soft); max-width: 44ch; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: clamp(22px, 2.6vw, 34px); }
.contact-hi { font-size: 14px; text-transform: uppercase; color: var(--ink-soft); }
.contact-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--gold); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 28px; overflow: hidden; }
.wordmark { font-size: clamp(40px, 7.4vw, 124px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; color: var(--ink); text-wrap: balance; margin-bottom: clamp(28px, 4vw, 48px); }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color .25s var(--ease); }
.footer-links a:hover { text-decoration-color: currentColor; }
.footer-row .locale { margin-left: auto; }

/* motion: hero entrance and scroll reveals (only for visitors who allow motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .js .hero-panel > :not(.hero-title) { opacity: 0; animation: fade-up .9s var(--ease) .35s forwards; }
  .js .hero-img { animation: settle 2.4s var(--ease) both; }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: inset(12% 0 0 0 round var(--radius)); transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.2s var(--ease); }
  .js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .reveal-img img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
  .js .reveal-img.is-in img { transform: none; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-video { display: none; }
}

/* very narrow phones: keep the header on one line */
@media (max-width: 380px) {
  .bar { gap: 12px; }
  .logo { min-width: 0; }
  .logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .js .menu-toggle { padding: 0 12px; }
}

/* blog */
.blog-hero { border-top: 1px solid var(--line); padding: clamp(48px, 8vw, 112px) 0 clamp(16px, 3vw, 40px); }
.blog-hero .container { display: grid; gap: 18px; }

/* log in and get started */
.form-page { border-top: 1px solid var(--line); padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); }
.form-layout { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-intro { display: grid; gap: 18px; }
.form-title { font-size: clamp(40px, 6vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.form-lead { font-size: 18px; color: var(--ink-soft); max-width: 40ch; }
.form-card { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); max-width: 560px; width: 100%; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.hint { display: block; font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 16px/1.4 var(--font); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(198, 232, 107, 0.8); }
.form-card .btn { justify-self: start; }
.form-card .btn:disabled { opacity: 0.6; cursor: progress; }
.form-error { color: #9B1C2C; background: #FCE8EA; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.form-small { font-size: 15px; color: var(--ink-soft); }
.form-small a { color: var(--ink); text-underline-offset: 3px; }
.form-done-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-card { justify-self: end; } }

/* validation questionnaire */
.q-layout { display: grid; gap: clamp(32px, 5vw, 56px); max-width: 860px; }
.q-form { display: grid; gap: clamp(40px, 6vw, 72px); }
.q-part { display: grid; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.q-part-title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; margin-top: -12px; }
.q-part-intro { color: var(--ink-soft); max-width: 60ch; margin-top: -12px; }
fieldset.q { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
fieldset.q legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 12px; max-width: 64ch; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 15px; line-height: 1.3; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.choice:hover span { border-color: var(--ink-soft); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent-ink); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.choices-scale .choice span { justify-content: center; min-width: 52px; font-family: var(--mono); }
.pitch { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--gold-wash); border: 1px solid rgba(23, 35, 26, 0.12); display: grid; gap: 12px; }
.pitch p:last-child { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.price-input { display: flex; align-items: center; gap: 10px; max-width: 220px; }
.price-input span { font-weight: 600; font-size: 18px; }
.q-form > .btn { justify-self: start; }
.q-form .btn:disabled { opacity: 0.6; cursor: progress; }
.q-done { max-width: 560px; }
.site-footer-slim { padding-top: 0; }
.site-footer-slim .footer-row { border-top: 0; }
