/* Wifi Vault — website styles.
   Design system mirrors the iOS app: a clean, trustworthy light surface with
   vibrant category gradients. The signature accent is the app's "wifi" gradient
   (cyan → blue, #0FB5C4 → #2E7CF6); per-category colors (purple, orange-pink,
   teal-green, pink) echo the network cards. System font stack matches the
   native SwiftUI app — no web fonts. One idea runs through it:
   "every Wi-Fi password, in one secure place." */

:root {
  /* Brand — the app's wifi gradient */
  --brand:        #2E7CF6;
  --brand-strong: #1E63D6;
  --cyan:         #0FB5C4;
  --teal:         #23D6C0;
  --grad:         linear-gradient(135deg, #0FB5C4 0%, #2E7CF6 100%);

  /* Surfaces */
  --bg:         #EEF2F7;
  --bg-edge:    #E4EAF2;
  --surface:    #FFFFFF;
  --surface-2:  #F6F8FB;
  --hairline:      rgba(12,26,43,0.10);
  --hairline-soft: rgba(12,26,43,0.06);

  /* Text */
  --ink:        #0C1A2B;   /* primary text */
  --ink-soft:   #33414F;
  --muted:      #647281;   /* secondary text */
  --muted-soft: rgba(100,114,129,0.72);

  /* Category accents (mirror PlaceCategory.swift) */
  --c-home:    #2E7CF6;
  --c-work:    #6A5CFF;
  --c-cafe:    #FF8A3D;
  --c-friends: #14C8A0;
  --c-hotel:   #A855F7;
  --c-other:   #0FB5C4;

  --accent: var(--brand);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Soft tinted glow behind the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(620px 460px at 50% -4%, rgba(46,124,246,0.16), transparent 60%),
    radial-gradient(720px 540px at 88% 8%, rgba(15,181,196,0.14), transparent 58%),
    radial-gradient(900px 700px at 50% 120%, var(--bg-edge), transparent 60%),
    linear-gradient(180deg, #F4F7FB 0%, var(--bg) 46%, var(--bg-edge) 100%);
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

a { color: var(--brand-strong); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .hero-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- Masthead ---- */

.masthead { padding: 22px 0 16px; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wordmark .badge { width: 30px; height: 30px; flex: none; border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(46,124,246,0.55); }
.wordmark .hot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-weight: 500;
}
.nav { margin-left: auto; font-size: 14px; font-weight: 600; }
.nav a {
  color: var(--ink-soft);
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--brand-strong); border-bottom-color: var(--brand); }

/* ---- Hero ---- */

.hero { text-align: center; padding: 48px 0 14px; }
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: rgba(46,124,246,0.10);
  border: 1px solid rgba(46,124,246,0.28);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 70px;
  line-height: 1.0;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero-title .hot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 400;
}

/* ---- Category chips (hero visual) ---- */

.sticker-pack {
  margin: 38px auto 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 580px;
}
.sticker {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 18px 40px -30px rgba(12,26,43,0.5);
}
.sticker .emoji {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  border-radius: 13px;
  color: #fff;
}
.sticker .label { font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.2; letter-spacing: 0.01em; }
.sticker.home    .emoji { background: linear-gradient(135deg, #2E7CF6, #19C2FF); }
.sticker.work    .emoji { background: linear-gradient(135deg, #6A5CFF, #A855F7); }
.sticker.cafe    .emoji { background: linear-gradient(135deg, #FF8A3D, #FF5C7C); }
.sticker.hotel   .emoji { background: linear-gradient(135deg, #A855F7, #FF6FB5); }
.sticker.home    { border-top: 3px solid var(--c-home); }
.sticker.work    { border-top: 3px solid var(--c-work); }
.sticker.cafe    { border-top: 3px solid var(--c-cafe); }
.sticker.hotel   { border-top: 3px solid var(--c-hotel); }

/* ---- Buttons ---- */

.cta-row { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 34px;
  border-radius: 14px;
  border: 0;
  box-shadow: 0 14px 30px -12px rgba(46,124,246,0.7);
}
.cta:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.cta.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.cta.ghost:hover { background: var(--surface-2); }

/* ---- Cards & layout ---- */

main { padding: 26px 0 12px; }

.card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 30px 60px -44px rgba(12,26,43,0.45);
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.kicker.red   { color: var(--c-hotel); }
.kicker.gold  { color: var(--c-cafe); }
.kicker.blue  { color: var(--c-other); }

h1 { font-size: 46px; line-height: 1.05; margin-bottom: 6px; }
h2 { font-size: 31px; line-height: 1.12; margin: 4px 0 12px; }
h3 { font-size: 18px; font-weight: 700; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 700; color: var(--ink); }

.card p { color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); }
.updated {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---- How-it-works rows ---- */

.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: flex-start;
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 4px 0 3px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- Mode / value cards ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mode {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
  border-top: 4px solid var(--brand);
}
.mode .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.mode .emoji { font-size: 28px; display: block; margin-bottom: 8px; }
.mode h3 { margin: 6px 0 6px; font-size: 20px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }
.mode.red    { border-top-color: var(--c-hotel); }   .mode.red .tag    { color: var(--c-hotel); }
.mode.gold   { border-top-color: var(--c-cafe); }     .mode.gold .tag   { color: var(--c-cafe); }

/* ---- Feature rows ---- */

.feature {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.feature:last-child { border-bottom: 0; }
.feature .ico { font-size: 24px; flex: none; width: 32px; text-align: center; line-height: 1.4; }
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- Callout / fineprint / FAQ ---- */

.callout {
  background: rgba(46,124,246,0.07);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p { color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

.fineprint {
  font-size: 13.5px;
  color: var(--muted-soft);
  border: 1px dashed var(--hairline);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 6px;
}
.fineprint p { color: var(--muted-soft); }
.fineprint p:last-child { margin-bottom: 0; }

.faq-q { font-weight: 700; color: var(--ink); margin-top: 22px; margin-bottom: 4px; font-size: 18px; }
.rule { border: 0; border-top: 1px solid var(--hairline-soft); margin: 24px 0; }

/* ---- Footer ---- */

.footer { margin-top: 30px; padding: 28px 0 48px; }
.footer p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer a { color: var(--brand-strong); }
.footer .nav-foot { font-weight: 700; letter-spacing: 0.01em; }
.footer .nav-foot a { margin-right: 16px; }
.footer .copy { font-size: 12px; letter-spacing: 0.03em; color: var(--muted-soft); }

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 8px; }
  .hero-title { font-size: 44px; }
  .card { padding: 22px; }
  h1 { font-size: 33px; }
  h2 { font-size: 25px; }
  .sticker-pack { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sticker { padding: 14px 8px; }
  .nav { width: 100%; margin-left: 0; margin-top: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
}
