/* Oasis AAC website. One stylesheet for the landing page and the legal pages. */
@font-face {
  font-family: "Montserrat";
  src: url("montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #12324a;
  --teal: #1a9fb2;
  --green: #267e77;
  --green-dark: #1d635d;
  --orange: #f0862b;
  --lavender: #f4f0fb;
  --ink: #1d2a33;
  --muted: #55636d;
  --line: #e3e6ea;
  --page: #ffffff;
  --card: #ffffff;
  --soft: #f6f8f9;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(18, 50, 74, 0.10);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #dbe9f3;
    --ink: #e7edf1;
    --muted: #a9b6bf;
    --line: #2a3640;
    --page: #0f1a21;
    --card: #15232c;
    --soft: #13212a;
    --lavender: #1a2430;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.brand .oasis { color: var(--navy); }
.brand .aac { color: var(--teal); }
.nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--green); }
@media (max-width: 760px) { .nav .hide-small { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent;
}
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); color: #fff; }
.button.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.button.ghost:hover { border-color: var(--green); color: var(--green); }
.nav .button { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--lavender), var(--page)); padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
/* The app as it appears on the App Store: large icon, name and platform. */
.app-badge { display: inline-flex; align-items: center; gap: 20px; }
/* The app icon keeps the iPad corner shape (about 22% of its side). */
.app-badge img { width: 136px; height: 136px; border-radius: 30px; box-shadow: 0 14px 32px rgba(18, 50, 74, 0.22), 0 2px 6px rgba(18, 50, 74, 0.12); }
.app-badge strong { display: block; font-size: 24px; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2; }
.app-badge span { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 600px) { .app-badge img { width: 104px; height: 104px; border-radius: 23px; } .app-badge strong { font-size: 21px; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); padding: 6px 14px; border-radius: 999px; letter-spacing: 0.02em; }
h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 18px; color: var(--navy); font-weight: 800; }
h1 .accent { background: linear-gradient(90deg, var(--teal), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1565 / 1087; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { order: -1; } }

/* Facts strip */
.facts { padding: 8px 0 48px; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.fact strong { display: block; font-size: 28px; color: var(--navy); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--soft); }
h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; color: var(--navy); }
.section-intro { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* Device screenshot */
.device { max-width: 900px; margin: 0 auto; background: #1b1f23; padding: 18px; border-radius: 34px; box-shadow: 0 24px 60px rgba(18, 50, 74, 0.25); }
.device img { border-radius: 18px; }
.caption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 16px; }

/* Screenshot gallery */
/* One large screen, then rows of three. */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 28px; text-align: left; }
.gallery .shot { grid-column: span 2; }
.gallery .featured { grid-column: 1 / -1; max-width: 920px; justify-self: center; width: 100%; }
.shot { margin: 0; }
.shot .device { max-width: none; padding: 12px; border-radius: 26px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.shot .device img { border-radius: 14px; width: 100%; height: auto; }
.shot a.zoom { display: block; cursor: zoom-in; }
.shot:hover .device { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(18, 50, 74, 0.30); }
.featured .device { padding: 18px; border-radius: 34px; }
.featured .device img { border-radius: 18px; }
.shot figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; }
.shot figcaption strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 2px; }
.featured figcaption { text-align: center; }
@media (max-width: 900px) { .gallery .shot { grid-column: span 3; } .gallery .featured { grid-column: 1 / -1; } }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; gap: 32px; } .gallery .shot, .gallery .featured { grid-column: auto; } .shot .device { padding: 8px; border-radius: 20px; } .shot .device img { border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) { .shot .device { transition: none; } .shot:hover .device { transform: none; } }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 8px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.icon svg { width: 26px; height: 26px; }
.i-green { background: var(--green); } .i-teal { background: var(--teal); } .i-orange { background: var(--orange); }
.i-navy { background: #2b5876; } .i-pink { background: #d6577f; } .i-purple { background: #7b61c9; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.step h3 { margin: 14px 0 6px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* Privacy band */
.privacy-band { background: var(--navy); color: #fff; border-radius: 30px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (prefers-color-scheme: dark) { .privacy-band { background: #17344a; } }
.privacy-band h2 { color: #fff; }
.privacy-band p { color: rgba(255, 255, 255, 0.82); }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.92); }
.privacy-band li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #4cc3b5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2312324a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.privacy-band a { color: #9fe3da; }
@media (max-width: 800px) { .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--navy); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 400; font-size: 24px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Call to action */
.cta { text-align: center; background: linear-gradient(135deg, var(--teal), var(--green)); color: #fff; border-radius: 30px; padding: 56px 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.9); font-size: 18px; margin: 0 0 26px; }
.cta .button { background: #fff; color: var(--green-dark); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; color: var(--navy); }
.legal p, .legal li { color: var(--ink); }
.legal .meta { color: var(--muted); }
.draft-note { background: #fff4e5; color: #6b3d00; border: 1px solid #f3c78b; border-radius: 14px; padding: 14px 18px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .draft-note { background: #3a2a12; color: #f6d7a7; border-color: #6b4a1c; } }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.placeholder { background: color-mix(in srgb, var(--orange) 22%, transparent); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Focus visibility for keyboard and switch users */
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Full-size screenshot viewer (assets/gallery.js). */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 18, 24, 0.94); color: #fff; }
.lightbox::backdrop { background: rgba(10, 18, 24, 0.94); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 16px 8px; }
.lightbox-stage img { max-width: min(100%, 1280px); max-height: 100%; width: auto; height: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px 24px; }
.lightbox-caption { font-weight: 700; font-size: 17px; text-align: center; }
.lightbox-count { color: rgba(255, 255, 255, 0.6); font-size: 15px; white-space: nowrap; }
.lightbox button { flex: none; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; }
html.lightbox-open { overflow: hidden; }
