/* DaLinkz - landing page styles */

/* Shared brand tokens - must stay first. */
@import "../../shared/tokens.css";

/* Fonts - Inter self-hosted (assets/fonts/) as the variable woff2. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: 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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched Arial fallback so the Inter swap causes no reflow on first paint. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0.00%;
  size-adjust: 107.40%;
}

/* Colour/radius/shadow tokens come from shared/tokens.css; only the landing
   layout constant stays here. */
:root {
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Honour a reduced-motion preference: anchor jumps land instantly, no glide. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Visible keyboard focus for interactive elements; :where() keeps specificity at 0. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent, #e0398b);
  outline-offset: 2px;
}

/* Slim, theme-aware scrollbars (Firefox standard form + WebKit pseudo-elements). */
:root {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
::-webkit-scrollbar-corner { background: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  /* keep content off a landscape notch (viewport-fit=cover); 0 elsewhere */
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

img, svg { display: block; max-width: 100%; }

/* Ambient background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px circle at 15% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(620px circle at 90% 15%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%),
    radial-gradient(500px circle at 50% 100%, color-mix(in srgb, var(--accent-3) 10%, transparent), transparent 60%);
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  /* Inset box-shadow, not a real border: a transparent border on a pill over a
     gradient sibling mis-composites to a muddy rim in Chromium. */
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-small { padding: 9px 16px; font-size: 0.85rem; }
.btn-large { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* viewport-fit=cover: fill the status-bar strip; env() is 0 off-notch. */
  padding-top: env(safe-area-inset-top);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
/* No backdrop-filter: fall back to a solid header. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.logo-mark { width: 24px; height: 24px; border-radius: 6px; display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.site-nav a:not(.btn):hover { color: var(--text); }

/* Non-CTA links in a no-JS <details>: inline when wide, a panel under ☰ at ≤560px. */
.nav-disclosure { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 22px; }

@media (min-width: 561px) {
  .nav-toggle { display: none; }
  /* Disclosure is "always open" on desktop - override the closed-<details> hiding. */
  .nav-disclosure:not([open]) > .nav-links { display: flex; }
  /* Chrome 128+ hides ::details-content while closed; reveal the slot itself. */
  .nav-disclosure::details-content { content-visibility: visible; }
}

@media (max-width: 560px) {
  .nav-disclosure { position: relative; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    cursor: pointer;
    list-style: none;
  }
  .nav-toggle::-webkit-details-marker { display: none; }
  .nav-toggle:hover { color: var(--text); }
  .nav-bars,
  .nav-bars::before,
  .nav-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }
  .nav-bars { position: relative; }
  .nav-bars::before,
  .nav-bars::after { content: ""; position: absolute; left: 0; }
  .nav-bars::before { top: -6px; }
  .nav-bars::after { top: 6px; }

  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 168px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }
  .nav-disclosure[open] > .nav-links { display: flex; }
  .nav-links a:not(.btn) {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .nav-links a:not(.btn):hover { background: var(--surface-2); color: var(--text); }
}

/* ---------- Hero ---------- */
.hero { padding: 92px 0 60px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero-sub code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--accent-3);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Create section ---------- */
.create { padding: 20px 0 100px; }
.create-grid {
  display: grid;
  /* minmax(0,…) so a wide child can't push the track past its share */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}
.create-grid > * { min-width: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}
.form-card h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.card-sub { margin: 0 0 28px; color: var(--text-dim); font-size: 0.95rem; }

.field { margin-bottom: 22px; }
.field label,
.field .field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.optional { color: var(--text-faint); font-weight: 400; }

.field > input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field > input[type="text"]::placeholder { color: var(--text-faint); }
.field > input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Mask the browser autofill background with a large inset shadow and force the
   text colour; the long transition delay stops Chrome flashing it back. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--surface-2) inset;
  box-shadow: 0 0 0 100px var(--surface-2) inset;
  caret-color: var(--text);
  border-color: var(--border);
  transition: background-color 600000s 0s, color 600000s 0s;
}
input:autofill,
textarea:autofill,
select:autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--surface-2) inset;
  caret-color: var(--text);
  border-color: var(--border);
}

.field-hint {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}
.field-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.field-hint a:hover { text-decoration: underline; }

/* Badge on a feature label */
.pro-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Handle rows */
#handle-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.handle-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  animation: row-in 0.18s ease;
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.platform-select {
  width: 100%;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}
.platform-select:focus { border-color: var(--accent); }

.handle-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.handle-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.handle-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  min-width: 0;
}
.handle-input.invalid { color: var(--danger); }
.handle-input-wrap:has(.handle-input.invalid) { border-color: var(--danger); }
.handle-input-wrap:has(.handle-input.invalid):focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.remove-row {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.remove-row:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* The × is two geometric bars, not a glyph - glyphs sit off-center by font metrics. */
.remove-row::before,
.remove-row::after,
.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.remove-row::before,
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.remove-row::after,
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.remove-row:disabled { opacity: 0.35; cursor: not-allowed; }
.remove-row:disabled:hover { background: var(--surface-2); color: var(--text-dim); border-color: var(--border); }

.add-row-btn { margin-top: 12px; }

.form-error {
  margin: -8px 0 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
  font-size: 0.88rem;
}

/* Bot-check widget (fixed 300x65 iframe); the row scrolls on a narrow phone. */
.turnstile-row { margin: 0 0 18px; min-height: 65px; overflow-x: auto; }

.form-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ---------- Live preview ---------- */
.preview-sticky { position: sticky; top: 92px; }
.preview-label {
  margin: 0 0 12px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-mock {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto 14px;
}
.phone-screen {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 20px;
  min-height: 380px;
  text-align: center;
  overflow: hidden;   /* a long previewed handle stays inside the mock screen */
}
.preview-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.preview-name { font-weight: 700; font-size: 1.05rem; }
.preview-url {
  margin: 4px 0 22px;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.preview-links { display: flex; flex-direction: column; gap: 10px; }
.preview-empty {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 20px 0 0;
}
.preview-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  animation: row-in 0.18s ease;
}
.preview-link-icon {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
  filter: brightness(0) invert(1); /* dark monochrome SVGs -> white on the dark preview card */
}
@media (prefers-color-scheme: light) {
  .preview-link-icon { filter: none; }
}
.preview-link-handle {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- How it works ---------- */
.how { padding: 20px 0 110px; }
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 48px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.how-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.how-step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.how-step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing { padding: 20px 0 110px; }
.pricing-sub {
  max-width: 520px;
  margin: -30px auto 44px;
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.price-card-featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.price-name { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.price-tag {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price-period { color: var(--text-faint); font-size: 0.9rem; font-weight: 500; }
.price-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.price-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.price-list li.yes { color: var(--text); }
.price-list li.yes::before {
  content: "\2713";
  background: color-mix(in srgb, var(--success) 22%, transparent);
  color: var(--success);
}
.price-list li.no::before {
  content: "\2715";
  background: var(--surface-2);
  color: var(--text-faint);
}

/* ---------- FAQ ----------
   No-JS <details>/<summary>; the triangle is replaced with a +/x marker. */
.faq { padding: 20px 0 120px; }
.faq-sub {
  max-width: 520px;
  margin: -30px auto 44px;
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.15s ease;
}
.faq-item[open] summary { color: var(--text); }
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* ---------- Contact page ---------- */
.contact { padding: 64px 0 100px; }
.contact-head { max-width: 620px; margin: 0 auto 34px; text-align: center; }
.contact-head .eyebrow { margin-bottom: 14px; }
.contact-head h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.contact-head .lead { margin: 0; color: var(--text-dim); font-size: 1.02rem; }

.contact-card { max-width: 620px; margin: 0 auto; }

.contact-form .field { margin-bottom: 20px; }
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.contact-form .optional { color: var(--text-faint); font-weight: 400; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.contact-form select { cursor: pointer; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.contact-form .is-invalid { border-color: var(--danger); }
.contact-form .is-invalid:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.field-error { margin: 6px 0 0; color: var(--danger); font-size: 0.82rem; }
.char-note { margin: 6px 0 0; color: var(--text-faint); font-size: 0.8rem; }

.form-banner {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.form-banner-error {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}

.contact-sent { text-align: center; padding: 18px 0 6px; }
.contact-sent .sent-icon { font-size: 2.4rem; }
.contact-sent h2 { margin: 12px 0 8px; font-size: 1.4rem; font-weight: 800; }
.contact-sent p { margin: 0 auto 24px; max-width: 420px; color: var(--text-dim); }

/* Anti-spam trap field - out of flow, hidden from people and assistive tech. */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.82rem;
}
.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 7, 12, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px 32px;
  text-align: center;
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-icon { font-size: 2.2rem; margin-bottom: 10px; }
.modal-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.modal-sub { margin: 0 0 24px; color: var(--text-dim); font-size: 0.92rem; }

.result-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.modal-label {
  margin: 2px 0 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}
#result-link,
#result-pass {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-note { margin: 0; color: var(--text-faint); font-size: 0.78rem; }

/* ---------- Stats band ----------
   Full-width strip with hairline rules and a soft edge glow. */
.stats {
  position: relative;
  isolation: isolate;
  padding: 62px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 220px at 20% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(760px 220px at 82% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.stats-eyebrow {
  margin: 0 0 30px;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}
/* Hairline dividers between the three figures (desktop only). */
.stat + .stat { border-left: 1px solid var(--border); }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
}
.stat-num {
  font-size: clamp(2.3rem, 6.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Restore a solid fill where background-clip: text isn't honoured (old engines,
   forced-colors mode). */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-gradient,
  .stat-num {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
  }
}
@media (forced-colors: active) {
  .text-gradient,
  .stat-num {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .create-grid { grid-template-columns: 1fr; }
  /* One column: the phone mock is near-empty here and the modal shows the link. */
  .preview-wrap { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-sub { margin-top: -18px; }
  .faq-sub { margin-top: -18px; }
}

@media (max-width: 620px) {
  .stats { padding: 44px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); padding-top: 24px; }
}

@media (max-width: 560px) {
  .hero { padding: 60px 0 44px; }
  .wrap { padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .card { padding: 26px 16px; }
  /* platform picker on its own row; handle input + remove button share the next. */
  .handle-row { grid-template-columns: minmax(0, 1fr) auto; }
  .handle-row .platform-select { grid-column: 1 / -1; }
  .remove-row { justify-self: end; }
}

/* iOS Safari zooms when a focused input is < 16px; force 16px on small screens
   (!important to beat per-field font-size rules). */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch has no hover: neutralise sticky :hover on controls you stay on the page for. */
@media (hover: none) {
  .faq-item summary:hover { color: inherit; }
  .btn-ghost:hover { background: transparent; }
  .remove-row:hover {
    background: var(--surface-2);
    color: var(--text-dim);
    border-color: var(--border);
  }
}

/* Bigger tap targets on touch - the box grows, the drawn glyphs keep their size. */
@media (pointer: coarse) {
  .remove-row,
  .modal-close { width: 44px; height: 44px; }
  .btn-small { padding: 12px 18px; }
}

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));   /* clear the iOS home indicator / landscape notch */
  margin: 0 auto;
  z-index: 60;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55);
  animation: consent-in 0.25s ease both;
}
.consent-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.consent-text a { color: var(--accent-3); text-decoration: none; white-space: nowrap; }
.consent-text a:hover { text-decoration: underline; }
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
}
@media (max-width: 560px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .consent-actions { justify-content: flex-end; }
}
