@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --bg-soft: #f6f4fb;
  --surface: #ffffff;
  --surface-2: #f8f7fb;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.1);
  --violet: #7c3aed;
  --violet-2: #9f67ff;
  --violet-soft: #f1e9ff;
  --gold: #c8a96b;
  --gold-soft: #fff6df;
  --shadow: 0 22px 70px rgba(16, 24, 40, 0.10);
  --shadow-soft: 0 14px 34px rgba(124, 58, 237, 0.13);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 78px;
  --space-1: 12px;
  --space-2: 24px;
  --space-3: 48px;
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #080b14;
  --bg-soft: #111827;
  --surface: #101828;
  --surface-2: #151e2e;
  --ink: #f9fafb;
  --text: #d0d5dd;
  --muted: #98a2b3;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #a78bfa;
  --violet-2: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.18);
  --gold: #e6c77a;
  --gold-soft: rgba(200, 169, 107, 0.15);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 34px rgba(124, 58, 237, 0.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(124, 58, 237, 0.09), transparent 28rem),
    radial-gradient(circle at 85% 2%, rgba(200, 169, 107, 0.16), transparent 24rem),
    var(--bg);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(124, 58, 237, 0.18); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: clamp(70px, 9vw, 122px) 0;
  position: relative;
}
.section-tight { padding: clamp(56px, 7vw, 92px) 0; }
.section-muted { background: linear-gradient(180deg, transparent, var(--surface-2) 15%, var(--surface-2) 85%, transparent); }
.section-header {
  max-width: 840px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}
.section-header h2 { max-width: 900px; }
.section-header .lead {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .10);
}
.display-title,
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.035em;
  line-height: .98;
  font-weight: 700;
}
h1 { font-size: clamp(44px, 8vw, 92px); max-width: 780px; }
h2 { font-size: clamp(34px, 5vw, 62px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
p { margin: 0; line-height: 1.75; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 650px; }
.small { font-size: 13px; color: var(--muted); }
.gradient-text {
  background: linear-gradient(110deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}
.brand-logo {
  width: clamp(190px, 16vw, 250px);
  height: auto;
  object-fit: contain;
}
[data-theme='dark'] .brand-logo { filter: brightness(0) invert(1); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--ink);
  background: var(--surface-2);
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.icon-button, .text-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.icon-button {
  width: 42px;
  display: grid;
  place-items: center;
}
.text-button { padding: 0 14px; }
.icon-button:hover, .text-button:hover {
  border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
  background: color-mix(in srgb, var(--violet-soft) 62%, var(--surface));
  box-shadow: 0 10px 24px rgba(124, 58, 237, .10);
}
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  background-size: 210% 100%;
  background-position: 0% 50%;
  transition: background-position .32s ease, box-shadow .32s ease, border-color .32s ease, color .32s ease, filter .32s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 36%);
  transition: opacity .32s ease;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  color: white;
  background-image: linear-gradient(135deg, var(--violet-2), var(--violet) 50%, color-mix(in srgb, var(--gold) 86%, var(--violet)) 100%);
  box-shadow: 0 16px 32px rgba(124, 58, 237, .26);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 44px rgba(124, 58, 237, .34), 0 0 0 4px rgba(124, 58, 237, .09);
}
.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--violet-soft) 78%, var(--surface)), color-mix(in srgb, var(--gold-soft) 72%, var(--surface)));
}
.btn-secondary:hover {
  color: var(--violet);
  border-color: color-mix(in srgb, var(--violet) 38%, var(--line));
  background-position: 100% 50%;
  box-shadow: 0 14px 30px rgba(16, 24, 40, .09);
}
.btn-gold {
  color: #15110a;
  background-image: linear-gradient(135deg, #fff2cd, var(--gold), #9f67ff);
  box-shadow: 0 16px 32px rgba(200, 169, 107, .22);
}
.btn-gold:hover { background-position: 100% 50%; }
.mobile-toggle { display: none; }
.mobile-menu { display: none; }

.hero {
  padding: clamp(52px, 7vw, 96px) 0 clamp(70px, 9vw, 124px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
}
.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 560px);
  margin-top: 24px;
}
.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.stat-card strong { display: block; color: var(--ink); font-size: 21px; margin-bottom: 2px; }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-visual {
  position: relative;
  min-height: 620px;
}
.visual-glow {
  position: absolute;
  inset: 12% -4% 8%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, .20), transparent 42%), radial-gradient(circle at 70% 70%, rgba(200, 169, 107, .22), transparent 40%);
  filter: blur(16px);
  pointer-events: none;
}
.phone-card {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--violet-soft) 52%, var(--surface)));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.invitation-preview {
  aspect-ratio: 0.72;
  border-radius: 26px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.14)),
    radial-gradient(circle at 20% 0, rgba(200, 169, 107, .45), transparent 28%),
    linear-gradient(135deg, #efe7da 0%, #faf6ec 42%, #d5c5aa 100%);
}
[data-theme='dark'] .invitation-preview {
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.02)),
    radial-gradient(circle at 20% 0, rgba(200, 169, 107, .25), transparent 28%),
    linear-gradient(135deg, #111827 0%, #1f2937 42%, #3a2f21 100%);
}
.mock-invite {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(16, 24, 40, .25);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  color: #101828;
  text-align: center;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.35);
}
[data-theme='dark'] .mock-invite { background: rgba(249, 250, 251, .88); }
.mock-date { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #7c3aed; font-weight: 700; }
.mock-monogram { align-self: center; font-family: 'Playfair Display', serif; font-size: 56px; color: #101828; letter-spacing: .18em; }
.mock-line { height: 1px; width: 68px; margin: 0 auto; background: rgba(16,24,40,.3); }
.mock-names { font-family: 'Playfair Display', serif; font-size: 30px; line-height: 1.05; color: #101828; }
.floating-note {
  position: absolute;
  right: -6px;
  bottom: 42px;
  width: min(310px, 66%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-soft);
}
.floating-note strong { display: block; color: var(--ink); margin-bottom: 4px; }
.floating-note span { font-size: 13px; color: var(--muted); }

.category-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.category-card, .feature-card, .step-card, .template-card, .price-card, .dashboard-card, .assistant-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.58) inset;
}
.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  min-height: 188px;
  padding: 24px;
  border-radius: 28px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: -45% -35% auto auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124,58,237,.16), transparent 64%);
  opacity: .72;
  pointer-events: none;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(16, 24, 40, .10), var(--shadow-soft);
  border-color: color-mix(in srgb, var(--violet) 38%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, var(--violet-soft));
}
.icon-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet-soft), var(--gold-soft));
  color: var(--violet);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 20px rgba(124,58,237,.10);
  font-size: 13px;
  font-weight: 700;
}
.icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.category-card strong, .feature-card strong, .step-card strong { color: var(--ink); font-size: 17px; }
.category-card > span:not(.icon-badge), .feature-card > span:not(.icon-badge), .step-card > span:not(.icon-badge):not(.step-no):not(.step-arrow) { color: var(--muted); font-size: 14px; line-height: 1.65; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 76px;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--violet) 36%, transparent), color-mix(in srgb, var(--gold) 48%, transparent), transparent);
  pointer-events: none;
}
.step-card {
  overflow: hidden;
  padding: 32px;
  border-radius: 32px;
  min-height: 304px;
  display: grid;
  align-content: start;
  gap: 20px;
  position: relative;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  opacity: .55;
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--violet) 36%, var(--line));
  box-shadow: 0 28px 60px rgba(16,24,40,.10), var(--shadow-soft);
}
.step-card.featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--violet-soft)), color-mix(in srgb, var(--surface) 92%, var(--gold-soft)));
  box-shadow: var(--shadow-soft);
}
.step-no {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold-soft) 76%, var(--surface));
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .1em;
}
.step-arrow { display: none; }

.assistant-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.assistant-copy { display: grid; gap: var(--space-2); }
.assistant-copy .lead { margin: 0; }
.assistant-list { display: grid; gap: 18px; margin-top: 0; }
.assistant-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.assistant-item div { display: grid; gap: 6px; }
.assistant-card {
  padding: 24px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.chat-row { display: flex; gap: 12px; align-items: flex-start; }
.chat-row.right { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.chat-row.right .chat-bubble { background: var(--violet); color: white; }
.palette-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.palette-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 6px 16px rgba(16,24,40,.12); }

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.template-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.template-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.template-art {
  min-height: 270px;
  padding: 16px;
  display: grid;
  align-items: end;
  background: linear-gradient(135deg, var(--violet-soft), var(--gold-soft));
}
.template-art.wedding { background: linear-gradient(145deg, #f5efe4, #d8c2a8); }
.template-art.birthday { background: radial-gradient(circle at 50% 18%, #fce7f3, transparent 32%), linear-gradient(145deg, #fff7ed, #c4b5fd); }
.template-art.business { background: linear-gradient(145deg, #111827, #7c3aed); }
.template-art.modern { background: radial-gradient(circle at 20% 20%, #c8a96b 0 12%, transparent 13%), radial-gradient(circle at 78% 34%, #7c3aed 0 10%, transparent 11%), linear-gradient(145deg, #ede9fe, #ffffff); }
.template-mini {
  min-height: 190px;
  border-radius: 18px;
  padding: 20px;
  background: rgba(255,255,255,.82);
  color: #101828;
  border: 1px solid rgba(16,24,40,.16);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.1;
}
.template-info { padding: 16px; }
.template-info strong { color: var(--ink); }
.template-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 30px;
  border-radius: 30px;
  display: grid;
  align-content: start;
  gap: 18px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.feature-card::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200,169,107,.18), transparent 68%);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--violet) 34%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--violet-soft)), color-mix(in srgb, var(--surface) 96%, var(--gold-soft)));
  box-shadow: 0 24px 50px rgba(16,24,40,.09), var(--shadow-soft);
}
.dashboard-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
}
.dashboard-card {
  padding: 18px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.dashboard-pill { padding: 7px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-size: 12px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); }
.metric strong { display: block; color: var(--ink); font-size: 24px; }
.metric span { color: var(--muted); font-size: 11px; font-weight: 700; }
.rsvp-list { display: grid; gap: 8px; margin-top: 14px; }
.rsvp-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text); font-size: 13px; }
.status { font-size: 11px; font-weight: 700; color: var(--violet); }
.dashboard-copy { display: grid; gap: var(--space-2); justify-items: start; }
.dashboard-copy .lead { margin: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card {
  padding: 26px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card.recommended {
  border-color: color-mix(in srgb, var(--violet) 42%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--violet-soft)), color-mix(in srgb, var(--surface) 92%, var(--gold-soft)));
  box-shadow: var(--shadow-soft);
  transform: translateY(-12px);
}
.price-badge {
  position: absolute;
  right: 22px;
  top: -14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.price-title { font-weight: 700; color: var(--ink); font-size: 20px; }
.price { font-family: 'Playfair Display', serif; font-size: 42px; color: var(--ink); line-height: 1; }
.price small { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text); font-size: 14px; }
.price-card li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.price-card li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.lead-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}
.form-copy { display: grid; gap: var(--space-2); }
.form-copy .lead { margin: 0; }
.lead-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--ink); font-size: 13px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 118px; resize: vertical; padding-top: 13px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.form-status { min-height: 22px; font-size: 13px; color: var(--muted); }
.form-status.success { color: #027a48; }
.form-status.error { color: #b42318; }
.cta-band {
  padding: clamp(46px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 10%, rgba(124, 58, 237, .18), transparent 34%),
    radial-gradient(circle at 75% 50%, rgba(200, 169, 107, .18), transparent 36%),
    color-mix(in srgb, var(--surface) 86%, transparent);
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}
.cta-band .lead { margin: 0 auto; }

.site-footer {
  padding: 54px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(150px, .55fr));
  gap: 28px;
}
.footer-brand { display: grid; gap: 14px; max-width: 360px; }
.footer-logo { width: 220px; height: auto; }
[data-theme='dark'] .footer-logo { filter: brightness(0) invert(1); }
.footer-col h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--violet);
  background: var(--surface);
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.socials a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  box-shadow: 0 14px 30px rgba(124,58,237,.22);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mobile-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 auto;
    z-index: 90;
    display: block;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    padding: 18px 20px 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: transform .25s ease, opacity .25s ease;
  }
  .mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu nav { display: grid; gap: 10px; }
  .mobile-menu a { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-weight: 700; }
  .hero-grid, .assistant-section, .dashboard-wrap, .lead-form-wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, var(--container)); }
  .section { padding: 64px 0; }
  .hero { padding-top: 34px; }
  .brand { min-width: 170px; }
  .brand-logo { width: 170px; }
  .text-button { min-width: 46px; padding-inline: 10px; }
  .hero-stats { grid-template-columns: 1fr; }
  .phone-card { padding: 12px; border-radius: 26px; transform: none; }
  .invitation-preview { border-radius: 20px; }
  .floating-note { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .category-grid, .feature-grid, .steps-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .step-card.featured, .price-card.recommended { transform: none; }
  .step-arrow { display: none; }
  .template-art { min-height: 220px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .templates-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 7px; }
  .icon-button, .text-button { width: 40px; min-height: 40px; }
  .text-button span.long { display: none; }
  .cta-band { padding: 34px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
