/* FrumFone website — brand layer on top of the shared style.css (which the setup screens use). */
:root {
  --midnight: #0b2233; --deep: #0f3a4f; --teal: #16877f; --teal-2: #1fa89e; --gold: #f2b544; --gold-ink: #2a1a00;
  --cream: #f7f4ee; --card: #ffffff;
  --bg: #f7f4ee; --panel: #ffffff; --ink: #13202a; --muted: #5b6874; --line: #e4ded3;
  --accent: #16877f; --accent-ink: #ffffff; --accent-soft: #e1f2ef;
  --radius: 14px; --shadow: 0 1px 2px rgba(11,34,51,.05), 0 8px 24px rgba(11,34,51,.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1620; --cream: #0d1b26; --panel: #111f2a; --card: #122230; --ink: #e8eef2; --muted: #9fb0bd; --line: #22333f;
    --accent: #1fa89e; --accent-ink: #04211e; --accent-soft: #123a38;
  }
}
body.site { font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.site h1, .site h2, .site h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.015em; }
html { scroll-behavior: smooth; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.site a { color: var(--accent); }
.wrap, section.how, section.menu, section.protection, section.need, section.faq { padding-left: max(20px, calc((100% - 1160px) / 2)); padding-right: max(20px, calc((100% - 1160px) / 2)); }

/* ---------- logo ---------- */
.mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(22,135,127,.35)); }
.mark.big { width: 64px; height: 64px; }
.logo-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wordmark { font-family: var(--serif); font-weight: 650; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); }
.wordmark em { font-style: normal; font-weight: 500; opacity: .75; }
.logo-lockup.small .mark { width: 26px; height: 26px; }
.logo-lockup.small .wordmark { font-size: 17px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 11px 20px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.gold { background: linear-gradient(180deg, #f6c566, var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(242,181,68,.35); }
.btn.gold:hover { box-shadow: 0 10px 26px rgba(242,181,68,.45); }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255,255,255,.14); }
.btn.big { padding: 15px 28px; font-size: 17px; }
.price-tag:not(:empty)::before { content: "· "; opacity: .6; }
.small-btn { font-size: 13px; padding: 6px 12px; margin-left: auto; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, calc((100% - 1160px) / 2)); transition: background .25s ease, box-shadow .25s ease, padding .25s ease; }
.nav .wordmark { color: #fff; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.nav.scrolled { background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-top: 10px; padding-bottom: 10px; }
.nav.scrolled .wordmark { color: var(--ink); }
.nav.scrolled nav a { color: var(--muted); }
.nav.scrolled nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav nav { display: none; } .nav .btn { margin-left: auto; padding: 9px 16px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 128px max(20px, calc((100% - 1160px) / 2)) 88px; background: radial-gradient(1200px 600px at 80% -10%, #155f73 0%, transparent 60%), linear-gradient(160deg, var(--midnight) 0%, var(--deep) 100%); color: #eef5f8; }
.hero-glow { position: absolute; width: 520px; height: 520px; right: 8%; top: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(31,168,158,.35), transparent 65%); filter: blur(20px); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: #9fd6d0; margin: 0 0 14px; }
.eyebrow.dark { color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,181,68,.2); }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; margin: 0 0 18px; color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #ffd88f, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 18.5px; line-height: 1.55; color: #c7dbe4; max-width: 34em; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #dcebf1; }
.hero-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 36px; } }

/* ---------- device mock-up ---------- */
.hero-stage .device { width: 272px; height: 552px; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #1d2a35, #070d12); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2b3844, inset 0 0 0 6px #0b1218; position: relative; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .6s ease; }
.hero-stage .device:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.hero-stage .device::before { content: ""; position: absolute; top: 20px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #05090c; z-index: 3; }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: linear-gradient(180deg, #f8fafb, #e9f0f3); }
.clutter, .clean { position: absolute; inset: 0; padding: 50px 14px 14px; }
.clutter { display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 14px 6px; background: linear-gradient(180deg, #2b1f45, #501d3a); }
.clutter .ct { display: grid; justify-items: center; gap: 4px; font-size: 9px; color: #f3e9ff; text-align: center; transition: transform .7s cubic-bezier(.5,-0.4,.8,.6), opacity .5s ease; transition-delay: calc(var(--i) * 28ms); }
.clutter .ct i { font-style: normal; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.clean { opacity: 0; transition: opacity .6s ease .35s; }
.hero-stage .device.after .clutter .ct { transform: translateY(420px) rotate(var(--r)); opacity: 0; }
.hero-stage .device.after .clutter { transition: background .6s ease .2s; background: transparent; }
.hero-stage .device.after .clean { opacity: 1; }
.hero-stage .device:not(.after) .clean { transition: opacity .2s ease; }
.clean .ps-title, .phone-screen .ps-title { font-family: var(--serif); font-weight: 650; color: #0f3a4f; font-size: 19px; }
.clean .ps-sub, .phone-screen .ps-sub { font-size: 11px; color: #5b6874; margin-bottom: 16px; display: flex; align-items: center; gap: 5px; }
.ps-sub .shield { width: 13px; height: 13px; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.ps-app { display: grid; justify-items: center; gap: 5px; font-size: 9.5px; text-align: center; line-height: 1.15; color: #13202a; animation: pop .35s cubic-bezier(.2,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.ps-ico { width: 42px; height: 42px; border-radius: 13px; background: #fff; display: grid; place-items: center; font-size: 21px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 8px rgba(15,58,79,.1); }
/* Real app icons (icons/<package>.png) fill the icon box with the same rounded corners. */
.ps-ico img, .app-card .ico img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; user-select: none; -webkit-user-drag: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.toggle-pill { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.toggle-pill button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 18px; background: transparent; color: #c7dbe4; cursor: pointer; }
.toggle-pill button[aria-pressed="true"] { background: #fff; color: var(--midnight); }

/* ---------- band ---------- */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.band-item { background: var(--panel); padding: 26px 20px; text-align: center; }
.band-item b { display: block; font-family: var(--serif); font-size: 32px; color: var(--ink); }
.band-item span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section.how, section.menu, section.need, section.faq, section.protection { padding-top: 88px; padding-bottom: 88px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 10px; }
.section-head .sub { color: var(--muted); font-size: 17px; margin: 0; }

.steps-rail { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps-rail::before { content: ""; position: absolute; top: 27px; left: 7%; right: 7%; height: 2px; background: linear-gradient(90deg, var(--teal-2), var(--gold)); opacity: .5; }
.steps-rail li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.steps-rail .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--midnight); color: #fff; font-weight: 700; margin: -42px 0 14px; border: 4px solid var(--bg); position: relative; }
.steps-rail b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps-rail p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .steps-rail { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps-rail::before { display: none; } }
@media (max-width: 520px) { .steps-rail { grid-template-columns: 1fr; } }

/* ---------- menu ---------- */
section.menu { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0 0 28px; }
.plan { text-align: left; background: var(--panel); border: 2px solid var(--line); border-radius: 18px; padding: 18px; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .2s, transform .15s, box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan b { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.plan span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.menu-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .menu-layout { grid-template-columns: 1fr; } }
.app-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.app-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; text-align: left; color: var(--ink); font: inherit; position: relative; transition: border-color .2s, background .2s, transform .12s; }
.app-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.app-card .ico { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--bg); flex: none; transition: transform .2s; }
.app-card .nm { font-weight: 600; line-height: 1.2; }
.app-card .tag { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.app-card[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--panel)); }
.app-card[aria-pressed="true"] .ico { transform: scale(1.06); }
.app-card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 9px; right: 11px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.app-card:disabled { cursor: default; }
.app-card .rec-no { color: var(--high); }
.extras { margin-top: 18px; display: grid; gap: 10px; }
.extras label { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.extras select { margin-left: auto; max-width: 60%; }
.extras details { padding: 4px 2px; }

.summary { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.summary .phone { width: 204px; height: 408px; margin: 0 auto 18px; border-radius: 34px; padding: 10px; background: linear-gradient(145deg, #1d2a35, #070d12); box-shadow: 0 18px 40px rgba(11,34,51,.25), inset 0 0 0 2px #2b3844; }
.summary .phone-screen { width: 100%; height: 100%; border-radius: 25px; overflow: hidden; padding: 30px 10px 10px; background: linear-gradient(180deg, #f8fafb, #e9f0f3); }
.summary .ps-ico { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
.summary h3 { margin: 0 0 6px; font-size: 18px; }
.summary .count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.summary .impact li { font-size: 13px; }
.summary .price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.summary .price b { font-family: var(--serif); font-size: 30px; }
.summary .btn { width: 100%; margin-top: 14px; }
@media (max-width: 960px) { .summary { position: static; } }

/* ---------- protection ---------- */
section.protection { background: linear-gradient(170deg, var(--midnight), var(--deep)); color: #e6f0f4; }
section.protection h2 { color: #fff; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; transition: background .2s, transform .2s; }
.feature-card:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.feature-card h3 { color: #fff; font-size: 20px; margin: 10px 0 6px; }
.feature-card p { margin: 0; color: #bcd0da; line-height: 1.55; }
.ficon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; background: rgba(31,168,158,.18); }
.honest { margin-top: 24px; border-radius: 18px; padding: 22px; background: rgba(242,181,68,.08); border: 1px solid rgba(242,181,68,.3); }
.honest h3 { margin: 0 0 6px; color: #ffd88f; font-size: 19px; }
.honest p { margin: 0; color: #d6e3ea; line-height: 1.55; }

/* ---------- need + faq ---------- */
.need-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .need-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .need-grid { grid-template-columns: 1fr; } }
.need-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.need-grid .ficon { background: var(--accent-soft); margin-bottom: 10px; }
.need-grid b { display: block; font-size: 17px; }
.need-grid p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ol { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }

/* ---------- final CTA + footer ---------- */
.cta-band { text-align: center; padding: 72px 20px; background: radial-gradient(600px 300px at 50% 0%, rgba(31,168,158,.18), transparent 70%), var(--cream); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 16px auto 24px; max-width: 18em; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 24px max(20px, calc((100% - 1160px) / 2)); border-top: 1px solid var(--line); background: var(--panel); }
.foot .foot-note { flex-basis: 100%; }

/* ---------- scroll reveal (only when scripts run, so content never stays hidden) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- setup screens (shared app.js) in brand colors ---------- */
.site #setup .top { background: var(--panel); }
.site #setup .brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 19px; }
.site #setup .brand .mark { width: 28px; height: 28px; }
.site #setup main { max-width: 1160px; }
.site #setup .panel { border-radius: 18px; }
.site #setup button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 10px 20px; }
.site #setup button:not(.preset) { border-radius: 999px; }
.site #setup h1 { font-size: 32px; }
.prep { max-width: 1120px; margin: 18px auto 0; padding: 18px 22px; background: var(--accent-soft); border-radius: 18px; }
.prep h2 { font-size: 19px; margin: 0 0 6px; }
.prep ol { margin: 0; padding-left: 20px; line-height: 1.7; }

/* Plain pages (privacy, terms): the header sits in the page instead of floating over a hero. */
.nav.static { position: sticky; top: 0; }
.app-card .mark-tag { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.app-card .mark-tag.rec-no { background: var(--high-soft); color: var(--high); }
