/* CodeYantra — home page
   Warm paper, ink, one loud colour, and hand-drawn notes in the margins. */

@font-face { font-family: 'Kalam'; src: url('../fonts/Kalam-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('../fonts/Kalam-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --paper-2: #F4F5F7;
  --card: #FAFAFB;
  --ink: #0A0A0A;
  --ink-2: #26272B;
  --muted: #6B6F76;
  --rule: rgba(10, 10, 10, .14);
  --rule-light: rgba(255, 255, 255, .16);
  --accent: #2F5BFF;
  --accent-deep: #1E40E0;
  --marker: #DCE5FF;

  --serif: 'Space Grotesk', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --hand: 'Kalam', 'Comic Sans MS', cursive;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
kbd { font: 500 11px var(--mono); padding: 2px 6px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: var(--card); color: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- type helpers ---------- */
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.label .num { color: var(--accent); margin-right: 6px; }
i, .section-title i, h1 i { font-style: normal; }
.hand-note, .hand-inline { font-family: var(--hand); color: var(--accent-deep); }
.hand-inline { display: inline-block; font-size: 1.05em; transform: rotate(-2deg); margin-left: 6px; }
.hand-inline.light { color: var(--marker); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg);
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { /* fill that rises from the bottom on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover, var(--accent));
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0; transition: transform .45s var(--ease), border-radius .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { border-color: var(--hover, var(--accent)); color: var(--hover-fg, var(--paper)); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-accent { --bg: var(--accent); --fg: #fff; --hover: var(--ink); }
.btn-line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); --hover: var(--ink); }
.btn-line-light { --bg: transparent; --fg: var(--paper); border-color: var(--rule-light); --hover: var(--paper); --hover-fg: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.link-arrow { font: 500 16px var(--sans); text-decoration: none; border: 0; background: none; padding: 4px 0; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: scaleX(0); }
.link-arrow.small { font-size: 14px; }
.link-arrow:disabled { opacity: .4; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90;
  width: min(calc(100% - 24px), 1240px); display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .78);
  border: 1px solid var(--rule); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: transform .5s var(--ease), box-shadow .3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.nav.raised { box-shadow: 0 10px 30px rgba(10, 10, 10, .08); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px var(--sans); letter-spacing: -.01em; flex: none; }
.wordmark img { width: 30px; height: 30px; border-radius: 50%; }
.wordmark em { font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 18px; color: var(--accent); margin-left: 1px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: background .25s; }
.nav-links a:hover, .nav-links a.active { background: var(--paper-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.currency { display: flex; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.currency button { border: 0; background: none; width: 30px; height: 28px; border-radius: 999px; font: 500 14px var(--mono); color: var(--muted); transition: background .25s, color .25s; }
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); }
.kbd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kbd-btn kbd { border: 0; padding: 0; background: none; color: var(--muted); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(130px, 18vh, 180px); position: relative; overflow-x: clip; }
main, .footer { overflow-x: clip; }
.hero-label { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2F9E44; box-shadow: 0 0 0 0 rgba(47, 158, 68, .5); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(47, 158, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 68, 0); } }
.hero-title {
  font: 600 clamp(44px, 8.6vw, 128px)/.95 var(--serif); letter-spacing: -.045em; margin: 26px 0 0; max-width: 12.5em;
}
.hero-title i { color: var(--accent); }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.scribble-circle { position: absolute; left: -7%; top: -12%; width: 114%; height: 128%; overflow: visible; pointer-events: none; }
.scribble-circle path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.hero-note { position: absolute; right: var(--gutter); top: 175px; font-size: 21px; line-height: 1.25; transform: rotate(-4deg); margin: 0; text-align: left; }
.hero-note svg { display: block; width: 64px; height: 48px; margin-bottom: 4px; overflow: visible; }
.hero-note path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero .wrap { position: relative; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: clamp(36px, 6vh, 64px); }
.hero-copy { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 8vh, 80px) 0 0; border-top: 1px solid var(--rule); }
.hero-facts > div { padding: 18px 20px 26px 0; border-right: 1px solid var(--rule); }
.hero-facts > div + div { padding-left: 20px; }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts dt { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 6px 0 0; font: 600 clamp(26px, 2.9vw, 38px)/1.05 var(--serif); }
.clock dd { font-variant-numeric: tabular-nums; }

.marquee { margin-top: 10px; border-block: 1px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1.2deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font: 600 clamp(20px, 2.5vw, 30px)/1 var(--serif); padding: 16px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: "✺"; font-size: .6em; color: var(--accent); margin: 0 28px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 13vw, 160px) 0; position: relative; }
.section-paper2 { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .label { color: rgba(255, 255, 255, .55); }
.section-ink .section-copy { color: rgba(255, 255, 255, .72); }
.section-head { display: grid; grid-template-columns: 220px 1fr; column-gap: 40px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .label { padding-top: 14px; grid-row: span 2; }
.section-title { font: 600 clamp(36px, 5.3vw, 74px)/1 var(--serif); letter-spacing: -.04em; margin: 0; max-width: 15em; }
.section-title i { color: var(--accent); }
.section-copy { font-size: 18px; color: var(--ink-2); max-width: 40em; margin: 20px 0 0; }
.aside-line { margin: 40px 0 0; font-size: 15px; color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 18px; }
.aside-line a { color: var(--accent-deep); }

/* ---------- services (editorial accordion) ---------- */
.svc-list { border-top: 1.5px solid var(--ink); }
.svc { border-bottom: 1px solid var(--rule); }
.svc summary {
  list-style: none; cursor: pointer; display: grid; align-items: center; gap: 24px;
  grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1.4fr) 110px 40px; padding: 30px 0; position: relative;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary::before { content: ""; position: absolute; inset: 0 -20px; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; border-radius: 6px; }
.svc summary:hover::before { transform: scaleY(1); }
.svc summary:hover { color: var(--paper); }
.svc summary:hover .svc-desc, .svc summary:hover .svc-count { color: rgba(255, 255, 255, .7); }
.svc-list { position: relative; z-index: 0; }
.svc-num { font: 500 13px var(--mono); color: var(--accent); }
.svc-name { font: 600 clamp(26px, 3vw, 42px)/1.05 var(--serif); letter-spacing: -.01em; transition: transform .45s var(--ease); }
.svc summary:hover .svc-name { transform: translateX(10px); }
.svc-desc { color: var(--muted); font-size: 16px; transition: color .3s; }
.svc-count { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; transition: color .3s; }
.svc-plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; position: relative; justify-self: end; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc[open] .svc-plus::after { transform: translate(-50%, -50%) rotate(0); }
.svc-body { padding: 4px 0 36px 84px; }
.price-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 56px; }
.price-list li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.pl-name { font-weight: 500; }
.pl-desc { grid-column: 1; font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.price-list .pl-price { grid-column: 2; grid-row: 1 / span 2; align-self: start; font: 500 14px var(--mono); white-space: nowrap; }
.pl-price.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { color: var(--accent); transform: translateY(-4px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.svc-foot { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.svc-foot .label { display: inline; margin-right: 6px; }

/* ---------- work ---------- */
.section-ink .section-title i { color: var(--accent); }
.featured { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.feat { display: block; text-decoration: none; color: var(--paper); }
.feat-lg { grid-row: span 2; display: flex; flex-direction: column; }
.feat-lg .feat-img { flex: 1; min-height: 0; }
.feat-lg .feat-img img { height: 100%; aspect-ratio: auto; object-position: top; }
.feat-img { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--rule-light); background: #17181B; }
.feat-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.feat:hover .feat-img img { transform: scale(1.05); }
.feat-meta { display: grid; gap: 4px; padding-top: 14px; }
.feat-meta strong { font: 600 30px/1.05 var(--serif); }
.feat-meta > span:last-child { color: rgba(255, 255, 255, .65); font-size: 15px; }
.feat-meta .label { color: var(--accent); }

.index-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(70px, 9vw, 110px); padding-bottom: 20px; border-bottom: 1.5px solid var(--paper); }
.index-title { font: 600 clamp(30px, 3.2vw, 42px)/1 var(--serif); margin: 0; }
.index-title .hand-inline { font-size: 19px; }
.index-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { height: 40px; width: 210px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-light); background: transparent; color: var(--paper); font: 15px var(--sans); }
.search::placeholder { color: rgba(255, 255, 255, .45); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-light); background: none; font-size: 14px; color: rgba(255, 255, 255, .8); transition: background .25s, color .25s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--paper); color: var(--ink); }

.index { list-style: none; margin: 0; padding: 0; }
.index li { border-bottom: 1px solid var(--rule-light); }
.index li.is-hidden { display: none; }
.index a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.3fr) 120px 30px; gap: 20px; align-items: center; padding: 18px 0; text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.i-num { font: 500 13px var(--mono); color: rgba(255, 255, 255, .45); }
.i-name { font: 600 clamp(19px, 1.9vw, 25px)/1.15 var(--serif); }
.i-desc { font-size: 15px; color: rgba(255, 255, 255, .6); }
.i-cat { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .45); }
.i-go { justify-self: end; transition: transform .4s var(--ease); }
.index a:hover { padding-left: 14px; color: var(--accent); }
.index a:hover .i-go { transform: rotate(45deg); }
.no-results { padding: 30px 0; color: rgba(255, 255, 255, .7); }
.show-all { margin-top: 30px; }

.preview { position: fixed; left: 0; top: 0; width: 320px; aspect-ratio: 16 / 10; pointer-events: none; z-index: 80; border-radius: 10px; overflow: hidden;
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.preview.on { opacity: 1; transform: scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- quote ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
.q-group + .q-group { margin-top: 30px; }
.q-group .label { margin-bottom: 12px; }
.q-items { display: flex; flex-wrap: wrap; gap: 8px; }
.q-item { position: relative; }
.q-item input { position: absolute; opacity: 0; pointer-events: none; }
.q-item label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card);
  font-size: 15px; cursor: pointer; user-select: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.q-item label::before { content: "+"; font: 500 14px var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
.q-item input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.q-item input:checked + label::before { content: "✓"; color: var(--marker); }
.q-item input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-item label:active { transform: scale(.96); }
.quote-card { position: sticky; top: 100px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 26px; box-shadow: 8px 8px 0 var(--ink); }
.quote-lines { list-style: none; margin: 14px 0 0; padding: 0; min-height: 60px; }
.quote-lines li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.quote-lines li.empty { display: block; color: var(--muted); border: 0; }
.quote-lines .amt { font: 500 13.5px var(--mono); }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font: 500 12px var(--mono); color: var(--muted); }
.qty button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); font: 500 13px/1 var(--mono); padding: 0; }
.quote-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.quote-total span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.quote-total strong { font: 600 44px/1 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.quote-small { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.quote-actions { display: grid; gap: 10px; justify-items: center; }
.quote-hand { position: absolute; right: 18px; top: -18px; background: var(--marker); color: var(--ink); padding: 2px 12px; font-size: 17px; transform: rotate(3deg); margin: 0; }

/* ---------- notes promo ---------- */
.notes { background: var(--paper-2); overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(72, 119, 172, .18) 39px 40px); }
.notes::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(20px, 6vw, 90px); width: 2px; background: rgba(226, 92, 92, .45); }
.notes-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.notes-title { font: 700 clamp(40px, 5.6vw, 76px)/1.05 var(--hand); margin: 18px 0 0; color: #1e3a8a; transform: rotate(-1.5deg); }
.notes-title .hl { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); color: var(--accent-deep); padding: 0 6px; }
.notes-copy { font-size: 18px; max-width: 32em; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 20px 0 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 21px var(--hand); }
.ticks li::before { content: "✓ "; color: #2F9E44; }
.row-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.notes-fan { position: relative; height: 470px; display: block; }
.notes-fan img { position: absolute; left: 50%; top: 50%; width: 250px; border-radius: 6px; box-shadow: 0 20px 40px rgba(10, 10, 10, .22); transition: transform .7s var(--ease); }
.notes-fan img:nth-child(1) { transform: translate(-95%, -50%) rotate(-10deg); }
.notes-fan img:nth-child(2) { transform: translate(-5%, -54%) rotate(9deg); }
.notes-fan img:nth-child(3) { transform: translate(-50%, -48%) rotate(-1deg); }
.notes-fan:hover img:nth-child(1) { transform: translate(-125%, -50%) rotate(-16deg); }
.notes-fan:hover img:nth-child(2) { transform: translate(25%, -54%) rotate(15deg); }
.notes-fan:hover img:nth-child(3) { transform: translate(-50%, -56%) rotate(0); }
.fan-note { position: absolute; right: 0; bottom: 6px; font-size: 22px; transform: rotate(-6deg); text-decoration: none; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); border-radius: 16px; }
.plan { padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan + .plan { border-left: 1.5px solid var(--ink); }
.plan-main { background: var(--ink); color: var(--paper); }
.plan-main .plan-for, .plan-main li { color: rgba(255, 255, 255, .75); }
.plan-name { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 0; color: var(--accent); }
.plan-price { font: 600 clamp(38px, 3.9vw, 52px)/1 var(--serif); margin: 18px 0 8px; }
.plan-price .pl-price { font: inherit; }
.plan-for { color: var(--muted); margin: 0 0 22px; min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.plan li { padding: 10px 0; border-top: 1px dashed var(--rule); font-size: 15.5px; }
.plan-main li { border-color: var(--rule-light); }
.plan li::before { content: "→ "; color: var(--accent); font-family: var(--mono); }
.plan-pick { position: absolute; top: -34px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; font-size: 20px; margin: 0; }
.plan-main .btn-accent { --hover: var(--paper); --hover-fg: var(--ink); }

/* ---------- process ---------- */
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 60px; overflow: visible; }
.steps-line path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); font: 600 32px/1 var(--serif); }
.steps li:nth-child(even) .step-n { margin-top: 20px; }
.steps h3 { font: 600 32px/1.1 var(--serif); margin: 22px 0 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.about-logo { width: 110px; margin-top: 26px; border-radius: 50%; filter: grayscale(1) contrast(1.1); transition: filter .5s; }
.about-logo:hover { filter: none; }
.about-title { font: 600 clamp(30px, 3.9vw, 52px)/1.1 var(--serif); letter-spacing: -.015em; margin: 0; max-width: 17em; }
.about-title i { color: var(--accent); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 36px; color: var(--ink-2); }
.about-cols p { margin: 0; }
.signature { font: 700 44px var(--hand); color: var(--accent); margin: 26px 0 0; transform: rotate(-4deg); display: inline-block; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .section-title { margin-top: 16px; font-size: clamp(34px, 4.2vw, 58px); }
.faq-list { border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font: 600 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 26px/1 var(--mono); color: var(--accent); transition: transform .4s var(--ease); flex: none; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa > div { overflow: hidden; }
.qa p { margin: 0; padding: 0 0 24px; color: var(--ink-2); max-width: 36em; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-title { font: 600 clamp(46px, 6.8vw, 100px)/.98 var(--serif); letter-spacing: -.025em; margin: 18px 0 0; }
.contact-title i { color: var(--accent); }
.contact-links { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-links li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule-light); }
.contact-links a { font: 600 22px var(--serif); text-decoration: none; transition: color .25s; word-break: break-word; }
.contact-links a:hover { color: var(--accent); }
.form { display: grid; gap: 8px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--rule-light); background: transparent; color: var(--paper);
  font: 18px var(--sans); padding: 30px 0 12px; border-radius: 0; transition: border-color .3s;
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(-45deg, transparent 50%, var(--paper) 50%); background-size: 6px 6px; background-position: calc(100% - 12px) 36px, calc(100% - 6px) 36px; background-repeat: no-repeat; }
.field select option, .field select optgroup { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field label { position: absolute; left: 0; top: 30px; color: rgba(255, 255, 255, .55); pointer-events: none; transition: transform .3s var(--ease), color .3s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.static { transform: translateY(-24px) scale(.72); color: var(--accent); }
.form .btn { margin-top: 26px; }
.form-error { color: #FF6B6B; margin: 8px 0 0; }
.form-hint { font-size: 14px; color: rgba(255, 255, 255, .55); margin: 6px 0 0; text-align: center; }
.form-hint a { color: var(--paper); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 30px 0 26px; border-top: 1px solid var(--rule-light); overflow: hidden; }
.footer .label { color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 40px 0; }
.footer-grid a { display: block; text-decoration: none; padding: 4px 0; color: rgba(255, 255, 255, .85); transition: color .25s, transform .3s var(--ease); }
.footer-grid a:hover { color: var(--accent); transform: translateX(6px); }
.footer-tip { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer kbd { background: transparent; color: var(--paper); border-color: var(--rule-light); }
.footer-mark { letter-spacing: -.06em; font: 600 clamp(56px, 15.5vw, 236px)/.85 var(--serif); letter-spacing: -.04em; margin: 10px 0 0; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, var(--paper) 30%, rgba(255, 255, 255, .08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-light); }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 10, .45); backdrop-filter: blur(4px); display: grid; place-items: start center; padding: 14vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-box { width: min(620px, 100%); background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.palette-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.palette-top svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.palette-top input { flex: 1; border: 0; background: none; font: 18px var(--sans); color: var(--ink); outline: none; min-width: 0; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-list .grp { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; }
.palette-list [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.palette-list [role="option"] small { color: var(--muted); font: 500 12px var(--mono); }
.palette-list [aria-selected="true"] { background: var(--ink); color: var(--paper); }
.palette-list [aria-selected="true"] small { color: rgba(255, 255, 255, .6); }
.palette-list .none { padding: 16px 12px; color: var(--muted); }
.palette-foot { display: flex; gap: 18px; margin: 0; padding: 10px 18px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.palette-foot kbd { margin-right: 3px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 180%); visibility: hidden; z-index: 210; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 15px; transition: transform .45s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* hero waits for the intro animation; shows by itself after 2.5s if the scripts never run */
@media (prefers-reduced-motion: no-preference) {
  .anim-pending .nav, .anim-pending .hero-label, .anim-pending .hero-title, .anim-pending .hero-note,
  .anim-pending .hero-bottom, .anim-pending .hero-facts, .anim-pending .marquee { opacity: 0; animation: cy-show 0s 2.5s forwards; }
}
@keyframes cy-show { to { opacity: 1; } }

/* ---------- animation hooks (only when JS + GSAP are running) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(30px); }
.anim .scribble-circle path { stroke-dashoffset: 1400; }
.anim .steps-line path { stroke-dasharray: none; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .kbd-btn kbd { display: none; }
}
@media (max-width: 1250px) { .hero-note { display: none; } }
@media (max-width: 980px) {
  .feat-lg .feat-img img { aspect-ratio: 16 / 10; height: auto; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; margin: 0;
    background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 10px;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font: 600 30px/1.2 var(--serif); padding: 10px 14px; }
  .nav-tools { margin-left: auto; }
  .hero-note { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:nth-child(2) { border-right: 0; }
  .hero-facts > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .hero-facts > div:nth-child(4) { border-top: 1px solid var(--rule); }
  .section-head { grid-template-columns: 1fr; }
  .section-head .label { padding: 0 0 14px; }
  .svc summary { grid-template-columns: 40px 1fr 40px; row-gap: 6px; padding: 24px 0; }
  .svc-desc { grid-column: 2; grid-row: 2; font-size: 15px; }
  .svc-count { display: none; }
  .svc-plus { grid-column: 3; grid-row: 1 / span 2; }
  .svc-body { padding-left: 0; }
  .price-list { columns: 1; }
  .featured { grid-template-columns: 1fr; }
  .feat-lg { grid-row: auto; }
  .index a { grid-template-columns: 40px 1fr 24px; gap: 12px; }
  .i-desc, .i-cat { display: none; }
  .preview { display: none; }
  .quote { grid-template-columns: 1fr; }
  .quote-card { position: relative; top: 0; }
  .notes-inner { grid-template-columns: 1fr; }
  .notes-fan { height: 400px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1.5px solid var(--ink); }
  .plan-main { border-radius: 0; }
  .plan-pick { position: static; transform: rotate(-3deg); display: inline-block; margin-bottom: 10px; color: var(--marker); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps-line { display: none; }
  .steps li:nth-child(even) .step-n { margin-top: 0; }
  .about { grid-template-columns: 1fr; gap: 0; }
  .about-logo { margin: 18px 0 26px; width: 80px; }
  .about-cols { grid-template-columns: 1fr; gap: 16px; }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .faq-head { position: static; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding-left: 12px; gap: 8px; }
  .wordmark span { font-size: 16px; } .wordmark em { font-size: 19px; }
  .nav-cta, .kbd-btn { display: none; }
  .hero-title { font-size: clamp(46px, 13.5vw, 70px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-actions .link-arrow { align-self: flex-start; }
  .hero-facts dd { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .notes-fan img { width: 190px; }
  .notes-fan { height: 330px; }
  .quote-total strong { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .contact-links li { grid-template-columns: 1fr; gap: 2px; }
  .index-controls, .search { width: 100%; }
}

@media print {
  .nav, .marquee, .palette, .preview, .toast, #cy-fab { display: none !important; }
  body::before { display: none; }
}
