/* Orant website — one stylesheet for every page.
   Colours mirror the app's design tokens (app/lib/theme/tokens.dart):
   light = "light-blue" palette, dark = "charcoal" palette. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f2f7fc;
  --bg-deep: #e6eff8;
  --surface: #ffffff;
  --surface-raised: #e3edf7;
  --text: #0f2a44;
  --text-muted: #4f6983;
  --primary: #2c6faf;
  --primary-strong: #1f5a94;
  --on-primary: #ffffff;
  --accent: #e8b04b;
  --on-accent: #3e2e0e;
  --night: #14243a;
  --on-night: #eaf2fb;
  --warm: #cf7a4e;
  --calm: #6fa07f;
  --border: #dce7f1;
  --shadow: 0 1px 2px rgba(15, 42, 68, 0.06), 0 8px 24px rgba(44, 111, 175, 0.08);
  --focus: #2c6faf;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
  --prose: 720px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121417;
    --bg-deep: #0d0f12;
    --surface: #1c1f24;
    --surface-raised: #262a30;
    --text: #edeff2;
    --text-muted: #a3acb7;
    --primary: #5b9bd5;
    --primary-strong: #7fb2e0;
    --on-primary: #0b1520;
    --accent: #e8b04b;
    --on-accent: #2a2620;
    --night: #161b22;
    --on-night: #edeff2;
    --border: #2b3038;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --focus: #7fb2e0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121417;
  --bg-deep: #0d0f12;
  --surface: #1c1f24;
  --surface-raised: #262a30;
  --text: #edeff2;
  --text-muted: #a3acb7;
  --primary: #5b9bd5;
  --primary-strong: #7fb2e0;
  --on-primary: #0b1520;
  --accent: #e8b04b;
  --on-accent: #2a2620;
  --night: #161b22;
  --on-night: #edeff2;
  --border: #2b3038;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --focus: #7fb2e0;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--primary-strong);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-top: 2em;
}
h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}
p,
ul,
ol,
table {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.3em;
}
li + li {
  margin-top: 0.35em;
}
strong {
  font-weight: 600;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--on-primary);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.brand span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li {
  margin: 0;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-raised);
}
.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.theme-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--surface-raised);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}
/* The toggle is a JS enhancement; without JS the site simply follows the OS. */
.no-js .theme-toggle {
  display: none;
}

@media (max-width: 600px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0 -12px;
  }
  .site-nav a {
    padding: 6px 12px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
/* Official Google Play badge (unaltered image, only sized). The PNG carries
   Google's own transparent clear-space, so it's offset to line up with the
   neighbouring button. */
.play-badge {
  display: inline-block;
  line-height: 0;
  margin: -12px -10px;
  border-radius: 12px;
}
.play-badge img {
  height: 72px;
  width: auto;
}
.play-badge:focus-visible {
  outline-offset: -6px;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-raised);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .hero {
    padding: 48px 0 40px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- phone frames (screenshot placeholders) ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: #0b0d10;
  box-shadow: 0 30px 60px -20px rgba(15, 42, 68, 0.45), inset 0 0 0 2px #2a2f36;
}
.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px;
  color: #fff;
}
/* A real screenshot sets the frame's shape itself (any aspect ratio). */
.phone:has(.screen > img) {
  aspect-ratio: auto;
}
.phone .screen:has(> img) {
  padding: 0;
}
.phone .screen:has(> img)::before {
  display: none;
}
.phone .screen img {
  width: 100%;
  height: auto;
}
.phone .screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 70px;
  height: 20px;
  transform: translateX(-50%);
  background: #0b0d10;
  border-radius: 999px;
}
.phone .screen-label {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
}
.phone .screen-sub {
  position: relative;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 4px;
}
.phone .screen-mark {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}
.sky-dawn {
  background: linear-gradient(170deg, #2c6faf 0%, #6a8fc4 45%, #e8b04b 100%);
}
.sky-night {
  background: linear-gradient(175deg, #0d1626 0%, #14243a 55%, #2c4d74 100%);
}
.sky-sage {
  background: linear-gradient(170deg, #35584a 0%, #6fa07f 60%, #d9c58a 100%);
}
.sky-warm {
  background: linear-gradient(170deg, #5b3a52 0%, #cf7a4e 60%, #e8b04b 100%);
}
.sky-page {
  background: linear-gradient(170deg, #1f5a94 0%, #2c6faf 50%, #9cc2e6 100%);
}
.hero .phone {
  max-width: 280px;
  transform: rotate(2deg);
}

/* ---------- sections ---------- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin-top: 0;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li + li {
  margin-top: 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-alt .feature {
  background: var(--bg);
}
.feature h3 {
  margin: 14px 0 6px;
  font-size: 1.2rem;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-icon.gold {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: #a8741a;
}
:root[data-theme="dark"] .feature-icon.gold {
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature-icon.gold {
    color: var(--accent);
  }
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 230px);
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
}
.shots li {
  margin: 0;
  scroll-snap-align: center;
}
.shots figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.cta-band {
  background: linear-gradient(135deg, #2c6faf, #14345c);
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
}
.cta-band h2 {
  margin-top: 0;
  color: #fff;
}
.cta-band p {
  color: #dbe8f5;
  max-width: 34em;
  margin: 0 auto 24px;
}

/* ---------- prose (legal + support pages) ---------- */
.page-head {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-head .wrap,
.prose-wrap {
  max-width: calc(var(--prose) + 40px);
}
.page-head h1 {
  margin-bottom: 0.3em;
}
.page-head p {
  color: var(--text-muted);
  margin: 0;
}
.meta {
  font-size: 0.95rem;
}
.prose {
  padding: 36px 0 72px;
}
.prose h2 {
  font-size: 1.55rem;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}
.prose > h2:first-child,
.prose .toc + h2 {
  border-top: 0;
}
.prose li::marker {
  color: var(--primary);
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 1.4em;
  box-shadow: var(--shadow);
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout.gold {
  border-left-color: var(--accent);
}
.callout.care {
  border-left-color: var(--warm);
}
.callout h2,
.callout h3 {
  margin-top: 0;
  border: 0;
  padding: 0;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 2em;
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.toc ol {
  margin: 0;
  columns: 2 16em;
  column-gap: 2em;
}
.toc li {
  break-inside: avoid;
  margin: 0 0 0.3em;
  font-size: 0.97rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.table-scroll table {
  margin: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-weight: 600;
  background: var(--surface-raised);
  white-space: nowrap;
}
td:first-child {
  font-weight: 600;
  min-width: 9em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 1em;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details > div {
  padding: 0 20px 6px;
}
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 2em;
  box-shadow: var(--shadow);
}
.contact-card p {
  margin: 0;
}
.contact-card .email {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}

/* ---------- forms (reset password) ---------- */
.reset-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 1.4em;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.field-help {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
}
.form-error {
  color: #b42318;
  font-weight: 600;
  margin: 0 0 14px;
}
:root[data-theme="dark"] .form-error {
  color: #f97066;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-error {
    color: #f97066;
  }
}
.reset-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}
.reset-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
[hidden] {
  display: none !important;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand img {
  width: 28px;
  height: 28px;
}
.site-footer .brand span {
  font-size: 1.2rem;
}
.site-footer p {
  margin: 8px 0 0;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer li + li {
  margin: 0;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover {
    transform: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
