/* CallOra - Cloud Phone website
   Colours follow the app (docs/DESIGN.md): primary teal #0F766E, splash gradient
   #D6F3EE -> #7ACCC0 (light) and #071110 -> #14403C (dark). System fonts only, so the
   site makes no third-party requests. */

:root {
  --teal: #0f766e;
  --teal-strong: #0b5e58;
  --on-teal: #ffffff;
  --ink: #111827;
  --soft: #4b5563;
  --muted: #134e4a;
  --bg: #ffffff;
  --card: #f3faf9;
  --line: #dbe7e5;
  --splash-top: #d6f3ee;
  --splash-bottom: #7accc0;
  --warn-bg: #fff7e6;
  --warn-ink: #7a4b00;
  --radius: 18px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #5eead4;
    --teal-strong: #99f6e4;
    --on-teal: #062421;
    --ink: #eef6f5;
    --soft: #a8bfbc;
    --muted: #c7e6e1;
    --bg: #0a1514;
    --card: #12201f;
    --line: #23403d;
    --splash-top: #071110;
    --splash-bottom: #14403c;
    --warn-bg: #2b2410;
    --warn-ink: #fde68a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 10px 14px; border-radius: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { font-weight: 600; color: var(--soft); font-size: 14px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--teal); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .brand small { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--teal); color: var(--teal); background: transparent;
}
.btn:hover { color: var(--teal-strong); border-color: var(--teal-strong); }
.btn.fill { background: var(--teal); color: var(--on-teal); }
.btn.fill:hover { background: var(--teal-strong); color: var(--on-teal); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.store { display: flex; flex-wrap: wrap; gap: 12px; }
.store a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 14px; background: #0b1211; color: #fff; text-decoration: none; border: 1px solid #2c3b39;
}
.store a:hover { background: #17211f; color: #fff; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; letter-spacing: .02em; opacity: .85; }
.store b { font-size: 18px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--splash-top), var(--splash-bottom)); overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 900px; height: 900px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 58px, color-mix(in srgb, var(--teal) 10%, transparent) 58px 64px);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 64px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero-phones { display: flex; justify-content: center; align-items: center; gap: 22px; }
.hero-phones .phone { width: 240px; margin-bottom: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; padding-top: 48px; }
  .hero-phones .phone { width: 46%; }
}

/* Phone frame around a screenshot */
.phone {
  width: 250px; border-radius: 38px; padding: 9px; background: #0c1211;
  box-shadow: 0 30px 60px -20px rgba(4, 30, 28, .45), inset 0 0 0 2px #3d4a48;
  margin-bottom: -40px;
}
.phone img { border-radius: 30px; width: 100%; }
.phone.flat { margin-bottom: 0; }

/* Sections */
section { padding-block: 88px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.015em; }
.section-head p { color: var(--soft); margin: 0; font-size: 18px; }
.alt { background: var(--card); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .feature { background: var(--bg); }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--soft); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 26px 26px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: var(--on-teal); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--soft); font-size: 16px; }

.gallery { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; width: 230px; }
.gallery .phone { width: 100%; margin: 0; border-radius: 34px; padding: 8px; }
.gallery .phone img { border-radius: 27px; }
.gallery figcaption { text-align: center; font-weight: 600; margin-top: 14px; color: var(--soft); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks b { display: block; }
.ticks span { color: var(--soft); font-size: 16px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 26px; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--soft); }

.cta { background: linear-gradient(180deg, var(--splash-top), var(--splash-bottom)); text-align: center; }
.cta h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 0 0 12px; }
.cta p { color: var(--muted); margin: 0 auto 28px; max-width: 46ch; font-size: 18px; }
.cta .store { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 36px; font-size: 15px; color: var(--soft); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer p { margin: 8px 0 0; max-width: 46ch; }

/* Document pages (privacy, terms, delete account, support) */
.doc-hero { background: linear-gradient(180deg, var(--splash-top), var(--splash-bottom)); padding-block: 56px 48px; }
.doc-hero h1 { font-size: clamp(34px, 4.6vw, 50px); margin: 0 0 8px; letter-spacing: -.015em; }
.doc-hero p { margin: 0; color: var(--muted); }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-block: 56px 88px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 92px; align-self: start; font-size: 15px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 90px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--soft); font-weight: 700; font-size: 14px; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout.warn { border-left-color: #d97706; background: var(--warn-bg); }
.callout.warn p { color: var(--warn-ink); }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 4px 0 10px 48px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--on-teal); display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.meta { color: var(--soft); font-size: 15px; }

/* Placeholder values the owner must fill in before going live */
.fill { background: #fde68a; color: #4a3200; border-radius: 4px; padding: 0 4px; font-weight: 600; }
