/* ==========================================================================
   Logicschmiede - Stylesheet
   Formregel: Buttons = Pille, Karten = 16px, Eingabefelder = 10px.
   Eine Akzentfarbe (--accent) für die ganze Seite.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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: "Outfit";
  src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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;
}

:root {
  --bg: #f6f7f8;
  --surface: #fdfdfd;
  --surface-2: #eef0f2;
  --ink: #15181b;
  --muted: #4a525c;
  --line: #dfe3e7;
  --accent: #c23d0b;
  --accent-hover: #a5330a;
  --accent-soft: #fbece4;
  --dark: #181b1f;
  --dark-muted: #b9c0c8;
  --success: #17703f;
  --error: #b42318;

  --radius-card: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(21 24 27 / .05), 0 12px 32px -12px rgb(21 24 27 / .14);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  /* Motion tokens (Emil Kowalski / animate skill) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* z-index scale */
  --z-nav: 50;
  --z-fab: 40;

  interpolate-size: allow-keywords; /* lets the FAQ animate to height:auto where supported */
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* no gray flash on tap; every control has :active instead */
  scrollbar-color: #b9c0c8 var(--bg);
  /* overscroll-behavior left default: this is a scrolling document, pull-to-refresh is welcome */
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: #f6cdb8; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a, button, label, summary, [role="button"] { touch-action: manipulation; } /* no 300ms double-tap delay */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.container {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 112px); }
section[id] { scroll-margin-top: 68px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .section-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-head p { margin-top: 14px; color: var(--muted); max-width: 60ch; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; font-size: 1rem; white-space: nowrap;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-hover); }
.btn-primary .icon { transition: transform 200ms var(--ease-out); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:active { border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:hover .icon { transform: translateX(3px); }
  .btn-ghost:hover { border-color: var(--ink); }
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* Navigation ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgb(246 247 248 / .86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; line-height: 1;
}
.logo-mark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .975rem; transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
  user-select: none; -webkit-user-select: none; transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(.95); }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-phone, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 68px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    /* close: fast */
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s 150ms;
  }
  .mobile-menu.is-open {
    opacity: 1; transform: none; visibility: visible;
    /* open: a touch slower so the panel reads as arriving from the header */
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s;
  }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li a { display: block; padding: 14px 0; text-decoration: none; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; margin-top: 20px; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero-sub strong { color: var(--ink); font-weight: 650; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero visual: real mini website inside a browser frame + phone frame */
.hero-visual { position: relative; min-height: 440px; }
.browser {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden;
  width: 90%;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd4da; }
.browser-url {
  margin-left: 10px; flex: 1; font-size: .75rem; color: var(--muted); background: var(--surface);
  border-radius: var(--radius-pill); padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo { font-size: 13px; line-height: 1.45; }
.demo-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-weight: 600; }
.demo-nav span:last-child { font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.demo-hero { position: relative; height: 230px; }
.demo-hero img { width: 100%; height: 100%; object-fit: cover; }
.demo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 17 20 / .72), rgb(15 17 20 / .1)); }
.demo-hero-text { position: absolute; z-index: 1; left: 20px; bottom: 22px; color: #fdfdfd; max-width: 60%; }
.demo-hero-text b { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.demo-hero-text span { display: inline-block; margin-top: 12px; background: var(--accent); padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.demo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 20px; }
.demo-row div { background: var(--surface-2); border-radius: 10px; padding: 10px; font-size: 11px; color: var(--muted); }
.demo-row div b { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }

.phone {
  position: absolute; right: 0; bottom: -24px; width: 168px; background: var(--ink);
  border-radius: 28px; padding: 8px; box-shadow: 0 24px 48px -16px rgb(21 24 27 / .35);
}
.phone-screen { background: var(--surface); border-radius: 21px; overflow: hidden; font-size: 10px; }
.phone-screen .demo-nav { padding: 12px 12px 8px; font-size: 10px; }
.phone-screen img { height: 150px; width: 100%; object-fit: cover; }
.phone-screen .phone-copy { padding: 10px 12px 14px; }
.phone-screen .phone-copy b { display: block; font-size: 13px; line-height: 1.15; }
.phone-screen .phone-copy span { display: block; margin-top: 8px; background: var(--accent); color: #fff; text-align: center; padding: 6px; border-radius: 99px; font-weight: 600; }

/* Trust strip ------------------------------------------------------------ */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.trust .icon { color: var(--accent); width: 24px; height: 24px; }

/* Leistungen bento ------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; border-radius: var(--radius-card); padding: 28px; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--muted); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
}
.tile-icon .icon { width: 24px; height: 24px; }
.tile-a { grid-column: span 4; flex-direction: row; padding: 0; }
.tile-a .tile-body { padding: 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; }
.tile-a .tile-media { flex: 0 0 44%; }
.tile-a .tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-a h3 { font-size: 1.6rem; }
.tile-b { grid-column: span 2; background: var(--dark); border-color: var(--dark); color: #f3f4f5; }
.tile-b p { color: var(--dark-muted); }
.tile-b .tile-icon { background: rgb(255 255 255 / .08); color: #ff8a5c; }
.tile-c, .tile-d { grid-column: span 2; }
.tile-e { grid-column: span 2; background: var(--accent-soft); border-color: #f4d7c7; }
.tile-e .tile-icon { background: var(--surface); }
.tile-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }

/* Referenzen -------------------------------------------------------------
   Scroll-Vorschau: das Ganzseiten-Bild wird per transform im Rahmen verschoben.
   100cqh = Höhe des Sichtfensters (container query), daher reines CSS ohne Messen.
   Hinweg langsam (Dauer je nach Seitenlänge, per JS gesetzt), Rückweg schnell. */
.refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 40px); }
.ref { display: grid; gap: 24px; align-content: start; }
.ref:only-child { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.ref-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.ref-viewport {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; container-type: size;
  background: var(--surface-2); cursor: ns-resize; outline-offset: -3px;
}
.ref-shot {
  width: 100%; height: auto; max-width: none;
  transform: translateY(0);
  /* Rückweg: schnell und bestimmt */
  transition: transform 700ms var(--ease-in-out);
  will-change: transform;
}
.ref-viewport:focus-visible .ref-shot,
.ref-viewport.is-playing .ref-shot {
  transform: translateY(calc(-100% + 100cqh));
  /* Hinweg: ruhig, Dauer proportional zur Seitenlänge */
  transition: transform var(--scroll-duration, 6s) var(--ease-in-out);
}
@media (hover: hover) and (pointer: fine) {
  .ref-viewport:hover .ref-shot {
    transform: translateY(calc(-100% + 100cqh));
    transition: transform var(--scroll-duration, 6s) var(--ease-in-out);
  }
}

.ref-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.ref-meta { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.ref-body > p:not(.ref-meta):not(.ref-hint) { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.ref-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ref-list li { display: flex; gap: 10px; align-items: flex-start; }
.ref-list .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; }
.ref-hint { margin-top: 22px; font-size: .875rem; color: var(--muted); display: flex; gap: 8px; }
.ref-hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .ref-hint-mouse { display: none; }
  .ref-hint-touch { display: flex; }
  .ref-viewport { cursor: default; }
}

/* Reduced motion: keine automatische Bewegung, stattdessen selbst scrollbar */
@media (prefers-reduced-motion: reduce) {
  .ref-viewport { overflow-y: auto; overscroll-behavior: contain; cursor: auto; }
  .ref-shot, .ref-viewport:hover .ref-shot, .ref-viewport:focus-visible .ref-shot, .ref-viewport.is-playing .ref-shot { transform: none; transition: none; }
  .ref-hint-mouse, .ref-hint-touch { display: none; }
}

@media (max-width: 900px) {
  .refs { grid-template-columns: 1fr; }
  .ref:only-child { grid-template-columns: 1fr; }
}

/* Pakete ----------------------------------------------------------------- */
.pricing-section { background: var(--surface); border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 20px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px;
  background: var(--bg); display: flex; flex-direction: column;
}
.plan h3 { font-size: 1.35rem; }
.plan-for { color: var(--muted); margin-top: 6px; min-height: 3.2em; }
.plan-price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.plan-price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-price strong { font-size: 2.6rem; letter-spacing: -0.03em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-note { font-size: .875rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--accent); margin-top: 3px; width: 18px; height: 18px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-featured { background: var(--dark); border-color: var(--dark); color: #f3f4f5; position: relative; padding-top: 40px; }
.plan-featured .plan-for, .plan-featured .plan-note, .plan-featured .plan-price small { color: var(--dark-muted); }
.plan-featured li .icon { color: #ff8a5c; }
.plan-badge {
  position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff;
  font-size: .8125rem; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill);
}
.pricing-extra {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 28px; border-radius: var(--radius-card); border: 1px dashed #c9cfd6;
}
.pricing-extra p { color: var(--muted); }
.pricing-extra strong { color: var(--ink); }

/* Ablauf ----------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--line); }
.step { position: relative; }
.step-dot {
  position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 20px;
}
.step:first-child .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 8px; color: var(--muted); }
.step-time { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.step-time .icon { width: 16px; height: 16px; color: var(--muted); }

/* FAQ -------------------------------------------------------------------- */
.faq-section { padding-top: 0; }
.contact-lead { color: var(--muted); margin-top: 14px; max-width: 44ch; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-aside p { color: var(--muted); margin-top: 14px; }
.faq-aside .btn { margin-top: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.0625rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary { user-select: none; -webkit-user-select: none; }
.faq-list summary .icon { transition: transform 200ms var(--ease-out); color: var(--accent); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); max-width: 65ch; }
/* Accordion: height is the sanctioned exception (no transform equivalent). Progressive: browsers
   without ::details-content simply open instantly. */
.faq-list details::details-content {
  height: 0; overflow: clip;
  transition: height 250ms var(--ease-out), content-visibility 250ms allow-discrete;
}
.faq-list details[open]::details-content { height: auto; }

/* Kontakt ---------------------------------------------------------------- */
.contact-section { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.channels { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-card);
  border: 1px solid var(--line); background: var(--bg); text-decoration: none;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.channel:active { transform: scale(.98); border-color: var(--ink); }
.channel > .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .channel:hover { border-color: var(--ink); }
  .channel:hover > .icon { transform: translateX(3px); color: var(--accent); }
}
.channel-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.channel-icon .icon { width: 22px; height: 22px; }
.channel b { display: block; font-weight: 600; }
.channel span { color: var(--muted); font-size: .9375rem; }
.channel > .icon { margin-left: auto; color: var(--muted); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  color: var(--ink); background: var(--bg); transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.social:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .social:hover { border-color: var(--accent); color: var(--accent); } }
.contact-hours { margin-top: 22px; color: var(--muted); font-size: .9375rem; display: flex; gap: 8px; align-items: center; }

.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); margin-top: 6px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .fieldset legend { font-weight: 600; font-size: .9375rem; }
.field label small, .fieldset legend small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid #c6ccd3; border-radius: var(--radius-input); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b737d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(194 61 11 / .14); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; min-height: 0; }
.field-error:empty { display: none; }
.fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.fieldset legend { margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1.5px solid #c6ccd3; background: var(--surface); cursor: pointer; font-size: .9375rem; font-weight: 500;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.chip span:active { transform: scale(.97); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--ink); }
.form-privacy { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); }
.form-privacy a { color: var(--ink); }
.price-legal { margin-top: 18px; font-size: .8125rem; color: var(--muted); max-width: 90ch; }
.price-legal a { color: var(--ink); }
.plan-note sup, .pricing-extra sup { font-size: .7em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-submit .btn[disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { grid-column: 1 / -1; display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-input); font-weight: 500; }
.form-status.is-visible {
  display: flex;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(4px); }
}
.form-status.is-success { background: #e7f4ec; color: var(--success); }
.form-status.is-error { background: #fdecea; color: var(--error); }
.form-status .icon { width: 22px; height: 22px; margin-top: 1px; }
.form-status a { color: inherit; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--dark-muted); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo { color: #f3f4f5; }
.footer .logo-mark { background: #f3f4f5; color: var(--dark); }
.footer p { margin-top: 14px; max-width: 34ch; }
.footer h4 { color: #f3f4f5; font-size: 1rem; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: #fff; } }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer-bottom nav { display: flex; gap: 22px; }

/* Floating WhatsApp ------------------------------------------------------ */
.fab {
  position: fixed; z-index: var(--z-fab);
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: #1f8f4e; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgb(21 24 27 / .45);
  transition: transform 160ms var(--ease-out);
  -webkit-touch-callout: none;
}
.fab:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .fab:hover { transform: scale(1.05); } .fab:active { transform: scale(.97); } }
.fab .icon { width: 30px; height: 30px; }

/* Legal pages ------------------------------------------------------------ */
.legal { max-width: 760px; padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 1.25rem; display: grid; gap: 6px; margin: 10px 0 0; }
.legal a { color: var(--ink); }
.legal-toc { margin-bottom: 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.legal-toc ol { margin: 0; columns: 2; column-gap: 32px; display: block; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { text-decoration: none; }
.legal-form { margin-top: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); display: grid; gap: 6px; }
.legal-blank { border-bottom: 1px solid #c6ccd3; min-height: 1.6em; margin-bottom: 10px !important; }
.legal-date { margin-top: 32px !important; font-size: .9rem; }
.footer-legal { padding: 28px 0; }
.footer-legal .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.footer a[aria-current="page"] { color: #fff; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-note { background: var(--accent-soft); border: 1px solid #f4d7c7; border-radius: var(--radius-card); padding: 18px 22px; color: var(--ink) !important; margin-bottom: 28px; }

/* Motion ------------------------------------------------------------------
   One authored moment: the hero arrives once, staggered (60ms) with a strong
   ease-out. Everything below the fold is visible by default; no per-section
   reveal. CSS keyframes because it is predetermined and runs off the main
   thread while fonts/images load. */
.hero-copy > * { animation: rise 700ms var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-visual { animation: rise-visual 900ms 160ms var(--ease-out) both; }
.hero-visual .phone { animation: rise 700ms 360ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-visual { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

/* Reduced motion: fewer and gentler, not zero. Keep the fade, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-visual, .hero-visual .phone { animation-name: fade; animation-duration: 300ms; }
  .btn-primary .icon, .channel > .icon { transition: none; transform: none !important; }
  .faq-list details::details-content { transition: none; }
  .form-status.is-visible { transition: opacity 200ms ease; @starting-style { opacity: 0; transform: none; } }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-a { grid-column: span 2; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
  .tile-e { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-bottom: 32px; }
  .browser { width: 86%; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-ctas .btn { width: 100%; }
  .browser { width: 100%; }
  .demo-hero { height: 180px; }
  .demo-row { grid-template-columns: repeat(2, 1fr); }
  .demo-row div:last-child { display: none; }
  .phone { width: 128px; bottom: -36px; right: -6px; border-radius: 22px; padding: 6px; }
  .phone-screen { border-radius: 17px; }
  .phone-screen img { height: 110px; }
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
  .tile-a { flex-direction: column-reverse; }
  .tile-a .tile-media { flex-basis: auto; height: 200px; }
  .tile-a .tile-body { padding: 26px; }
  .trust ul { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .pricing-extra { padding: 20px; }
}
