/* ============================================================
   Focal Voice — focalvoice.com
   Single stylesheet, no dependencies. Palette derived from the
   app icon / App Store screenshots (mint + emerald + ink).
   ============================================================ */

:root {
  --bg: #F7FBF8;
  --panel: #ECF7F0;
  --card: #FFFFFF;
  --ink: #0B1F15;
  --body: #33493D;
  --muted: #5C7466;
  --green: #14B573;
  --green-dark: #0E9A5F;
  --green-deeper: #0A7A4B;
  --mint: #D9F3E5;
  --mint-border: #CBEBDA;
  --line: #E3F0E8;
  --star: #F0A928;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 21, .05), 0 2px 8px rgba(11, 31, 21, .04);
  --shadow-md: 0 6px 24px rgba(11, 31, 21, .08), 0 2px 6px rgba(11, 31, 21, .05);
  --shadow-lg: 0 24px 60px -12px rgba(10, 122, 75, .22);
  --maxw: 1120px;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green-deeper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

.em-green { font-style: italic; color: var(--green-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 251, 248, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em; margin-right: auto;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--body); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.nav-links a:hover { color: var(--green-deeper); }

.lang-sel {
  appearance: none; -webkit-appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1.5px solid var(--mint-border); border-radius: 999px;
  color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600;
  padding: 8px 32px 8px 14px; cursor: pointer;
}
.lang-sel:hover { border-color: var(--green); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  margin-left: auto;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 14px 28px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: 0;
}
.btn-primary {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; box-shadow: 0 8px 20px -6px rgba(14, 154, 95, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(14, 154, 95, .6); color: #fff; }
.btn-ghost {
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--mint-border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-deeper); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .93rem; }

.badge-appstore { display: inline-block; transition: transform .15s ease; }
.badge-appstore:hover { transform: translateY(-2px); }
.badge-appstore img { height: 56px; width: auto; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 480px at 82% -10%, rgba(20, 181, 115, .16), transparent 65%),
    radial-gradient(640px 460px at -8% 68%, rgba(167, 235, 195, .5), transparent 62%),
    linear-gradient(180deg, #EFF9F3 0%, var(--bg) 78%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 48px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--green-deeper);
  border: 1px solid var(--mint-border);
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  max-width: 34em; margin: 22px 0 30px;
}

.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }

.rating { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); font-weight: 550; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone::before {
  content: ""; position: absolute; inset: 8% -6% -4% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(20, 181, 115, .28), transparent 72%);
  filter: blur(12px);
}
.hero-phone img {
  width: min(340px, 82vw);
  border-radius: 34px;
  box-shadow: var(--shadow-lg), 0 2px 8px rgba(11, 31, 21, .12);
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  color: var(--muted); font-size: .93rem; font-weight: 550;
  padding: 26px 0 0; list-style: none;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-tinted { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 46em; margin: 0 auto 52px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.1rem; }

.kicker {
  display: block; color: var(--green-dark); font-weight: 800;
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}

/* ---------- Download strip ---------- */

.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip {
  background: var(--card); border: 1.5px solid var(--mint-border);
  color: var(--ink); font-weight: 700; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.chip span { color: var(--green-dark); margin-right: 6px; }

.download-inner { text-align: center; }
.download-inner .badge-appstore { margin-top: 8px; }
.download-note { margin-top: 14px; color: var(--muted); font-size: .93rem; }

/* ---------- Screenshot gallery ---------- */

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 74vw);
  gap: 26px; overflow-x: auto; padding: 10px 24px 26px;
  scroll-snap-type: x mandatory; scroll-padding: 24px;
  max-width: var(--maxw); margin: 0 auto;
  scrollbar-width: thin; scrollbar-color: var(--mint-border) transparent;
}
.gallery figure { scroll-snap-align: start; margin: 0; }
.gallery img {
  width: 100%; border-radius: 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.gallery figcaption {
  margin-top: 14px; text-align: center; font-size: .95rem;
  color: var(--muted); font-weight: 550;
}

.gallery-hint { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 4px; }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }

.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--mint); color: var(--green-deeper);
  font-weight: 800; font-size: 1.15rem; margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .99rem; }

/* ---------- Feature grid ---------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }

.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--green-deeper); }
.feature h3 { font-size: 1.04rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; color: var(--muted); }
.feature a { font-weight: 650; font-size: .9rem; }

/* ---------- Guides ---------- */

.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.guide-card .tag {
  align-self: flex-start; background: var(--mint); color: var(--green-deeper);
  font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.guide-card h3 { font-size: 1.08rem; color: var(--ink); }
.guide-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.guide-card .more { color: var(--green-deeper); font-weight: 700; font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.03rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 500;
  color: var(--green-dark); transition: transform .2s ease; line-height: 1; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; font-size: .99rem; }
.faq-item .faq-body p + p { margin-top: 10px; }
.learn-more { font-weight: 700; }

/* ---------- CTA panel ---------- */

.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #0C8A58 0%, var(--green-deeper) 55%, #0B1F15 160%);
  border-radius: 28px; padding: 72px 32px;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before, .cta-panel::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-panel::before { width: 420px; height: 420px; background: rgba(255,255,255,.07); top: -220px; right: -120px; }
.cta-panel::after { width: 340px; height: 340px; background: rgba(167,235,195,.12); bottom: -190px; left: -100px; }
.cta-panel h2 { color: #fff; }
.cta-panel .em-green { color: #8FF0C2; }
.cta-panel p { color: rgba(255,255,255,.85); max-width: 36em; margin: 16px auto 30px; font-size: 1.1rem; }
.cta-panel .rating { justify-content: center; color: rgba(255,255,255,.8); margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink); color: #B9CEC2; margin-top: 96px;
  padding: 60px 0 36px; font-size: .95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 30em; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #B9CEC2; text-decoration: none; }
.site-footer a:hover { color: #8FF0C2; }
.footer-bottom {
  border-top: 1px solid rgba(185, 206, 194, .18); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .87rem; color: #7E9689;
}

/* ---------- Guide article pages ---------- */

.article-hero { padding: 64px 0 20px; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-deeper); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; }

.article-meta { color: var(--muted); font-size: .92rem; margin-top: 18px; font-weight: 550; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
  padding: 34px 0 40px; align-items: start;
}

.article-body { max-width: 46em; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { margin-top: 1.9em; font-size: 1.65rem; }
.article-body h3 { margin-top: 1.5em; }
.article-body ol, .article-body ul { padding-left: 1.35em; display: grid; gap: .55em; }
.article-body li::marker { color: var(--green-dark); font-weight: 700; }
.article-body strong { color: var(--ink); }

.callout {
  background: var(--mint); border: 1px solid var(--mint-border); border-radius: 16px;
  padding: 20px 22px; font-size: .98rem;
}
.callout strong { color: var(--green-deeper); }

.article-cta {
  background: var(--card); border: 1.5px solid var(--mint-border); border-radius: var(--radius);
  padding: 28px; text-align: center; box-shadow: var(--shadow-md);
  position: sticky; top: 92px;
}
.article-cta img.appicon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 14px; box-shadow: var(--shadow-sm); }
.article-cta h3 { margin-bottom: 6px; }
.article-cta p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.article-cta .rating { justify-content: center; margin-top: 12px; }

.article-shot { margin: 1.6em 0; }
.article-shot img {
  width: min(300px, 100%); margin: 0 auto; border-radius: 22px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.article-shot figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }

.related { margin-top: 64px; }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero-phone { order: -1; }
  .hero-phone img { width: min(280px, 70vw); }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-cta { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: var(--shadow-md);
  }
  .nav-links a { padding: 14px 24px; }
  .nav-links .btn { margin: 10px 24px; }
  .nav-links .lang-sel { margin: 10px 24px; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .features, .guides-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 56px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .guide-card, .badge-appstore { transition: none; }
}
