/* Public home page (home.html, served at /). Self-contained: it does not load the app's stylesheets. */
@font-face { font-family: Fredoka; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/fredoka-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/nunito-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/nunito-sans-700.woff2') format('woff2'); }

:root {
  --bg: #f4fbfc; --bg-alt: #e3f4f7; --surface: #fff; --ink: #111f24; --muted: #4c5e65; --line: #cfe1e4;
  --brand: #159db8; --brand-deep: #087f98; --night: #12333a; --night-2: #1d4c56;
  --radius: 16px; --shadow: 0 18px 45px rgba(18, 48, 55, .14); --gutter: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.6 'Nunito Sans', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); }
h1, h2, h3 { font-family: Fredoka, ui-rounded, 'Nunito Sans', system-ui, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); max-width: 24ch; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 251, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.25rem Fredoka, system-ui, sans-serif; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--brand-deep); }
.top-cta { display: flex; gap: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font: 700 .98rem 'Nunito Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(21, 157, 184, .35); }
.btn-solid:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--night); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #bfe9ef 0, transparent 60%), var(--bg); padding: 56px 0 64px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.kicker { font: 700 .8rem 'Nunito Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 18px 0 26px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 16px; max-width: 54ch; }

/* screenshots */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.hero-shot { transform: rotate(.6deg); }

/* sections */
.band { padding: 72px 0; }
.band.alt { background: var(--bg-alt); }
.sub { color: var(--muted); max-width: 66ch; margin: 14px 0 32px; }
#problem h2 { max-width: 34ch; }
.cards { display: grid; gap: 18px; margin-top: 28px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 18px rgba(18, 48, 55, .06); }
.card h3 { margin-bottom: 8px; }
.card p, .card li { color: var(--muted); font-size: .98rem; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; font: 700 1rem Fredoka, sans-serif; margin-bottom: 12px; }

/* how it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1rem Fredoka, sans-serif; }
.why { margin-top: 36px; background: var(--night); color: #e8f6f8; border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.why h3 { color: #fff; }
.why ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.why b, .why em { color: #fff; }

/* carousel: native scroll-snap, so swipe works; buttons and dots are the extras */
.carousel { min-width: 0; }
.track { list-style: none; margin: 0; padding: 4px 4px 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; min-width: 0; }
.car-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.car-btn:hover { border-color: var(--brand); }
.dots { display: flex; gap: 4px; }
.dot { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9db8be; }
.dot[aria-selected="true"]::after { background: var(--brand-deep); width: 14px; height: 14px; }

/* skins + phones */
.skins { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 36px; align-items: center; margin-top: 64px; }
.skins-copy { display: grid; gap: 12px; }
.skins-copy p { color: var(--muted); }
.phones { display: grid; grid-template-columns: 200px 200px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 56px; }
.phone { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.phone img { border-radius: 22px; border: 6px solid var(--night); box-shadow: var(--shadow); margin-bottom: 8px; }
.phones-copy { color: var(--muted); }

.legal-note { margin-top: 28px; font-size: .92rem; color: var(--muted); max-width: 90ch; }

.cta { background: var(--night); color: #e8f6f8; padding: 64px 0; text-align: center; }
.cta h2 { color: #fff; margin: 0 auto 10px; }
.cta p { margin-bottom: 24px; }
.cta .hero-cta { justify-content: center; }

.foot { background: #0c2328; color: #a9c3c8; padding: 32px 0; font-size: .9rem; }
.foot-in { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot .brand { color: #fff; font-size: 1.1rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot a { color: #d7eaee; }

@media (max-width: 960px) {
  .hero-in, .how-grid, .skins { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero-shot { transform: none; }
  .phones { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; }
  .phones-copy { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .band { padding: 52px 0; }
  .hero { padding: 36px 0 44px; }
  .cards.three, .cards.two { grid-template-columns: minmax(0, 1fr); }
  .top-in { gap: 10px; min-height: 60px; }
  .brand span { font-size: 1.05rem; }
  .top-cta .btn { min-height: 40px; padding: 0 14px; font-size: .88rem; }
  .top-cta .btn-ghost { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .why { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
