/* selfcall.app — two themes. Dark is the brand look from the Play graphics;
   light is the readable alternative. Every color goes through a token so a
   new scheme is a new block of tokens, nothing else. */
:root {
  --bg: #020D2B;
  --bg-glow: #0A1B4F;
  --header-bg: rgba(2, 13, 43, 0.82);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-solid: #101C44;
  --border: rgba(255, 255, 255, 0.12);
  --text: #F2F4F8;
  --muted: #A9B3C9;
  /* one green for everything: the calmer lime (the brand #A0F61F read too loud) */
  --accent: #C7F77A;
  --accent-hover: #D8FA9A;
  --on-accent: #0A1A05;
  --link: #C7F77A;
  --accent-tint: rgba(199, 247, 122, 0.12);
  --accent-tint-strong: rgba(199, 247, 122, 0.18);
  --accent-border: rgba(199, 247, 122, 0.35);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7F77A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  --phone-frame: #0b1020;
  --phone-border: rgba(255, 255, 255, 0.22);
  --phone-shadow: rgba(0, 0, 0, 0.5);
  --video-overlay-top: rgba(2, 13, 43, 0.2);
  --video-overlay-bottom: rgba(2, 13, 43, 0.85);
  --warn: #FFB341;
  --danger: #FF6B6B;
  --radius: 14px;
  --wrap: 1100px;
  --gutter: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F7FB;
  --bg-glow: #DCE6F7;
  --header-bg: rgba(245, 247, 251, 0.88);
  --surface: #FFFFFF;
  --surface-2: #EDF1F7;
  --surface-solid: #FFFFFF;
  --border: #D9E0EA;
  --text: #0F1B3D;
  --muted: #4A5570;
  --accent: #2E7D0F;
  --accent-hover: #256A0B;
  --on-accent: #FFFFFF;
  --link: #246A0A;
  --accent-tint: rgba(46, 125, 15, 0.10);
  --accent-tint-strong: rgba(46, 125, 15, 0.16);
  --accent-border: rgba(46, 125, 15, 0.35);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D0F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  --phone-frame: #1B2440;
  --phone-border: rgba(15, 27, 61, 0.25);
  --phone-shadow: rgba(15, 27, 61, 0.28);
  --video-overlay-top: rgba(15, 27, 61, 0.15);
  --video-overlay-bottom: rgba(15, 27, 61, 0.8);
  --warn: #B36B00;
  --danger: #C62828;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(90% 40% at 50% -5%, var(--bg-glow) 0%, transparent 70%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
/* Hidden above the viewport (not off to the left: in right-to-left pages
   negative-left overflow becomes scrollable and shifts the whole page) */
.skip { position: absolute; inset-inline-start: 8px; top: -100px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; }
em.accent, .accent { color: var(--accent); font-style: normal; }
b { font-weight: 700; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; }
.site-nav > a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav > a[aria-current="page"] { color: var(--text); }
.site-nav > .btn { margin-inline-start: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; margin-inline-start: 8px; flex: none; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; max-width: 11rem; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--surface-2); }
.lang-btn > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.lang-btn > svg.chev { width: 14px; height: 14px; transition: transform 0.15s; }
.lang-btn[aria-expanded="true"] > svg.chev { transform: rotate(180deg); }
.lang-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; width: 560px; max-width: calc(100vw - 2 * var(--gutter)); padding: 14px 8px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-solid); box-shadow: 0 20px 50px var(--phone-shadow); }
.lang-title { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 10px 8px; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.lang-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 0.92rem; line-height: 1.3; white-space: nowrap; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); text-decoration: none; outline: none; }
.lang-list a.is-current { color: var(--accent); font-weight: 900; }
.lang-list a.is-current::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--check-icon) center / 14px no-repeat; }
.lang-list a:not(.is-current)::before { content: ""; width: 14px; flex: none; }
@media (max-width: 820px) {
  .lang-panel { position: fixed; top: 72px; left: var(--gutter); right: var(--gutter); width: auto; max-width: none; }
  .lang-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lang-btn { max-width: 7.5rem; padding: 0 8px 0 10px; }
  .lang-list { grid-template-columns: 1fr 1fr; }
  .lang-list a { white-space: normal; align-items: flex-start; }
  .lang-list a::before { margin-top: 3px; }
}
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .brand span { display: none; }
  @media (min-width: 400px) { .brand span { display: inline; } }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px; }
  .site-nav > .btn { margin: 8px 0 0; }
  .header-actions .theme-toggle { margin-inline-start: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 900; font-size: 1rem; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 9px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin-bottom: 10px; }

/* Hero */
.hero { padding: 48px 0 24px; }
@media (max-width: 480px) { .hero .cta-row .btn { flex: 1 1 100%; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 24px; }
.hero-phone { justify-self: center; width: 100%; max-width: 360px; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
@media (min-width: 860px) {
  .hero { padding: 72px 0 40px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* Framed phone screenshot (same look as the store graphics) */
.phone { background: var(--phone-frame); border: 2px solid var(--phone-border); border-radius: 36px; padding: 9px; box-shadow: 0 30px 60px var(--phone-shadow); width: min(300px, 80vw); }
.phone img { border-radius: 28px; width: 100%; }
.phone.sm { width: min(240px, 70vw); border-radius: 30px; padding: 7px; }
.phone.sm img { border-radius: 24px; }

/* Cards & grids */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
a.card { color: var(--text); display: block; }
a.card:hover { text-decoration: none; border-color: var(--accent-border); background: var(--surface-2); }
a.card .more { color: var(--link); font-weight: 700; margin-top: 12px; display: inline-block; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { padding-inline-start: 32px; position: relative; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background-color: var(--accent-tint-strong); background-image: var(--check-icon); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.check-list b { color: var(--text); }

/* Screenshot strip */
/* Hero deck: the screenshots in a row that slides sideways, one in view */
.deck { position: relative; width: min(300px, 78vw); margin-inline: auto; outline: none; }
.deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
/* The track clips sideways only: side and bottom padding (with matching
   negative margins) keep the phone shadow inside the clip, so no edge shows */
.deck-cards { --i: 0; --gap: 96px; display: flex; gap: var(--gap); overflow: hidden; margin: 0 -48px; padding: 0 48px 90px; }
.deck-card { flex: 0 0 100%; margin: 0; text-align: center; display: flex; flex-direction: column; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); transform: translateX(calc(-1 * var(--i) * (100% + var(--gap)))); }
[dir="rtl"] .deck-card { transform: translateX(calc(var(--i) * (100% + var(--gap)))); }
.deck-card .phone { width: 100%; cursor: pointer; }
.deck-card figcaption { order: -1; margin: 0 0 14px; font-weight: 700; font-size: 1.15rem; height: 2.6em; line-height: 1.3; display: table-cell; vertical-align: bottom; width: 100%; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: -60px; }
/* Arrows sit beside the phone at its vertical middle: the track is caption
   band (2.6em of 1.15rem + 14px ≈ 62px) + phone + 90px shadow room, so the
   phone's centre is 14px above the track's centre */
.deck-btn { position: absolute; top: calc(50% - 14px); transform: translateY(-50%); z-index: 2; }
.deck-btn.prev { inset-inline-start: -56px; }
.deck-btn.next { inset-inline-end: -56px; }
@media (max-width: 480px) { .deck-btn.prev { inset-inline-start: -12px; } .deck-btn.next { inset-inline-end: -12px; } }
.deck-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.deck-btn:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.deck-btn svg { width: 20px; height: 20px; }
[dir="rtl"] .deck-btn svg { transform: scaleX(-1); }
.deck-btn:hover svg { transform: none; } [dir="rtl"] .deck-btn:hover svg { transform: scaleX(-1); }
.deck-dots { display: flex; gap: 6px; }
.deck-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.deck-dots button[aria-current="true"] { background: var(--accent); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } }

/* Split feature rows */
.split { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 2; } }
.split .phone { justify-self: center; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding-inline-start: 56px; }
.steps > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.steps h3 { margin-bottom: 6px; }
.steps p, .steps ul { color: var(--muted); }
.steps ul { margin: 6px 0 0; margin-inline-start: 18px; }
.steps .phone { margin-top: 14px; }

/* Callouts */
.callout { border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; background: var(--surface); margin: 1.2em 0; color: var(--muted); }
.callout b { color: var(--text); }
.callout.warn { border-inline-start-color: var(--warn); }
.callout.danger { border-inline-start-color: var(--danger); }
.callout p:last-child { margin-bottom: 0; }

/* Prose (tutorials) */
.prose { max-width: 760px; }
/* A prose page body keeps the page's left edge; only its content is narrowed */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 760px; }
.prose h2 { margin: 2em 0 0.6em; }
.prose h3 { margin: 1.5em 0 0.5em; }
.prose p, .prose li { color: var(--muted); font-size: 1.05rem; }
.prose ul, .prose ol:not(.steps) { margin: 0 0 1.2em; margin-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose .steps { margin: 1.2em 0 2em; }
.prose img.inline { border-radius: 10px; border: 1px solid var(--border); margin: 1em 0; }
.ui { font-weight: 700; color: var(--text); white-space: nowrap; }
.path { color: var(--text); font-weight: 700; }
.path::before { content: ""; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 24px 0 8px; }
.crumbs a { color: var(--muted); }
.page-head { padding-top: 24px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.article { padding-top: 24px; padding-bottom: 64px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag.full { background: var(--accent-tint); color: var(--link); border-color: var(--accent-border); }
.next-steps { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.next-steps h2 { font-size: 1.3rem; margin-bottom: 12px; }

/* Comparison table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 900; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 700; }
td .yes { color: var(--link); font-weight: 900; }
td .no { color: var(--muted); }
.price-card { text-align: center; padding: 36px 24px; }
.price-card h2 { margin-bottom: 6px; }
.price-card .big { font-size: 1.3rem; color: var(--link); font-weight: 900; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 1.05rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; }

/* Video embed (click to load) */
.yt { position: relative; aspect-ratio: 9 / 16; max-width: 320px; background: #000 center / cover no-repeat; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.yt.wide { aspect-ratio: 16 / 9; max-width: 720px; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: linear-gradient(180deg, var(--video-overlay-top), var(--video-overlay-bottom)); color: #fff; font: inherit; font-weight: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.yt button span.play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.yt button span.play svg { width: 28px; height: 28px; margin-inline-start: 4px; fill: var(--on-accent); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent-tint-strong), var(--accent-tint)); border: 1px solid var(--accent-border); border-radius: 20px; padding: 36px 24px; text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.site-footer a:not(.brand) { display: block; color: var(--text); padding: 4px 0; }
.site-footer .brand { margin-bottom: 10px; }
.site-footer .brand img { width: 28px; height: 28px; }
.footer-note { margin-top: 28px; font-size: 0.85rem; }
