/* Patiyo website — same brand as the app (src/constants/theme.ts). */
:root {
  --pink: #e23d7a;
  --pink-light: #ff9cc2;
  --pink-soft: #fde7ef;
  --text: #16161a;
  --muted: #60646c;
  --bg: #ffffff;
  --surface: #f6f6f8;
  --border: #e4e4e9;
  --green: #1faf6b;
  --radius: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pink: #ff6fa3;
    --pink-soft: #3d1a28;
    --text: #f4f4f6;
    --muted: #b0b4ba;
    --bg: #0c0c0e;
    --surface: #1a1b1e;
    --border: #2e3135;
    --green: #2fcb80;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
@media (max-width: 720px) { .nav a:not(.lang):not(.cta-small) { display: none; } }
.cta-small { background: var(--pink); color: #fff !important; padding: 8px 16px; border-radius: 999px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--pink-light), #e23d7a 75%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.035em; font-weight: 800; }
.hero .lead { font-size: 20px; opacity: 0.95; margin: 0 0 28px; max-width: 34ch; }
.hero .phone { justify-self: center; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px; padding: 9px 16px 9px 14px;
  text-decoration: none; font-size: 12px; line-height: 1.2; opacity: 0.9;
}
.store-badge strong { display: block; font-size: 17px; }
a.store-badge:hover { opacity: 1; transform: translateY(-1px); }
a.store-badge { transition: transform 0.15s ease, opacity 0.15s ease; }
.store-badge svg { width: 24px; height: 24px; fill: #fff; }
.soon { font-size: 14px; opacity: 0.9; margin-top: 10px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .hero .phone { width: min(280px, 80%); }
}

/* ─── Waitlist form ──────────────────────────────────────── */
.waitlist { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
@media (max-width: 860px) { .waitlist { margin-inline: auto; } }
.waitlist .row { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px rgba(120, 10, 50, 0.25); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 10px 16px; color: #16161a;
}
.waitlist button {
  border: 0; border-radius: 999px; background: #16161a; color: #fff;
  font: inherit; font-weight: 700; padding: 10px 20px; cursor: pointer; white-space: nowrap;
}
.waitlist button:disabled { opacity: 0.6; cursor: default; }
.waitlist label.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; text-align: left; opacity: 0.95; }
.waitlist label.consent input { margin-top: 3px; accent-color: #16161a; }
.waitlist label.consent a { color: #fff; }
.form-msg { min-height: 1.5em; font-weight: 600; font-size: 15px; margin: 0; }
.form-msg.error { color: #ffe1e8; }

/* ─── Phone frame ────────────────────────────────────────── */
.phone {
  position: relative; border-radius: 44px; padding: 10px; background: #111;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #333;
  width: 300px; max-width: 100%;
}
/* Screenshots are full-height; the crop hides the status bar. */
.phone img { border-radius: 34px; width: 100%; height: auto; aspect-ratio: 1206 / 2452; object-fit: cover; object-position: 50% 100%; }

/* ─── Sections ───────────────────────────────────────────── */
section { padding: 96px 0; }
.eyebrow { color: var(--pink); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 48px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.feature .icon { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; justify-items: center; }
.showcase figure { margin: 0; text-align: center; }
.showcase figcaption { margin-top: 18px; font-weight: 700; }
.showcase figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; justify-items: stretch; }
  .showcase figure { scroll-snap-align: center; }
  .showcase .phone { width: 100%; }
}

.safety { background: var(--pink-soft); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 32px; }
.checks li { padding-left: 34px; position: relative; font-size: 17px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.checks strong { display: block; }
.checks span { color: var(--muted); }

.final-cta { text-align: center; background: linear-gradient(160deg, var(--pink-light), #e23d7a 75%); color: #fff; border-radius: 32px; padding: 64px 24px; }
.final-cta h2 { color: #fff; }
.final-cta .waitlist { margin: 28px auto 0; }

/* ─── Text pages (privacy, support, delete) ──────────────── */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.02em; }
.page h3 { font-size: 18px; margin: 24px 0 8px; }
.page li { margin-bottom: 6px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.page th { background: var(--surface); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: var(--surface); border-radius: 14px; margin-bottom: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.note { background: var(--pink-soft); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
details { background: var(--surface); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }
.button { display: inline-block; background: var(--pink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin-left: auto; }
.notfound { text-align: center; }
.notfound .big { font-size: 64px; margin: 40px 0 0; }

/* ─── Phones ─────────────────────────────────────────────── */
.cta-small { white-space: nowrap; }
@media (max-width: 720px) {
  .site-header .wrap { gap: 12px; height: 60px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 10px; }
  .nav .lang { padding: 4px 10px; }
  .cta-small { padding: 7px 14px; font-size: 14px; }
  section { padding: 56px 0; }
  .hero .wrap { padding: 36px 0 48px; gap: 32px; }
  .hero .lead { font-size: 18px; margin-bottom: 22px; }
  .section-lead { font-size: 17px; margin-bottom: 28px; }
  .feature { padding: 22px; }
  .final-cta { padding: 40px 20px; border-radius: 24px; }
  .page { padding: 32px 0 64px; }
  .page table { font-size: 14px; }
  .page th, .page td { padding: 8px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .copy { margin-left: 0; }
}
@media (max-width: 380px) {
  .nav .lang { padding: 3px 8px; font-size: 12px; }
  .cta-small { padding: 6px 11px; font-size: 13px; }
  .brand { font-size: 18px; }
  .site-footer nav { gap: 8px 16px; }
}
