/* Rewrap — website styles (static, no framework). Three themes via [data-theme]: dark (Night), sepia, light. */
:root,
[data-theme="dark"] {
  --bg: #0b1118;
  --bg2: #101a26;
  --panel: rgba(255, 255, 255, 0.05);
  --panel2: rgba(255, 255, 255, 0.08);
  --ink: #eef3f8;
  --muted: #9db0c2;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #5fb1ff;
  --accent2: #6fe3c8;
  --accent-ink: #06121f;
  --glow: 95, 177, 255;
  --header-bg: rgba(11, 17, 24, 0.74);
  --menu-bg: rgba(16, 26, 38, 0.95);
  --footer-bg: #070b10;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  --card-grad: linear-gradient(155deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.035) 55%, rgba(255,255,255,0.02) 100%);
  --card-border: rgba(255, 255, 255, 0.16);
  --gloss: rgba(255, 255, 255, 0.20);
  --card-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  --page-bg: radial-gradient(120% 80% at 82% -12%, rgba(95,177,255,0.20), transparent 55%),
             radial-gradient(90% 60% at 8% 2%, rgba(111,227,200,0.10), transparent 52%);
}

[data-theme="light"] {
  --bg: #eef2f6;
  --bg2: #e3ebf3;
  --panel: rgba(255, 255, 255, 0.72);
  --panel2: #ffffff;
  --ink: #16222e;
  --muted: #4a5a68;
  --line: rgba(20, 40, 60, 0.12);
  --accent: #1f6feb;
  --accent2: #3f95ff;
  --accent-ink: #ffffff;
  --glow: 31, 111, 235;
  --header-bg: rgba(238, 242, 246, 0.84);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --footer-bg: #101a26;
  --shadow: 0 26px 60px rgba(20, 50, 90, 0.16);
  --card-grad: linear-gradient(155deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.66) 60%, rgba(255,255,255,0.5) 100%);
  --card-border: rgba(255, 255, 255, 0.92);
  --gloss: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 14px 34px rgba(30, 70, 120, 0.13);
  --page-bg: radial-gradient(120% 80% at 82% -12%, rgba(80,150,255,0.26), transparent 52%),
             radial-gradient(90% 60% at 8% 2%, rgba(80,210,180,0.14), transparent 50%);
}

[data-theme="sepia"] {
  --bg: #f4ecd8;
  --bg2: #eadfc4;
  --panel: rgba(255, 250, 238, 0.7);
  --panel2: #fffaf0;
  --ink: #3a2e1d;
  --muted: #6e5d44;
  --line: rgba(80, 55, 20, 0.14);
  --accent: #a24a2a;
  --accent2: #bf7335;
  --accent-ink: #fffaf0;
  --glow: 190, 110, 50;
  --header-bg: rgba(244, 236, 216, 0.86);
  --menu-bg: rgba(255, 250, 238, 0.97);
  --footer-bg: #2b2114;
  --shadow: 0 26px 60px rgba(80, 50, 15, 0.18);
  --card-grad: linear-gradient(155deg, rgba(255,251,240,0.95) 0%, rgba(255,247,230,0.66) 60%, rgba(255,244,222,0.5) 100%);
  --card-border: rgba(255, 252, 244, 0.9);
  --gloss: rgba(255, 253, 246, 0.95);
  --card-shadow: 0 14px 34px rgba(90, 60, 20, 0.14);
  --page-bg: radial-gradient(120% 80% at 82% -12%, rgba(215,150,70,0.28), transparent 52%),
             radial-gradient(90% 60% at 8% 2%, rgba(190,100,60,0.12), transparent 50%);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
  width: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page-bg), var(--bg);
  background-color: var(--bg);
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  transition: background-color .4s ease, color .4s ease;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
button { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
[hidden] { display: none !important; }

.serif { font-family: "Newsreader", Georgia, serif; font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(14px, 2.5vw, 36px);
  background: var(--header-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  font-weight: 800; font-size: clamp(1.2rem, 2.5vw, 1.45rem); letter-spacing: -0.01em; padding: 0;
  flex-shrink: 0; white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 18px rgba(var(--glow),0.25); flex-shrink: 0; }
.desktop-nav { margin-left: auto; margin-right: 6px; display: flex; gap: 2px; flex-shrink: 0; }
.nav-btn {
  position: relative;
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 11px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .88rem;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-btn:hover { color: var(--ink); background: var(--panel2); }

/* Section indicator — an underline that grows in under the current section's entry. */
.desktop-nav .nav-btn::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 50% 50%; opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .28s ease;
}
.desktop-nav .nav-btn.is-active { color: var(--ink); }
.desktop-nav .nav-btn.is-active::after { transform: scaleX(1); opacity: 1; }

/* In the mobile sheet the same state reads better as a filled row. */
.mobile-menu .nav-btn.is-active { color: var(--accent); background: var(--panel2); }

/* Reading progress, pinned to the bottom edge of the sticky header. */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0); transform-origin: 0 50%;
}
.actions { display: flex; align-items: center; gap: 8px; margin-left: 0; flex-shrink: 0; }
.theme-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); gap: 2px; flex-shrink: 0; }
.seg-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 0; cursor: pointer; background: transparent; color: var(--muted); transition: all .2s ease; flex-shrink: 0; }
.seg-btn svg { width: 16px; height: 16px; display: block; }
.seg-btn.active { background: var(--accent); color: var(--accent-ink); }
.lang { position: relative; flex-shrink: 0; }
.lang-btn {
  height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; font-weight: 700;
  letter-spacing: .02em; font-size: .82rem; display: inline-flex; align-items: center; gap: 5px;
  transition: background .18s ease, border-color .18s ease;
}
.lang-btn:hover { background: var(--panel2); border-color: var(--accent); }
.lang-btn .flag { font-size: 1.05rem; line-height: 1; }
.lang-btn .lang-code { font-weight: 800; letter-spacing: 0.04em; }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 7px;
  border: 1px solid var(--card-border); border-radius: 16px; background: var(--menu-bg);
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line);
  z-index: 1000; display: grid; gap: 2px;
  max-height: min(75vh, 460px); overflow-y: auto; overscroll-behavior: contain;
}
.lang-menu[hidden] { display: none !important; }
.lang-menu button {
  border: 0; background: transparent; color: var(--ink); padding: 9px 12px; border-radius: 10px;
  cursor: pointer; font-weight: 600; text-align: left; font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; transition: background .15s ease, color .15s ease;
}
.lang-menu button:hover { background: var(--panel2); color: var(--accent); }
.lang-menu button.active { background: var(--panel2); color: var(--accent); font-weight: 700; }
.lang-menu .lang-left { display: inline-flex; align-items: center; gap: 10px; }
.lang-menu .flag { font-size: 1.15rem; line-height: 1; width: 1.4em; text-align: center; flex-shrink: 0; }
.lang-menu .check { color: var(--accent); opacity: 0; }
.lang-menu button.active .check { opacity: 1; }

.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.menu-btn { display: none; }
.mobile-menu {
  position: absolute; right: clamp(14px, 3vw, 36px); top: calc(100% + 8px); min-width: 220px; padding: 8px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--menu-bg);
  backdrop-filter: blur(20px); box-shadow: var(--shadow); display: grid; gap: 2px; z-index: 60;
}
.mobile-menu button, .mobile-menu a {
  border: 0; background: transparent; color: var(--ink); padding: 10px 13px; border-radius: 11px;
  cursor: pointer; font-weight: 600; text-align: left; font-size: .95rem;
}

/* ---------- Layout ---------- */
.section { padding: clamp(40px, 5.5vw, 76px) clamp(18px, 4vw, 64px); }
.section--tight { padding-top: 0; }
.heading { text-align: center; max-width: 820px; margin: 0 auto clamp(32px, 5vw, 52px); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; margin: 0 0 12px; }
.h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); line-height: 1.6; margin: 0; }

/* ---------- Hero Showcase ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 48px) clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero-text {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: .88rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; letter-spacing: -0.02em; margin: 20px 0; }
.hero h1 .accent { color: var(--accent); display: block; }
.hero h1 span { display: block; }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.32rem); line-height: 1.65; color: var(--muted); max-width: 680px; margin: 0 auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 14px; }
.note { color: var(--muted); font-size: .96rem; margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: var(--accent-ink); box-shadow: 0 16px 40px rgba(var(--glow),0.30); }
.btn-secondary { background: var(--panel2); color: var(--ink); border-color: var(--line); }
.qp { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; margin-top: 26px; color: var(--muted); }
.qp span { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.qp .i { color: var(--accent); display: inline-flex; }

.hero-banner-wrap {
  width: 100%;
  max-width: 1040px;
  margin-top: clamp(32px, 5vw, 54px);
}
.hero-compare {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.45), inset 0 1px 0 var(--gloss);
  line-height: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-compare:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 80px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--gloss);
}
.hero-compare img { width: 100%; height: auto; display: block; }

/* ---------- Phone frames ---------- */
.phone { position: relative; border: 11px solid #0a0a0a; border-radius: 40px; background: #000; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.5); aspect-ratio: 640 / 1286; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { background: var(--panel2); width: min(72vw, 296px); }

/* ---------- Cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.card { background: var(--card-grad); border: 1px solid var(--card-border); border-radius: 20px; padding: 26px; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); }
.card-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: var(--accent); background: var(--panel2); border: 1px solid var(--card-border); box-shadow: inset 0 1px 0 var(--gloss); margin-bottom: 18px; }
.card h3 { font-size: 1.24rem; font-weight: 700; margin: 0 0 8px; }
.card p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- Interactive demo ---------- */
.demo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 16px 12px 36px;
}
.phone-frame {
  position: relative;
  box-sizing: border-box;
  width: 364px;
  height: min(736px, calc(100vh - 96px));
  height: min(736px, calc(100dvh - 96px));
  padding: 11px;
  border-radius: 48px;
  background: #18181b;
  border: 2.5px solid #3f3f46;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 60px -8px rgba(0, 0, 0, 0.6),
    0 12px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Butoane fizice laterale telefon */
.phone-frame::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 140px;
  width: 3px;
  height: 44px;
  background: #3f3f46;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 58px 0 #3f3f46;
}
.phone-frame::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 175px;
  width: 3px;
  height: 70px;
  background: #3f3f46;
  border-radius: 0 2px 2px 0;
}
.app-demo {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 35px;
  background: #0f1116;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) {
  .demo-wrap {
    padding: 8px 8px 24px;
  }
  .phone-frame {
    width: min(308px, calc(100% - 28px));
    height: min(576px, calc(100vh - 150px));
    height: min(576px, calc(100svh - 86px));
    padding: 10px;
    border-radius: 42px;
    border: 2.5px solid #52525b;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      0 18px 44px rgba(0, 0, 0, 0.55);
  }
  .app-demo {
    border-radius: 30px;
  }
}

/* ---------- Features ---------- */
.free-pill { padding: 9px 18px; border-radius: 999px; font-weight: 700; background: linear-gradient(180deg, var(--accent2), var(--accent)); color: var(--accent-ink); font-size: .9rem; box-shadow: 0 10px 26px rgba(var(--glow),0.22); }
.free-row { display: flex; justify-content: center; margin: -6px 0 40px; }
.feature-groups { max-width: 1050px; margin: 0 auto; display: grid; gap: clamp(36px, 5vw, 52px); }
.group-title { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 20px; }

/* Narrow screens collapse each group behind its title — 22 stacked cards is a long scroll. */
.group-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 16px; color: var(--ink);
  background: var(--card-grad); border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.group-toggle .group-title { flex: 1; text-align: left; font-size: 1.2rem; margin: 0; }
.group-count {
  font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 999px; height: 24px; min-width: 24px;
  display: grid; place-items: center; padding: 0 7px; flex-shrink: 0;
}
.group-toggle .chev { color: var(--muted); display: inline-flex; flex-shrink: 0; transition: transform .22s ease; }
.fgroup.open .group-toggle .chev { transform: rotate(180deg); }
.fgroup.open .group-toggle + .feature-cards { margin-top: 12px; }
.feature-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: center; padding: 17px 18px; background: var(--card-grad); border: 1px solid var(--card-border); border-radius: 16px; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss); transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--panel2); border: 1px solid var(--card-border); box-shadow: inset 0 1px 0 var(--gloss); flex-shrink: 0; }
.feature-card h4 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.feature-card p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card-grad); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; background: transparent; color: var(--ink); padding: 22px 26px; cursor: pointer; text-align: left; font-weight: 700; font-size: clamp(1rem, 2.5vw, 1.14rem); }
.faq-btn .chev { color: var(--muted); display: inline-flex; flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-answer { color: var(--muted); line-height: 1.65; margin: 0; padding: 0 26px 24px; }

/* ---------- Privacy page ---------- */
.privacy-hero { text-align: center; }
.privacy-hero .shield { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; color: var(--accent); background: var(--panel2); }
.privacy-hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.privacy-hero .intro { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.policy-meta { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); }
.policy-meta strong { color: var(--ink); }
.policy-card { max-width: 980px; margin: 0 auto 18px; padding: clamp(24px, 4vw, 36px); background: var(--card-grad); border: 1px solid var(--card-border); border-radius: 20px; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss); }
.policy-card h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 12px; }
.policy-card p { color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.policy-card p:last-child { margin-bottom: 0; }
.policy-grid { max-width: 980px; margin: 20px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.82); padding: 54px clamp(18px, 4vw, 64px) 30px; margin-top: clamp(40px, 6vw, 80px); }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr; gap: 48px; max-width: 1180px; margin: 0 auto; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-brand img { width: 46px; height: 46px; border-radius: 13px; }
.footer-col p { color: rgba(255, 255, 255, 0.62); line-height: 1.6; margin: 0; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 4px; }
.footer-link { border: 0; background: transparent; color: rgba(255, 255, 255, 0.62); cursor: pointer; padding: 0; text-align: left; font-size: 1rem; font-weight: 500; }
.footer-col a { color: rgba(255, 255, 255, 0.62); }
.footer-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; color: #fff; margin-top: 4px; }
.footer-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,0.55); }
.footer-bottom p { margin: 0; }

/* ---------- Overview with four cards ---------- */
.grid4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Original vs Reflow banner ---------- */
.compare { max-width: 1040px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); line-height: 0; }
.compare img { width: 100%; height: auto; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--card-grad); border: 1px solid var(--card-border); border-radius: 22px; padding: 28px; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss); }
.plan--paid { border-color: var(--accent); }
.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.plan-head .card-icon { margin: 0; flex-shrink: 0; }
.plan h3 { font-size: 1.4rem; margin: 0; }
.plan-sub { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; line-height: 1.5; }
.checks .tick { color: var(--accent); margin-top: 1px; display: inline-flex; }
.trial { display: flex; gap: 14px; align-items: flex-start; max-width: 900px; margin: 16px auto 0; padding: 18px 22px; background: var(--card-grad); border: 1px solid var(--card-border); border-left: 3px solid var(--accent); border-radius: 16px; box-shadow: var(--card-shadow), inset 0 1px 0 var(--gloss); }
.trial p { margin: 0; color: var(--muted); line-height: 1.6; }
.trial strong { color: var(--ink); }
.trial-icon { color: var(--accent); display: inline-flex; margin-top: 2px; flex-shrink: 0; }
.pricing-notes { max-width: 900px; margin: 14px auto 0; display: grid; gap: 10px; }
.pricing-notes p { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.pricing-notes .i { color: var(--accent); display: inline-flex; margin-top: 2px; }

/* ---------- Policy: sections ---------- */
.policy-note { max-width: 980px; margin: 0 auto 18px; color: var(--muted); font-size: .96rem; text-align: center; }
.policy-card ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.policy-card li { margin: 4px 0; }
.policy-card strong { color: var(--ink); }
.policy-card p:last-child, .policy-card ul:last-child { margin-bottom: 0; }

/* ---------- Footer trademarks ---------- */
.footer-marks { max-width: 1180px; margin: 16px auto 0; color: rgba(255,255,255,0.45); font-size: .85rem; line-height: 1.55; }
.footer-col p + a, .footer-col a + p { margin-top: 2px; }

@keyframes rewrapFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rewrapGlow { 0%, 100% { opacity: .30; } 50% { opacity: .52; } }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: clamp(16px, 4vw, 32px); bottom: clamp(16px, 4vw, 32px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--accent); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background .2s ease; z-index: 40; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .desktop-nav { display: none !important; }
  .menu-btn { display: grid !important; }
  .actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero-sub { margin: 0 auto; }
  .cta-row, .qp { justify-content: center; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
}
/* Phones: the page is long, so trim the vertical rhythm. */
@media (max-width: 700px) {
  .feature-groups { gap: 12px; }
}

/* Compact header for tablets and phones */
@media (max-width: 768px) {
  .site-header {
    padding: 10px clamp(12px, 3.5vw, 20px);
    gap: 8px;
    justify-content: space-between;
  }
  .brand {
    gap: 8px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .actions {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .theme-seg {
    padding: 2px;
    gap: 1px;
    border-radius: 9px;
  }
  .seg-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .seg-btn svg {
    width: 14px;
    height: 14px;
  }
  .lang-btn {
    height: 32px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: .78rem;
    gap: 3px;
  }
  .lang-btn svg {
    width: 10px;
    height: 10px;
  }
  .icon-btn.menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .icon-btn.menu-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 560px) {
  .btn { width: 100%; }
  .feature-cards { grid-template-columns: 1fr; }
  .plan { padding: 22px; }
  .trial { padding: 16px 18px; }
  .policy-meta { flex-direction: column; align-items: center; gap: 8px; }
  .back-to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
  .section { padding: 34px clamp(18px, 4vw, 64px); }
  .section--tight { padding-top: 0; }
  .heading { margin-bottom: 26px; }
  .card { padding: 20px; }
  .card-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 13px; }
  .card h3 { font-size: 1.14rem; }
  .free-row { margin-bottom: 26px; }
  .footer { padding-top: 40px; margin-top: 34px; }
}

@media (max-width: 330px) {
  .brand span { font-size: 1.1rem; }
  .site-header { padding: 8px 8px; }
}
