/* Drawing with Love: brand tokens mirror apps/mobile/src/theme.ts (rose leads, plum grounds). */
:root {
  --bg: #ffffff;
  --band: #fdf0f4;
  --surface: #ffffff;
  --ink: #3a2e39;
  --muted: #6e5d6b;
  --rose: #e8638c;
  --rose-deep: #b3325f;
  --rose-soft: #ffe1ea;
  --line: #efd9e1;
  --phone: #3a2e39;
  --screen: #ffffff;
  --focus: #6c5ce7;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(58, 46, 57, 0.35);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1419;
    --band: #251b22;
    --surface: #2c2129;
    --ink: #f7eef2;
    --muted: #cdb9c5;
    --rose: #f07ea0;
    --rose-deep: #ff9fbd;
    --rose-soft: #4a2a38;
    --line: #3d2d37;
    --phone: #0e0a0d;
    --screen: #2c2129;
    --focus: #b3a8ff;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rose-deep);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 2.5rem);
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}

.brand img {
  border-radius: 9px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 0.55rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .lang {
  color: var(--rose-deep);
  font-weight: 700;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  color: var(--rose-deep);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--muted);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
  font-weight: 700;
}

.proof li::before,
.checks li::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--rose);
  vertical-align: 0.08em;
}

.cta {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.center .cta {
  justify-items: center;
}

.badge {
  display: inline-block;
  line-height: 0;
  padding: 12px;
  margin: -12px;
}

.badge img {
  height: 50px;
  width: auto;
}

.soon {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--rose-soft);
  border: 1px solid var(--line);
  max-width: 30rem;
}

.soon strong {
  font-size: 1.1rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 32rem;
}

/* Demo */
.demo {
  margin: 0;
}

.demo svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 30px rgba(58, 46, 57, 0.18));
}

.demo figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

.phone {
  fill: var(--phone);
}

.screen {
  fill: var(--screen);
}

.notch {
  fill: var(--phone);
}

.phone-label {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
}

.ink {
  fill: none;
  stroke: var(--rose);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 6s ease-in-out infinite;
}

.ink-remote {
  animation-name: draw-remote;
}

.wire {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}

.pulse {
  fill: var(--rose);
}

@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  40% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes draw-remote {
  0% { stroke-dashoffset: 1; opacity: 0.7; }
  4% { stroke-dashoffset: 1; opacity: 0.7; }
  44% { stroke-dashoffset: 0; opacity: 0.7; }
  48% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Sections */
.section,
.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.band {
  background: var(--band);
}

.premise h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.scenes {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.scenes li {
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--rose);
  border-radius: 12px;
  font-weight: 700;
}

.steps,
.features,
.deal-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}

.features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps li,
.features li,
.deal-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.6rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #b3325f;
  color: #ffffff;
  font-weight: 800;
}

.steps p,
.features p,
.deal-grid p {
  margin: 0;
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.shots img {
  width: 100%;
  border-radius: 28px;
  border: 8px solid var(--phone);
  box-shadow: var(--shadow);
  background: var(--screen);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.text-link {
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 700;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-deep);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 1.2rem 1.1rem;
  margin: 0;
  color: var(--muted);
}

.final h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

/* Legal pages */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--band);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 800;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.2rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.35rem 0;
}

.fine {
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .deal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .features,
  .shots {
    grid-template-columns: 1fr;
  }

  .shots img {
    max-width: 320px;
    margin-inline: auto;
  }

  .nav {
    font-size: 0.9rem;
    gap: 0 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ink,
  .ink-remote {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .pulse {
    display: none;
  }
}
