/*
 * Ariyoo website. One stylesheet, in Wayfare's visual language: white paper, purple (#6a01a3) for
 * actions, a lavender wash, warm stone ink, pill buttons and soft rounded cards. Dark mode uses the
 * app's dark palette. Every text/background pair meets WCAG AA.
 */
:root {
  --brand: #6a01a3;
  --brand-strong: #52007f;
  --hero-a: #7a14b8;
  --hero-b: #3f0263;
  --wash: #f6effb;
  --wash-strong: #f1e4f9;
  --orange: #fe9f41;
  --coral: #ff715b;
  --green: #0e7a5f;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #faf8fc;
  --chip: #f2f2f4;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #5f5f66;
  --line: #e5e5ea;
  --phone: #1c1917;
  --shadow: 0 18px 50px rgba(63, 2, 99, .16);
  --radius: 22px;
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #c77dff;
    --brand-strong: #dcacff;
    --wash: #1f1726;
    --wash-strong: #2a1d36;
    --bg: #0c0a09;
    --surface: #1c1917;
    --soft: #141110;
    --chip: #292524;
    --ink: #fafaf9;
    --ink-soft: #d6d3d1;
    --muted: #a8a29e;
    --line: #292524;
    --phone: #000000;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.site-header nav a:hover { background: var(--chip); color: var(--ink); }
.site-header nav a[aria-current="page"] { background: var(--wash-strong); color: var(--brand); }
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin: 10px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 4px 0 4px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Buttons and chips */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: #6a01a3; color: #fff; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #52007f; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--chip); color: var(--ink); }
.btn-light { background: #fff; color: #3f0263; }
.btn-light:hover { background: #f1e4f9; color: #3f0263; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--ink-soft); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.dot-coral { background: var(--coral); }
.dot-green { background: var(--green); }
.chip-live { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.chip-live .dot { background: #4ade80; }
.eyebrow { font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow-mark { display: inline-block; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }

/* Phones (real screenshots) */
.phone { background: var(--phone); border-radius: 34px; padding: 7px; box-shadow: var(--shadow); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #f2f2f4; }

/* Home hero */
.hero { background: radial-gradient(110% 80% at 85% 10%, var(--wash-strong) 0%, transparent 60%), var(--bg); padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); overflow: hidden; }
.hero-grid, .wf-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 420px; }
.phone-main { width: min(280px, 72vw); position: relative; z-index: 2; }
.phone-back { position: absolute; width: min(240px, 60vw); right: 0; top: 48px; transform: rotate(7deg); opacity: .95; z-index: 1; }
.hero .phone-main { margin-right: 22%; transform: rotate(-3deg); }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { max-width: 22ch; }

/* App cards */
.apps { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-top: 36px; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.app h3 { font-size: 1.6rem; margin: 22px 0 2px; }
.app-tag { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.app > p:last-of-type { color: var(--ink-soft); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app .mark { border-radius: 12px; }
.app-wayfare { background: linear-gradient(150deg, var(--hero-a), var(--hero-b)); border: none; color: #fff; box-shadow: var(--shadow); }
.app-wayfare .mark { border-radius: 0; }
.app-wayfare .app-tag, .app-wayfare > p:last-of-type, .app-wayfare p { color: #f1e4f9; }
.app-wayfare .btn { margin-top: auto; align-self: flex-start; }
.app-wayfare > p:last-of-type { margin-bottom: 22px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-text p { color: var(--ink-soft); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }

/* Team */
.team { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.person { text-align: center; }
.person img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; border: 6px solid var(--wash-strong); background: var(--chip); }
.person h3 { font-size: 1.2rem; margin: 0 0 2px; }
.person p { color: var(--muted); font-weight: 600; margin: 0; }

/* Wayfare page */
.wf-hero { background: linear-gradient(150deg, var(--hero-a) 0%, var(--hero-b) 100%); color: #fff; padding: clamp(40px, 8vw, 88px) 0; overflow: hidden; }
.wf-hero h1 { color: #fff; max-width: 13ch; }
.wf-hero .lede { color: #f1e4f9; }
.wf-logo { margin-bottom: 26px; width: 96px; }
.wf-hero .phone-main { transform: rotate(3deg); }
.wf-hero .hero-art { min-height: 0; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: .88rem; font-weight: 700; }
.features { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--wash-strong); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.shots { --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; gap: 18px; overflow-x: auto; padding: 8px var(--edge) 28px; scroll-padding-inline: var(--edge); margin-top: 28px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shots::after { content: ''; flex: 0 0 1px; }
.shots figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.shots .phone { border-radius: 30px; padding: 6px; box-shadow: 0 10px 28px rgba(63,2,99,.14); }
.shots .phone img { border-radius: 24px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.split p { color: var(--ink-soft); }
.link-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-cards a { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.link-cards a:hover { border-color: var(--brand); color: var(--ink); }
.link-cards span { color: var(--brand); margin-bottom: 6px; }
.link-cards small { color: var(--muted); font-size: .88rem; }
.note { background: var(--wash); border-radius: var(--radius); padding: 24px; }
.note ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.note li + li { margin-top: 6px; }

/* Plain pages: support, policies */
.page-hero { background: radial-gradient(90% 120% at 100% 0%, var(--wash-strong) 0%, transparent 55%), var(--bg); padding: clamp(40px, 7vw, 80px) 0 clamp(8px, 2vw, 16px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero + .section { padding-top: clamp(24px, 4vw, 40px); }
.mail-card { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; padding: 16px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); max-width: 100%; }
.mail-card > svg { color: var(--brand); flex: none; }
.mail-card span { display: grid; min-width: 0; }
.mail-card strong { overflow-wrap: anywhere; }
.mail-card small { color: var(--muted); }
.mail-card:hover { border-color: var(--brand); color: var(--ink); }
.faq { margin: 20px 0 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; }
.grievance p { color: var(--ink-soft); margin: 0 0 8px; }
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.3rem; margin: 2em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); max-width: none; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li + li { margin-top: 6px; }
.prose code { background: var(--chip); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose .box { background: var(--wash); border-radius: 18px; padding: 18px 20px; color: var(--ink-soft); }
.prose .table { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); }
.prose tr:last-child td { border-bottom: none; }

/* Phone and tablet */
@media (max-width: 900px) {
  .hero-grid, .wf-grid, .about, .split { grid-template-columns: 1fr; }
  .apps, .features { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; margin-top: 8px; }
  .phone-back { display: none; }
  .hero .phone-main { margin-right: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .apps, .features { grid-template-columns: 1fr 1fr; }
  .app-wayfare { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .team { grid-template-columns: 1fr 1fr; gap: 18px; }
  .team .person:first-child { grid-column: 1 / -1; }
  .person img { max-width: 160px; }
  .link-cards { grid-template-columns: 1fr; }
  .site-header nav a { padding: 8px 11px; }
  .brand span { font-size: 1.1rem; }
  .actions .btn { width: 100%; }
  .shots figure { flex-basis: 180px; }
}
