/* ==========================================================================
   Nimbus Tech Solutions — homepage design system
   Warm Editorial: paper + ink + one terracotta accent. Fraunces + Instrument Sans.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper:      oklch(0.965 0.012 85);
  --paper-2:    oklch(0.935 0.02 82);
  --paper-3:    oklch(0.9 0.025 80);
  --ink:        oklch(0.19 0.015 50);
  --ink-2:      oklch(0.4 0.02 50);
  --ink-3:      oklch(0.5 0.02 50);
  --night:      oklch(0.2 0.018 50);
  --night-2:    oklch(0.26 0.02 50);
  --on-night:   oklch(0.95 0.012 85);
  --on-night-2: oklch(0.78 0.02 80);
  --accent:     oklch(0.56 0.17 35);      /* terracotta */
  --accent-ink: oklch(0.47 0.16 35);      /* accent for text on paper (AA) */
  --accent-lt:  oklch(0.78 0.11 45);      /* accent for text on night */
  --line:       oklch(0.19 0.015 50 / 0.14);
  --line-night: oklch(0.95 0.012 85 / 0.16);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.5rem, 12.2vw, 11.5rem);
  --fs-h2:   clamp(2.3rem, 5.8vw, 5.25rem);
  --fs-h3:   clamp(1.5rem, 2.7vw, 2.4rem);
  --fs-lead: clamp(1.2rem, 1.1vw + 0.95rem, 1.6rem);
  --fs-body: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --fs-label: 0.78rem;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section: clamp(5rem, 11vw, 10rem);
  --maxw: 1320px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.76, 0, 0.24, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--f-body);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
section[id], footer[id] { scroll-margin-top: 4.5rem; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .night :focus-visible { outline-color: var(--accent-lt); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.night { background: var(--night); color: var(--on-night); }
.alt   { background: var(--paper-2); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 4px;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 340;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 { font-size: var(--fs-h2); text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
em, .it { font-style: italic; font-weight: 300; color: var(--accent-ink); }
.night em, .night .it { color: var(--accent-lt); }
.label {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: .65rem;
}
.label::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .55; }
.night .label { color: var(--on-night-2); }
.lead { font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.night .lead { color: var(--on-night-2); }
.muted { color: var(--ink-2); }
.night .muted { color: var(--on-night-2); }
.sec-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.sec-head h2 { max-width: 13ch; }
.sec-head.wide h2 { max-width: 17ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1.05rem 1.6rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease-io);
}
.btn .arr { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: scale(.98); }
.btn--accent { --bg: var(--accent); --fg: var(--paper); }
.btn--accent::before { background: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.night .btn { --bg: var(--paper); --fg: var(--ink); }
.night .btn:hover { color: var(--paper); }
.night .btn--ghost { --bg: transparent; --fg: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--on-night-2); }
.night .btn--ghost::before { background: var(--paper); }
.night .btn--ghost:hover { color: var(--ink); }

.tlink {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .5s var(--ease-out), gap .4s var(--ease-out);
}
.tlink:hover { background-size: 0 1.5px; background-position: 100% 100%; gap: .85rem; }

/* ---------- Progress bar + header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 4.5rem;
  transition: background .4s ease, box-shadow .4s ease, transform .5s var(--ease-out);
}
.hdr.scrolled { background: oklch(0.965 0.012 85 / 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 1.55rem; font-weight: 420; letter-spacing: -0.04em; }
.brand svg { width: 2.1rem; height: auto; color: var(--accent); }
.brand small { font-family: var(--f-body); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-left: .2rem; padding-top: .35rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a:not(.btn) { font-weight: 500; font-size: .98rem; position: relative; padding-block: .3rem; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav .btn { padding: .7rem 1.2rem; font-size: .95rem; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; position: relative; z-index: 130; }
.menu-btn span { position: absolute; left: .65rem; right: .65rem; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease-io), top .45s var(--ease-io); }
.menu-btn span:nth-child(1) { top: 1.1rem; } .menu-btn span:nth-child(2) { top: 1.55rem; }
.menu-open .menu-btn span:nth-child(1) { top: 1.33rem; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 1.33rem; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 6rem var(--gutter) 3rem; gap: .5rem; z-index: 125;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease-io), visibility 0s .6s;
  }
  .menu-open .nav { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -0.035em; font-weight: 340; }
  .nav .btn { margin-top: 1.5rem; font-size: 1.1rem; padding: 1.1rem 1.7rem; }
  .brand small { display: none; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding-top: 7rem; padding-bottom: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-sky .cloud { position: absolute; color: var(--paper-3); will-change: transform; }
.hero-sky .c1 { width: min(62vw, 880px); right: -12vw; top: 9%; animation: drift 46s ease-in-out infinite alternate; }
.hero-sky .c2 { width: min(34vw, 460px); left: 46%; top: 3%; color: var(--paper-2); animation: drift 38s ease-in-out -12s infinite alternate-reverse; }
.hero-sky .c3 { width: min(22vw, 300px); left: -4vw; top: 34%; color: var(--paper-2); animation: drift 52s ease-in-out -20s infinite alternate; }
.hero-sky .c4 { width: min(15vw, 190px); right: 14vw; top: 46%; color: var(--accent); opacity: .9; animation: drift 30s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(4%, 5%, 0); } }
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker { margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.hero h1 { font-size: var(--fs-hero); line-height: .9; letter-spacing: -0.05em; font-weight: 330; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .ln > span { display: block; transform: translateY(108%); animation: lift 1.25s var(--ease-out) .15s forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .3s; }
@keyframes lift { to { transform: translateY(0); } }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-top: clamp(2rem, 5vw, 4.5rem); }
.hero-foot .lead { max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: flex-end; }
.hero-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.hero-meta b { color: var(--ink); font-weight: 600; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeup .9s var(--ease-out) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeup { to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-cta { justify-content: flex-start; }
  .hero-meta { grid-template-columns: 1fr; gap: .4rem; }
  .hero-sky .c1 { top: 12%; width: 110vw; right: -35vw; }
}

/* ---------- Explorer (night) ---------- */
.explorer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.tab {
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 500; font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--line-night); color: var(--on-night);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, transform .4s var(--ease-back);
}
.tab:hover { box-shadow: inset 0 0 0 1px var(--on-night-2); transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--line-night); padding-top: clamp(2rem, 4vw, 3.5rem); }
.panel[hidden] { display: none; }
.panel-who h3 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; margin-bottom: 1.25rem; }
.panel-who p { color: var(--on-night-2); max-width: 30ch; margin-bottom: 2rem; }
.tasks li { display: grid; grid-template-columns: 4.75rem 1fr; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line-night); font-size: clamp(1.1rem, 1vw + .9rem, 1.4rem); line-height: 1.35; letter-spacing: -0.015em; }
.tasks li:first-child { padding-top: 0; }
.tag { align-self: start; margin-top: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 4px; text-align: center; background: oklch(0.95 0.012 85 / .1); color: var(--on-night-2); }
.tag.ai { background: var(--accent); color: var(--paper); }
.panel.swap .panel-who, .panel.swap .tasks li { animation: swap .7s var(--ease-out) both; }
.panel.swap .tasks li:nth-child(2) { animation-delay: .06s; } .panel.swap .tasks li:nth-child(3) { animation-delay: .12s; } .panel.swap .tasks li:nth-child(4) { animation-delay: .18s; }
@keyframes swap { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .explorer-top, .panel { grid-template-columns: 1fr; } .tasks li { grid-template-columns: 3.9rem 1fr; } }

/* ---------- Problems ---------- */
.problems { margin-top: -1rem; }
.problem { display: grid; grid-template-columns: 3.5rem minmax(0, 6.2fr) minmax(0, 4.8fr); gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); align-items: start; transition: background .5s ease; }
.problem:last-child { border-bottom: 1px solid var(--line); }
.problem .n { font-family: var(--f-display); font-size: 1.1rem; color: var(--accent-ink); padding-top: .8rem; font-feature-settings: "tnum"; }
.problem h3 { font-size: clamp(1.8rem, 3.8vw, 3.3rem); line-height: 1.02; }
.problem .body { padding-top: .5rem; display: grid; gap: 1.1rem; }
.problem .fix { display: flex; gap: .7rem; font-weight: 600; color: var(--accent-ink); }
.problem .fix::before { content: "→"; }
@media (max-width: 860px) { .problem { grid-template-columns: 2.2rem 1fr; } .problem .body { grid-column: 2; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.services-aside { position: sticky; top: 7rem; display: grid; gap: 2rem; }
.services-aside .lead { max-width: 28ch; }
.svc-local { color: var(--ink-2); max-width: 32ch; line-height: 1.7; }
.svc { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem 1.75rem; padding-block: clamp(1.75rem, 3vw, 2.75rem); border-top: 1px solid var(--line); position: relative; transition: padding .5s var(--ease-out); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .n { font-family: var(--f-display); color: var(--ink-3); padding-top: .55rem; font-feature-settings: "tnum"; }
.svc h3 { margin-bottom: .75rem; }
.svc p { color: var(--ink-2); max-width: 52ch; }
.svc .stack { grid-column: 2; font-size: .88rem; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; }
.svc .go { align-self: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s ease, color .4s ease, transform .5s var(--ease-back); }
.svc:hover .go { background: var(--accent); color: var(--paper); transform: rotate(-45deg); box-shadow: none; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .services-aside { position: static; } .svc { grid-template-columns: 2.2rem 1fr; } .svc .go { display: none; } }

/* ---------- Work (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.tile { border-radius: 1.5rem; padding: clamp(1.5rem, 2.6vw, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; position: relative; overflow: hidden; background: var(--paper-2); isolation: isolate; transition: transform .6s var(--ease-out); }
.tile:hover { transform: translateY(-4px); }
.tile .big { font-family: var(--f-display); font-weight: 300; font-size: clamp(4.5rem, 10vw, 9.5rem); letter-spacing: -0.06em; line-height: .85; font-feature-settings: "tnum"; }
.tile .big sup { font-size: .42em; vertical-align: top; position: relative; top: .15em; letter-spacing: -0.02em; margin-left: .05em; }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); margin-bottom: .6rem; }
.tile p { color: var(--ink-2); font-size: .98rem; max-width: 42ch; }
.tile .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.chips span { font-size: .76rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.tile--a { grid-column: span 3; grid-row: span 2; background: var(--accent); color: var(--paper); }
.tile--a p { color: oklch(0.965 0.012 85 / .88); }
.tile--a .chips span { box-shadow: inset 0 0 0 1px oklch(0.965 0.012 85 / .45); color: var(--paper); }
.tile--b { grid-column: span 3; background: var(--ink); color: var(--paper); }
.tile--b p { color: var(--on-night-2); } .tile--b .chips span { box-shadow: inset 0 0 0 1px var(--line-night); color: var(--on-night-2); }
.tile--c { grid-column: span 3; }
.tile--s { grid-column: span 2; background: transparent; box-shadow: inset 0 0 0 1px var(--line); gap: 1.5rem; justify-content: flex-start; }
.tile .stat { font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.04em; color: var(--accent-ink); font-weight: 380; }
.tile--a::after { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 5/3; right: -14%; bottom: -10%; background: oklch(0.965 0.012 85 / .09); border-radius: 50%; filter: blur(2px); }
.work-note { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; color: var(--ink-2); }
@media (max-width: 960px) { .tile--a, .tile--b, .tile--c { grid-column: span 6; grid-row: auto; } .tile--s { grid-column: span 6; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.founder .quote { font-family: var(--f-display); font-weight: 320; font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.founder .sig { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.founder .mono-badge { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.3rem; }
.founder .sig b { display: block; } .founder .sig div span { color: var(--ink-2); font-size: .95rem; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .yr { font-feature-settings: "tnum"; color: var(--ink-3); font-weight: 500; font-size: .95rem; padding-top: .2rem; }
.timeline b { display: block; font-weight: 600; } .timeline span { color: var(--ink-2); font-size: .98rem; }
.certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.certs span { font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

/* ---------- Pricing (night) ---------- */
.plans { border-top: 1px solid var(--line-night); }
.plan { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.4fr) minmax(0, 4.4fr) 11.5rem; gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.75rem, 3.2vw, 2.75rem); border-bottom: 1px solid var(--line-night); position: relative; transition: background .5s ease, padding .5s var(--ease-out); }
.plan:hover { background: var(--night-2); padding-inline: 1.5rem; }
.plan .pname { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.plan .pname small { display: block; margin-top: .6rem; font-family: var(--f-body); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.plan .pname .pop { color: var(--accent-lt); }
.plan .price { font-family: var(--f-display); font-size: clamp(2.4rem, 4.8vw, 4.4rem); letter-spacing: -0.05em; line-height: 1; font-weight: 300; font-feature-settings: "tnum"; }
.plan .price small { font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; color: var(--on-night-2); font-weight: 400; margin-left: .25rem; }
.plan .price i { font-style: normal; font-family: var(--f-body); font-size: .9rem; letter-spacing: .02em; color: var(--on-night-2); display: block; margin-bottom: .35rem; font-weight: 500; }
.plan p { color: var(--on-night-2); font-size: 1rem; }
.plan p b { color: var(--on-night); font-weight: 600; }
.plan .btn { padding: .85rem 1.3rem; font-size: .95rem; white-space: nowrap; justify-self: end; }
.plan--hot .btn { --bg: var(--accent); --fg: var(--paper); } .plan--hot .btn::before { background: var(--paper); } .plan--hot .btn:hover { color: var(--ink); }
.price-note { margin-top: 2rem; color: var(--on-night-2); max-width: 60ch; }
.price-note a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .plan { grid-template-columns: 1fr 1fr; } .plan p { grid-column: 1 / -1; } .plan .btn { justify-self: start; } .plan:hover { padding-inline: 0; background: transparent; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); counter-reset: s; }
.step { padding-top: 2rem; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.step::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-io) var(--d, 0s); }
.step.in::after { transform: scaleX(1); }
.step .sn { font-family: var(--f-display); font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 280; letter-spacing: -0.06em; line-height: 1; color: var(--accent-ink); margin-bottom: 1.25rem; font-feature-settings: "tnum"; }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .75rem; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step .free { display: inline-block; margin-top: 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }


/* ---------- FAQ + Notes ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 7vw, 7rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding-block: 1.6rem; font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 360; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--accent-ink); transition: transform .5s var(--ease-back); flex: none; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding-bottom: 1.8rem; color: var(--ink-2); max-width: 58ch; }

.notes { margin-top: clamp(4rem, 8vw, 7rem); }
.notes-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.note { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto auto; gap: 1.5rem; align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--line); transition: padding .5s var(--ease-out), background .4s ease; }
.note:last-child { border-bottom: 1px solid var(--line); }
.note:hover { padding-inline: 1rem; background: var(--paper-2); }
.note .t { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.note h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.025em; }
.note .rt { color: var(--ink-3); font-size: .9rem; }
.note .arr { transition: transform .4s var(--ease-out); } .note:hover .arr { transform: translateX(6px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .note { grid-template-columns: 1fr auto; } .note .t { grid-column: 1 / -1; } .note .rt { display: none; } }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: var(--paper); overflow: hidden; }
.contact .label { color: oklch(0.965 0.012 85 / .85); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.8rem, 7vw, 6.5rem); line-height: .93; letter-spacing: -0.045em; margin-block: 1.5rem 2rem; }
.contact h2 em { color: var(--ink); }
.contact .lead { color: oklch(0.965 0.012 85 / .92); max-width: 30ch; }
.contact-facts { margin-top: 2.5rem; display: grid; gap: .6rem; font-weight: 500; }
.contact-facts li { display: flex; gap: .8rem; align-items: baseline; }
.contact-facts li::before { content: "✓"; font-weight: 700; }
.contact-facts a { text-decoration: underline; text-underline-offset: 3px; }
.cloud-bg { position: absolute; z-index: 0; color: oklch(0.965 0.012 85 / .09); width: min(70vw, 900px); right: -18vw; bottom: -12vw; pointer-events: none; }
.form { background: var(--paper); color: var(--ink); border-radius: 1.75rem; padding: clamp(1.5rem, 3.4vw, 3rem); display: grid; gap: 1.25rem; box-shadow: 0 40px 80px -30px oklch(0.2 0.05 30 / .5); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field > label, .field > .lab { font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  padding: .65rem 0 .7rem; border-radius: 0; transition: border-color .3s ease; letter-spacing: -0.01em; font-size: 1.1rem;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.19 0.015 50 / .35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.invalid input { border-color: oklch(0.55 0.22 25); }
.field .err { color: oklch(0.5 0.2 25); font-size: .85rem; display: none; }
.field.invalid .err { display: block; }
.picks { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: block; padding: .5rem .95rem; border-radius: 999px; font-size: .92rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: all .3s var(--ease-out); }
.pick input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctx { display: flex; align-items: center; gap: .6rem; font-size: .9rem; padding: .55rem .8rem; border-radius: 8px; background: var(--paper-2); }
.ctx[hidden] { display: none; }
.ctx button { margin-left: auto; text-decoration: underline; color: var(--ink-2); font-size: .85rem; }
.form .btn { justify-self: start; }
.form .small { font-size: .85rem; color: var(--ink-3); }
.form-state { display: none; }
.form-state.show { display: block; }
.ok h3 { margin-bottom: .75rem; } .ok p { color: var(--ink-2); max-width: 36ch; }
.fail { color: oklch(0.5 0.2 25); font-weight: 500; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--on-night); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; overflow: hidden; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2rem 3rem; }
.ftr .brand { font-size: 2.2rem; } .ftr .brand svg { width: 3rem; }
.ftr p { color: var(--on-night-2); margin-top: 1rem; max-width: 30ch; }
.ftr h2 { font-family: var(--f-body); line-height: inherit; text-wrap: wrap; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); margin: 0 0 1rem; }
.ftr li + li { margin-top: .55rem; }
.ftr a:hover { color: var(--accent-lt); }
.ftr-word { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.07em; line-height: .8; font-size: clamp(5rem, 24vw, 22rem); color: oklch(0.95 0.012 85 / .06); margin-top: clamp(2rem, 5vw, 4rem); white-space: nowrap; user-select: none; }
.ftr-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line-night); color: var(--on-night-2); font-size: .9rem; }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero h1 .ln > span, .fade-up { transform: none; opacity: 1; animation: none; }
  .js .rv { opacity: 1; transform: none; }
  .hero-sky .cloud { animation: none; }
  .step::after { transform: scaleX(1); }
}

/* ---------- Touch: no sticky hover ---------- */
@media (hover: none) {
  .tile:hover, .tab:hover { transform: none; }
  .plan:hover, .note:hover { padding-inline: 0; background: transparent; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: left; padding: 6rem var(--gutter); position: relative; overflow: hidden; }
.lost h1 { font-size: clamp(5rem, 22vw, 18rem); line-height: .8; letter-spacing: -0.07em; font-weight: 300; }
.lost p { margin: 2rem 0; max-width: 30ch; }

/* Footer NAP line (identical on every page) */
.ftr .nap { max-width: none; }
.nap a { text-decoration: underline; text-underline-offset: .2em; }
.lost .nap { margin-top: 2.5rem; color: var(--ink-2); }
