/* AnongKlase landing page — dependency-free, responsive. */
:root {
  --blue: #1a56a0;
  --blue-dark: #103f7d;
  --blue-deep: #0c2f5e;
  --green: #1f8a4c;
  --ink: #1b2430;
  --muted: #5b6573;
  --line: #e4e9f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --radius: 16px;
  --maxw: 1100px;
  --shadow: 0 10px 30px rgba(16, 63, 125, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; }

/* ---- Nav ---- */
.nav {
  /* Above the drawer (60) and its scrim (55): the bar must stay visible and the
     burger tappable while the drawer is open, so it can close again.
     NO backdrop-filter here — it establishes a containing block for fixed-
     position descendants, which would anchor the drawer to this 64px bar
     instead of the viewport. An opaque background costs nothing and keeps
     `position: fixed` meaning what it says. */
  position: sticky; top: 0; z-index: 70;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-dark); font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); }
/* Source order is brand → CTA → burger → links, so that on phones the CTA and
   burger hold the bar. `order` restores the desktop arrangement. */
.nav-cta { order: 3; margin-left: 4px; padding: 9px 16px; font-size: .9rem; white-space: nowrap; }
.nav-links { order: 2; margin-left: auto; }
.narrow-only { display: none; }

/* Burger — desktop hides it; the drawer only exists on phones. */
.nav-toggle {
  order: 4; display: none; place-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; flex-direction: column; align-items: center;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(12, 47, 94, .5);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* Eight links plus the CTA get tight in the last stretch before the drawer
   takes over; tighten the row rather than let the bar overflow. */
@media (max-width: 1040px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: .9rem; }
}
@media (max-width: 920px) {
  .nav-links { gap: 11px; }
  .nav-links a { font-size: .86rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  /* Same element as the desktop row, re-cast as a right-hand drawer. It starts
     BELOW the 64px bar rather than under it, so the burger stays uncovered and
     can close the drawer it opened. */
  .nav-links {
    position: fixed; top: 64px; right: 0; bottom: 0; z-index: 60;
    width: min(78vw, 300px);
    margin-left: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 14px 22px 28px;
    background: var(--card);
    box-shadow: -12px 0 34px rgba(12, 47, 94, .22);
    transform: translateX(100%);
    transition: transform .26s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1rem; padding: 15px 2px;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 420px) {
  /* A two-word CTA wraps to two lines in a 64px bar and distorts the pill;
     the short label keeps it on one line beside the burger. */
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .brand { font-size: 1rem; }
  .nav .wrap { gap: 10px; }
  .nav-cta { padding: 8px 13px; font-size: .84rem; }
}

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 8px 22px rgba(12, 47, 94, .34);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--blue-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-links, .nav-scrim, .to-top, .nav-toggle span { transition: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .12s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(26, 86, 160, 0.35);
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.14); box-shadow: none; border: 1px solid rgba(255,255,255,.4); }
.btn.ghost:hover { background: rgba(255,255,255,.24); }
/* For the blue hero, where a blue button would disappear into the background. */
.btn.light { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.btn.light:hover { background: #eaf2ff; color: var(--blue-dark); }
.btn .tri { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.btn small { font-weight: 500; opacity: .85; display: block; font-size: .7rem; line-height: 1; }
.btn b { font-size: 1.02rem; line-height: 1.1; }

/* Official-style Google Play badge */
.play-badge { display: inline-block; line-height: 0; transition: transform .12s ease, filter .12s ease; }
.play-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.play-badge img, .play-badge .gp-badge { height: 58px; width: auto; display: block; }
.play-badge.sm img, .play-badge.sm .gp-badge { height: 42px; }

/* Official-style Microsoft Store badge */
.ms-badge { display: inline-block; line-height: 0; transition: transform .12s ease, filter .12s ease; }
.ms-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ms-badge img, .ms-badge .msft-badge { height: 58px; width: auto; display: block; }
.ms-badge.sm .msft-badge { height: 42px; }

/* Official-style App Store badge */
.as-badge { display: inline-block; line-height: 0; transition: transform .12s ease, filter .12s ease; }
.as-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.as-badge img, .as-badge .apple-badge { height: 58px; width: auto; display: block; }
.as-badge.sm .apple-badge { height: 42px; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, #2f6fc0 0%, transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; padding: 84px 0 96px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero-icon { width: 78px; height: 78px; border-radius: 20px; background: #fff; padding: 9px; box-shadow: 0 10px 26px rgba(0,0,0,.28); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 800; }
.hero .lead { font-size: 1.2rem; color: #d6e3f5; max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  font-size: .82rem; font-weight: 600; color: #eaf2ff;
  border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 6px 13px;
}
/* Three store badges at full size overflow the hero's text column and wrap 2 + 1;
   a slightly shorter badge keeps all three on one line. */
.hero-cta .apple-badge, .hero-cta .gp-badge, .hero-cta .msft-badge { height: 52px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: 266px; max-width: 100%; border-radius: 30px; border: 7px solid #081c38; background: #fff; box-shadow: 0 26px 55px rgba(0,0,0,.5); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .badges { justify-content: center; }
  .hero-art { margin-top: 36px; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero-art img { width: 230px; }
  .badge { font-size: .76rem; padding: 5px 11px; }
}

/* ---- Features ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { font-size: 1.7rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

/* Platform tag on feature titles (e.g. Android-only) */
.feature .tag {
  display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 700;
  letter-spacing: .03em; color: var(--blue); background: #e9f1fb;
  border: 1px solid #cfe0f5; border-radius: 999px; padding: 2px 8px; vertical-align: middle;
}

/* ---- Windows section ---- */
.win { background: #fff; border-top: 1px solid var(--line); }
.win .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.win h2 { text-align: left; }
.win-kicker { display: inline-block; font-weight: 700; font-size: .82rem; color: var(--blue); background: #eef4fb; border: 1px solid #d7e6f7; border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.win-lead { color: var(--muted); font-size: 1.08rem; }
.win-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.win-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.win-list li::before { content: "✓"; color: var(--green); font-weight: 800; }
.win-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.win-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.btn.alt { background: #eef4fb; color: var(--blue-dark); box-shadow: none; border: 1px solid #d7e6f7; }
.btn.alt:hover { background: #e2edf9; }
.win-shot { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 880px) {
  .win .wrap { grid-template-columns: 1fr; text-align: center; }
  .win h2 { text-align: center; }
  .win-list { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
  .win-cta { justify-content: center; }
}

/* The three platform sections (iPhone, Android, Windows) share the .win layout
   and sit back to back; tinting every other one keeps them from reading as a
   single long block. */
.win.tint { background: var(--bg); }
/* The store tiles already carry their own device frame, so this is the gallery
   card treatment at a larger size — not a second frame around a frame. */
.phone-shot {
  display: block; width: 290px; max-width: 100%; margin: 0 auto;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(8, 28, 56, .18);
}

.hero .lead.avail { font-size: 1.05rem; margin-bottom: 24px; }

/* ---- Screens gallery ---- */
.screens { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery img {
  width: 240px; flex: 0 0 auto; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow); scroll-snap-align: center;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: #c7d4e6; border-radius: 8px; }

/* ---- Pro ---- */
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; align-items: stretch; }
.pro-card {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-radius: 24px; padding: 36px 32px; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.pro-card h2 { color: #fff; }
.pro-card .plat { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bcd4f2; }
.pro-price { font-size: 2.4rem; font-weight: 800; margin: 6px 0 4px; }
.pro-price span { font-size: 1rem; font-weight: 500; color: #cfe0f5; }
/* The three Pro terms. Same features on every row — only the price differs, so
   they read as one list rather than three competing cards. */
.terms { list-style: none; padding: 0; margin: 18px auto 4px; max-width: 320px; display: grid; gap: 8px; width: 100%; }
.terms li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 14px; border-radius: 12px; text-align: left;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
}
.terms li.best { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.terms .term-name { font-weight: 600; font-size: .98rem; }
.terms .term-name em {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  background: #ffd257; color: #4a3600; font-style: normal; font-weight: 800;
  font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle;
}
.terms .term-cost { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.terms .term-per { display: block; font-weight: 500; font-size: .74rem; color: #cfe0f5; text-align: right; }
.perks { list-style: none; padding: 0; margin: 20px auto 0; max-width: 320px; text-align: left; display: grid; gap: 12px; width: 100%; }
.perks li { display: flex; gap: 12px; align-items: center; font-size: 1rem; }
.perks li::before { content: "✓"; color: #8fe3b0; font-weight: 800; }
/* auto keeps the button pinned to the bottom; the 22px stops it from touching
   the last perk once the terms list makes the Pro card the taller of the two. */
.pro-card .btn { margin-top: auto; align-self: center; background: #fff; color: var(--blue-dark); box-shadow: none; }
.pro-card .perks { margin-bottom: 22px; }
.pro-card .btn:hover { background: #eaf2ff; }
@media (max-width: 720px) { .pro-grid { grid-template-columns: 1fr; } }

/* Free plan card (white) sits next to the blue Pro card */
.pro-card.free { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pro-card.free .plat { color: var(--blue); }
.pro-card.free .pro-price span { color: var(--muted); }
.pro-card.free .perks li::before { color: var(--green); }
.pro-card.free .btn { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(26,86,160,.35); }
.pro-card.free .btn:hover { background: var(--blue-dark); }
.pro-card .ribbon {
  position: absolute; top: 16px; right: -34px; transform: rotate(45deg);
  background: #ffd257; color: #4a3600; font-weight: 800; font-size: .68rem;
  letter-spacing: .05em; padding: 5px 40px; text-transform: uppercase;
}
.pro-card { position: relative; overflow: hidden; }
.pro-note { text-align: center; color: var(--muted); max-width: 620px; margin: 26px auto 0; font-size: .95rem; }
.pro-note strong { color: var(--ink); }

/* ---- Sync guide ---- */
/* The Windows section above is tinted too, so the seam needs a line of its own. */
.sync { background: var(--bg); border-top: 1px solid var(--line); }
.sync-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.sync-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.sync-card > h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.sync-steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.sync-steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink); }
.sync-steps li::before {
  content: counter(step); grid-row: span 2;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center;
}
.sync-steps li p { margin: 0; color: var(--muted); font-size: .9rem; }
.sync-steps li strong { display: block; color: var(--ink); font-weight: 700; }
.sync-note { text-align: center; color: var(--muted); max-width: 680px; margin: 28px auto 0; font-size: .9rem; }
@media (max-width: 760px) { .sync-cols { grid-template-columns: 1fr; } }

/* ---- CTA ---- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 18px; }
.cta .play-badge, .cta .ms-badge, .cta .as-badge { margin: 0 7px; vertical-align: middle; }

/* ---- Footer ---- */
footer { background: var(--blue-deep); color: #c9d6ea; padding: 48px 0 36px; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer a { color: #eaf2ff; }
footer .disclaimer { max-width: 460px; color: #9fb2cd; font-size: .85rem; }
footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.copyright { text-align: center; color: #7e93b3; font-size: .82rem; margin-top: 28px; }

/* ---- Legal page ---- */
.legal { background: #fff; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2rem; color: var(--blue-dark); }
.legal h2 { text-align: left; font-size: 1.25rem; margin-top: 1.6em; }
.legal .updated { color: var(--muted); margin-top: -.5em; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.legal .note { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--muted); }
.legal h3 { text-align: left; font-size: 1.05rem; color: var(--ink); margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .6em; }

/* Support page — contact card at the top */
.support-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 8px 0 12px; text-align: center; }
.support-card .support-lead { font-size: 1.05rem; margin: 0 0 18px; }
.support-card .btn { display: inline-flex; }
.support-card .support-hint { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
