/* Ondiva website. Colours are the app's design tokens (app/src/design/tokens.ts); system fonts only, so
   nothing is fetched from a third party. */
:root {
  --bg: #fff8f6;
  --card: #fff;
  --text: #2a1e24;
  --muted: #5e4c55;
  --rose: #a33a68;
  --rose-soft: #f1e3e8;
  --mint: #1f7a5c;
  --mint-soft: #e5f5ef;
  --amber: #8a5a10;
  --amber-soft: #f8ebd4;
  --line: #e7d5dc;
  --plum: #2a1e24;
  --plum-2: #4a2038;
  --pink: #f6b3cf;
  --radius: 20px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--rose); text-underline-offset: 3px; }
a:focus-visible, .pill:focus-visible, .store:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--rose); white-space: nowrap; }
h1, h2 { text-wrap: balance; }
ul { padding: 0; margin: 0; list-style: none; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 10; background: rgb(255 248 246 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 1.4rem var(--serif); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.pill) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.pill):hover { color: var(--rose); }
.pill { display: inline-block; background: var(--rose); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 20px; border-radius: 999px; min-height: 44px; line-height: 24px; }
.pill:hover { background: #8c2f58; }
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-in { display: grid; gap: 14px; justify-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--text); }
.foot p { margin: 0; font-size: .95rem; }

/* Buttons */
.cta { margin: 28px 0 8px; }
.cta.center { text-align: center; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--plum); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 14px; min-height: 56px; }
.store:hover { background: var(--plum-2); }
.store span { display: grid; line-height: 1.1; text-align: left; }
.store small { font-size: .72rem; opacity: .85; }
.store strong { font-size: 1.25rem; font-weight: 600; }

/* Hero */
.hero { padding: 56px 0 24px; background: radial-gradient(900px 480px at 85% 0, var(--rose-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; color: var(--mint); font-weight: 600; }
.promises li { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { display: flex; justify-content: center; }

/* Phone frame around a screenshot */
.phone { width: min(300px, 78vw); border-radius: 44px; padding: 10px; background: #1b1217; box-shadow: 0 30px 60px -20px rgb(163 58 104 / .45), 0 0 0 1px rgb(0 0 0 / .08); }
.phone img { display: block; width: 100%; border-radius: 34px; background: var(--bg); }

/* Sections */
.section { padding: 64px 0 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--rose); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding-top: 72px; }
.split.flip { grid-template-columns: 1.2fr .8fr; }
.split.flip .phones { order: 2; }
.phones { display: flex; justify-content: center; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a5c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* The month wheel */
.wheel-wrap { max-width: 880px; margin: 0 auto; }
.wheel { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; }

/* Cards and features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.glyph { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card.big { padding: 30px; }
.note { margin: 1em 0 0; padding: 12px 14px; background: var(--rose-soft); border-radius: 12px; font-size: .98rem; }
.tag { display: inline-block; background: var(--rose); color: #fff; font: 700 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 6px; }

/* Privacy band */
.privacy { margin-top: 80px; padding: 72px 0; background: linear-gradient(160deg, var(--plum), var(--plum-2)); color: #fff8f6; }
.privacy .eyebrow { color: var(--pink); }
.privacy h2 { color: #fff; }
.vows { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin: 28px 0; }
.vows li { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); padding: 22px; }
.vows .glyph { background: rgb(246 179 207 / .18); color: var(--pink); }
.vows p { margin: 0; }
.more { color: var(--pink); font-weight: 600; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.plan.pro { border: 2px solid var(--rose); }
.fine { text-align: center; max-width: 40em; margin: 20px auto 0; font-size: .92rem; }
.disclaimer { text-align: center; margin-top: 28px; color: var(--muted); font-size: .92rem; }

/* Legal and support pages */
.legal { max-width: 760px; padding: 48px 0 0; }
.legal h1 { margin-bottom: .6em; }
/* The global em is the rose, no-wrap hero accent; in a policy it is ordinary italic text. */
.legal em { color: inherit; white-space: normal; }
.legal h2 { margin-top: 1.8em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal ul { list-style: disc; }
.legal li { margin-bottom: .4em; }
.legal code { background: var(--rose-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.table { overflow-x: auto; margin: 0 0 1.2em; }
.legal table { border-collapse: collapse; width: 100%; background: var(--card); }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--rose-soft); }

.notfound { text-align: center; padding: 80px 0 0; display: grid; justify-items: center; gap: 8px; }

/* Narrow screens */
@media (max-width: 860px) {
  .hero-grid, .split, .split.flip, .duo, .plans { grid-template-columns: 1fr; }
  .split, .split.flip { gap: 28px; }
  .split.flip .phones { order: 0; }
  .hero { padding-top: 32px; }
  .hide-sm { display: none; }
  .features.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* A table row becomes a card: "Plan: Yearly", "Renewal: …" */
  .legal table, .legal thead, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
  .legal td { border: 0; border-bottom: 1px solid var(--line); }
  .legal td:last-child { border-bottom: 0; }
  .legal td::before { content: attr(data-label) ": "; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
