/* reladuo.app — colours follow App/Theme.swift */
:root {
  --bg: #f9f4f0;
  --card: #fffefc;
  --ink: #221d33;
  --muted: #6b6680;
  --line: rgba(74, 61, 102, 0.1);
  --shadow: 0 1px 2px rgba(74, 61, 102, 0.06), 0 12px 32px rgba(74, 61, 102, 0.08);
  --lavender: #6e61b0;
  --lavender-soft: #ece8f8;
  --teal: #217573;
  --teal-soft: #e1f1ef;
  --amber: #915214;
  --amber-soft: #f8ecdc;
  --deep: #6b5ead;
  --on-deep: #ffffff;
  --phone: #1b1826;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111321;
    --card: #1d2130;
    --ink: #f2f0f8;
    --muted: #a6a3b8;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --lavender: #bfb5f2;
    --lavender-soft: #2a2745;
    --teal: #66c7bf;
    --teal-soft: #17302f;
    --amber: #fabb5c;
    --amber-soft: #33270f;
    --deep: #8a7fd0;
    --phone: #000000;
  }
}
:root[data-theme="dark"] {
  --bg: #111321;
  --card: #1d2130;
  --ink: #f2f0f8;
  --muted: #a6a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --lavender: #bfb5f2;
  --lavender-soft: #2a2745;
  --teal: #66c7bf;
  --teal-soft: #17302f;
  --amber: #fabb5c;
  --amber-soft: #33270f;
  --deep: #8a7fd0;
  --phone: #000000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lavender); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }

.shell { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 12px;
}
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .site-nav .hide-small { display: none; } .site-nav { gap: 16px; } }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--deep); color: var(--on-deep);
  box-shadow: 0 6px 18px rgba(107, 94, 173, 0.3);
}
.button:hover { filter: brightness(1.06); }
.button.soft { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 em { font-style: italic; color: var(--lavender); }
.hero .lead { margin-top: 20px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-phones { position: relative; min-height: 560px; }
.hero-phones .phone { position: absolute; width: 260px; }
.hero-phones .phone:first-child { right: 120px; top: 0; transform: rotate(-4deg); z-index: 2; }
.hero-phones .phone:last-child { right: 0; top: 56px; transform: rotate(5deg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 36px; }
  .hero-phones { min-height: 0; display: flex; justify-content: center; }
  .hero-phones .phone { position: static; width: min(240px, 62vw); transform: none !important; }
  .hero-phones .phone:last-child { display: none; }
}

/* phone frame around a screenshot */
.phone {
  background: var(--phone); padding: 9px; border-radius: 42px;
  box-shadow: 0 30px 60px rgba(34, 29, 51, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { border-radius: 34px; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--bg); }

/* sections */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.pillar p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.tile svg { width: 22px; height: 22px; }
.tile.lavender { background: var(--lavender-soft); color: var(--lavender); }
.tile.teal { background: var(--teal-soft); color: var(--teal); }
.tile.amber { background: var(--amber-soft); color: var(--amber); }

.feature { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text > p { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23217573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .feature .phone { width: min(260px, 70vw); margin-inline: auto; }
}

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--card); }
.mode p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.mode .tag { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

.privacy-band { background: var(--card); border-radius: 32px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.privacy-band .ticks { margin-top: 0; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; } }

.closing { text-align: center; padding: 88px 0 96px; }
.closing .lead { margin: 16px auto 0; }
.closing .actions { justify-content: center; }

/* text pages */
.page { padding: 32px 0 80px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); }
.page .updated { color: var(--muted); margin-top: 10px; font-size: 15px; }
.page h2 { font-size: 26px; margin: 44px 0 12px; }
.page h3 { font-size: 19px; margin: 24px 0 8px; font-family: var(--sans); font-weight: 650; }
.page p, .page li { color: var(--ink); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; margin: 12px 0; }
.page li + li { margin-top: 6px; }
.callout { background: var(--lavender-soft); border-radius: 18px; padding: 18px 20px; margin: 24px 0; }
.callout.teal { background: var(--teal-soft); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
tr:last-child td { border-bottom: 0; }

details { background: var(--card); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; color: var(--muted); }

/* join page */
.join-card { background: var(--card); border-radius: 28px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); margin-top: 24px; }
.join-card .hearts { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--lavender-soft); color: var(--lavender);
}
.steps li p { color: var(--muted); margin-top: 4px; font-size: 16px; }
.steps .button { margin-top: 12px; }
.fineprint { margin-top: 24px; font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.privacy-band .lead { margin-top: 14px; }
.page .lead { margin-top: 16px; }
.page code { font-size: 0.9em; background: var(--lavender-soft); padding: 1px 6px; border-radius: 6px; }
.site-nav a.button, .site-nav a.button:hover { color: var(--on-deep); }
.steps .button + .button { margin-left: 8px; }
