/* Flip VPN — one stylesheet, no framework, no webfonts.
   The KaiOS audience is on feature phones over 2G/3G, so page weight is a
   feature: system fonts, no JS for layout, nothing that blocks first paint. */

:root {
  --red: #F04E4C;
  --red-deep: #ED2024;
  --red-dark: #C9201F;
  --ink: #14162B;
  --ink-soft: #3A3D55;
  --muted: #6C7086;
  --line: #E3E4EC;
  --bg: #FFFFFF;
  --bg-alt: #F7F7FA;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--red-dark); }
a:hover { color: var(--red); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); font-size: .95rem; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px); z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--red-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 600; border: 1px solid var(--red); cursor: pointer;
  font-size: 1rem; transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--muted); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: 62px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 36px; }

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

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- platform cards ---------- */
.platform { text-align: left; }
.tag {
  display: inline-block; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  margin-bottom: 14px;
}
.tag.soon { color: var(--red-dark); border-color: var(--red); }

/* ---------- pricing ---------- */
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; }
.price small { font-size: .95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--red); box-shadow: 0 0 0 3px rgba(240,78,76,.12); }
.plan .btn { margin-top: auto; }
.plan .btn, .plan .tag { align-self: flex-start; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

/* ---------- forms ---------- */
.form { max-width: 440px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink);
}
.field input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(240,78,76,.15);
}
.note {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--red); border-radius: 6px;
  padding: 14px 16px; font-size: .95rem; color: var(--ink-soft);
}

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); background: var(--ink); color: #B9BCD0;
  padding: 48px 0 36px; margin-top: 0;
}
.site-foot a { color: #E6E7F0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-brand img { height: 28px; width: auto; }
.foot-col h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
  color: #8A8EA8; margin: 0 0 12px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; font-size: .95rem; }
.foot-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #2A2D48;
  font-size: .87rem; color: #8A8EA8;
}

@media (max-width: 820px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-head .wrap { min-height: 60px; }
  .nav { gap: 16px; width: 100%; margin: 0 0 12px; }
}


/* ---------- form hints & errors (signup) ---------- */
.field .hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field-err { font-size: .9rem; color: var(--red-dark); margin: 5px 0 0; min-height: 1em; }
.field input:invalid { box-shadow: none; }   /* defer to our own messaging */
.form-status { font-size: .97rem; margin-top: 14px; min-height: 1.2em; }
