/* styles.css — reallyfree.app
   Single stylesheet for index.html / privacy.html / membership.html.
   Design tokens copied from extension/tokens.css (07-DESIGN.md LOCKED
   values) so the site and the extension always look like one product.
   No frameworks, no external fonts/CDNs — system font stack only. */

:root {
  /* Verdict colors — LOCKED (07-DESIGN.md, extension/tokens.css) */
  --rf-green:  #639922; /* GO — really free — circle */
  --rf-yellow: #EF9F27; /* CAUTION — free with strings — triangle (called "gold" in copy) */
  --rf-red:    #E24B4A; /* STOP — trap — square */
  --rf-gray:   #888780; /* UNKNOWN — no mark on-page, neutral only in chrome */

  /* Brand */
  --rf-accent: #3b6df0;
  --rf-accent-contrast: #ffffff;

  /* Surfaces / text */
  --rf-bg: #ffffff;
  --rf-bg-subtle: #f6f7f9;
  --rf-text: #1a1a1a;
  --rf-text-muted: #6b7280;
  --rf-border: #e2e4e8;

  /* Type */
  --rf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --rf-radius: 6px;
  --rf-radius-lg: 14px;
  --rf-radius-pill: 999px;

  /* Motion (mirrors extension/tokens.css UI-feel LAW: pop, hold, graceful
     exit — never abrupt; motion on every state change). */
  --rf-ease-pop: cubic-bezier(.2,.9,.3,1.1);
  --rf-ease: ease;
  --rf-dur-fast: 120ms;
  --rf-dur-base: 180ms;
  --rf-dur-pop: 220ms;
  --rf-dur-entrance: 420ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rf-font);
  color: var(--rf-text);
  background: var(--rf-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rf-accent); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--rf-accent);
  outline-offset: 2px;
}

.rf-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------------- */
/* Header / brand                                                        */
/* -------------------------------------------------------------------- */
.rf-site-header {
  border-bottom: 1px solid var(--rf-border);
  background: var(--rf-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.rf-site-header .rf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.rf-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--rf-text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.rf-wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--rf-text);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  flex: none;
  transition: transform var(--rf-dur-fast) var(--rf-ease-pop);
}
.rf-wordmark:hover .rf-wordmark-mark { transform: scale(1.08) rotate(-2deg); }
.rf-wordmark-name { white-space: nowrap; }
.rf-wordmark-name b { color: var(--rf-green); }

.rf-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.rf-nav a {
  color: var(--rf-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--rf-dur-fast) var(--rf-ease), color var(--rf-dur-fast) var(--rf-ease);
}
.rf-nav a:hover, .rf-nav a[aria-current="page"] {
  border-color: var(--rf-accent);
  color: var(--rf-accent);
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */
.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--rf-font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-border);
  background: var(--rf-bg-subtle);
  color: var(--rf-text);
  padding: 12px 20px;
  cursor: pointer;
  transition: transform var(--rf-dur-fast) var(--rf-ease-pop),
              background var(--rf-dur-fast) var(--rf-ease),
              box-shadow var(--rf-dur-fast) var(--rf-ease);
}
.rf-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
.rf-btn:active { transform: translateY(0) scale(0.99); }

.rf-btn-primary {
  background: var(--rf-accent);
  color: var(--rf-accent-contrast);
  border-color: var(--rf-accent);
}
.rf-btn-primary:hover { box-shadow: 0 8px 20px rgba(59,109,240,0.35); }

.rf-btn-green {
  background: var(--rf-green);
  color: #fff;
  border-color: var(--rf-green);
}
.rf-btn-green:hover { box-shadow: 0 8px 20px rgba(99,153,34,0.35); }

.rf-btn-lg { font-size: 17px; padding: 15px 26px; }
.rf-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.rf-btn-ghost {
  background: transparent;
  border-color: var(--rf-border);
}

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
.rf-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.rf-hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-accent);
  background: rgba(59,109,240,0.10);
  padding: 6px 12px;
  border-radius: var(--rf-radius-pill);
  margin-bottom: 18px;
}
.rf-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.rf-hero p.rf-lede {
  font-size: 18px;
  color: var(--rf-text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.rf-verdict-strip {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.rf-verdict-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--rf-text);
}

/* Shapes — same geometry as extension/tokens.css .rf-dot rules, scaled up.
   Shape always accompanies color; never color alone. */
.rf-shape {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.9)) drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.rf-shape-circle   { border-radius: 50%; background: var(--rf-green); }
.rf-shape-triangle { background: var(--rf-yellow); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.rf-shape-square   { background: var(--rf-red); border-radius: 3px; }

/* -------------------------------------------------------------------- */
/* Install widget                                                        */
/* -------------------------------------------------------------------- */
.rf-install-card {
  background: var(--rf-bg-subtle);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
.rf-install-primary { margin-bottom: 14px; }
.rf-install-primary .rf-btn { width: 100%; }

.rf-install-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--rf-radius);
  margin-bottom: 14px;
  animation: rf-fade-scale-in var(--rf-dur-pop) var(--rf-ease-pop) both;
}
.rf-install-status[data-state="checking"] { background: #fff; color: var(--rf-text-muted); border: 1px solid var(--rf-border); }
.rf-install-status[data-state="protected"] { background: rgba(99,153,34,0.12); color: var(--rf-green); }
.rf-install-status[data-state="outdated"] { background: rgba(239,159,39,0.14); color: #9a6414; }
.rf-install-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rf-install-status[data-state="protected"] .rf-install-status-dot { background: var(--rf-green); }
.rf-install-status[data-state="outdated"] .rf-install-status-dot {
  background: var(--rf-yellow);
  border-radius: 0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.rf-install-status[data-state="checking"] .rf-install-status-dot {
  background: var(--rf-gray);
  animation: rf-pulse 1s var(--rf-ease) infinite;
}
@keyframes rf-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.rf-also-available {
  border-top: 1px solid var(--rf-border);
  padding-top: 16px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--rf-text-muted);
}
.rf-also-available-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}
.rf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rf-border);
  background: #fff;
  border-radius: var(--rf-radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text);
  text-decoration: none;
  transition: transform var(--rf-dur-fast) var(--rf-ease-pop), border-color var(--rf-dur-fast) var(--rf-ease);
}
.rf-chip:hover { transform: translateY(-1px); border-color: var(--rf-accent); color: var(--rf-accent); }
.rf-chip[aria-disabled="true"] { color: var(--rf-text-muted); cursor: default; }
.rf-chip[aria-disabled="true"]:hover { transform: none; border-color: var(--rf-border); color: var(--rf-text-muted); }

/* -------------------------------------------------------------------- */
/* Sections / cards                                                      */
/* -------------------------------------------------------------------- */
.rf-section { padding: 56px 0; }
.rf-section-tight { padding: 40px 0; }
.rf-section h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 10px;
}
.rf-section-sub {
  text-align: center;
  color: var(--rf-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.rf-verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rf-verdict-card {
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 24px;
  text-align: center;
  background: #fff;
  transition: transform var(--rf-dur-base) var(--rf-ease-pop), box-shadow var(--rf-dur-base) var(--rf-ease);
  animation: rf-fade-up var(--rf-dur-entrance) var(--rf-ease-pop) both;
}
.rf-verdict-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.rf-verdict-card:nth-child(2) { animation-delay: 80ms; }
.rf-verdict-card:nth-child(3) { animation-delay: 160ms; }
.rf-verdict-shape-big {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
.rf-verdict-card h3 { margin: 0 0 8px; font-size: 18px; }
.rf-verdict-card p { margin: 0; color: var(--rf-text-muted); font-size: 14px; }
.rf-verdict-card[data-verdict="green"] h3 { color: var(--rf-green); }
.rf-verdict-card[data-verdict="gold"] h3 { color: #9a6414; }
.rf-verdict-card[data-verdict="red"] h3 { color: var(--rf-red); }

/* -------------------------------------------------------------------- */
/* Membership tease (index.html)                                        */
/* -------------------------------------------------------------------- */
.rf-tease {
  background: var(--rf-text);
  color: #fff;
  border-radius: var(--rf-radius-lg);
  padding: 36px;
  text-align: center;
}
.rf-tease h2 { color: #fff; }
.rf-tease p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 22px; }
.rf-tease .rf-btn { background: #fff; color: var(--rf-text); border-color: #fff; }
.rf-tease .rf-btn:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.35); }

/* -------------------------------------------------------------------- */
/* Membership page: pricing table                                       */
/* -------------------------------------------------------------------- */
.rf-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}
.rf-price-card {
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: rf-fade-up var(--rf-dur-entrance) var(--rf-ease-pop) both;
}
.rf-price-card.rf-price-member {
  border-color: var(--rf-green);
  box-shadow: 0 10px 30px rgba(99,153,34,0.14);
  position: relative;
  animation-delay: 100ms;
}
.rf-price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--rf-green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--rf-radius-pill);
}
.rf-price-card h3 { margin: 0 0 4px; font-size: 20px; }
.rf-price-tagline { color: var(--rf-text-muted); font-size: 13px; margin: 0 0 18px; }
.rf-price-amount { font-size: 34px; font-weight: 800; margin: 0 0 2px; }
.rf-price-amount small { font-size: 15px; font-weight: 600; color: var(--rf-text-muted); }
.rf-price-strike { text-decoration: line-through; color: var(--rf-text-muted); font-size: 16px; font-weight: 600; margin-left: 8px; }
.rf-price-note { font-size: 13px; color: var(--rf-text-muted); margin: 0 0 18px; }
.rf-price-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.rf-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--rf-border);
  font-size: 14px;
}
.rf-price-features li:first-child { border-top: none; }
.rf-price-features li b { flex: none; }
.rf-check { color: var(--rf-green); font-weight: 900; flex: none; }
.rf-dash { color: var(--rf-text-muted); font-weight: 900; flex: none; }

.rf-reassurance {
  text-align: center;
  color: var(--rf-text-muted);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 8px;
}

/* -------------------------------------------------------------------- */
/* Privacy / long-form article page                                     */
/* -------------------------------------------------------------------- */
.rf-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.rf-article h1 { font-size: 32px; letter-spacing: -0.01em; margin-bottom: 4px; }
.rf-article .rf-effective-date { color: var(--rf-text-muted); font-size: 14px; margin-bottom: 32px; }
.rf-article h2 { font-size: 20px; margin: 36px 0 12px; }
.rf-article p, .rf-article li { color: var(--rf-text); font-size: 15.5px; line-height: 1.65; }
.rf-article ul { padding-left: 22px; }
.rf-article li { margin-bottom: 8px; }
.rf-article strong { color: var(--rf-text); }
.rf-callout {
  background: var(--rf-bg-subtle);
  border: 1px solid var(--rf-border);
  border-left: 4px solid var(--rf-accent);
  border-radius: var(--rf-radius);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14.5px;
}
.rf-perm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 14px;
}
.rf-perm-table th, .rf-perm-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--rf-border);
  vertical-align: top;
}
.rf-perm-table th { background: var(--rf-bg-subtle); font-weight: 700; }

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */
.rf-site-footer {
  border-top: 1px solid var(--rf-border);
  padding: 32px 0 48px;
  margin-top: 24px;
}
.rf-site-footer .rf-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rf-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.rf-footer-links a {
  color: var(--rf-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.rf-footer-links a:hover { color: var(--rf-accent); }
.rf-footer-copy { color: var(--rf-text-muted); font-size: 13px; }

/* -------------------------------------------------------------------- */
/* Entrance animations (UI-feel LAW: nothing snaps into place)          */
/* -------------------------------------------------------------------- */
@keyframes rf-fade-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rf-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rf-hero-kicker, .rf-hero h1, .rf-hero p.rf-lede, .rf-install-card {
  animation: rf-fade-up var(--rf-dur-entrance) var(--rf-ease-pop) both;
}
.rf-hero h1 { animation-delay: 60ms; }
.rf-hero p.rf-lede { animation-delay: 120ms; }
.rf-install-card { animation-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */
@media (max-width: 720px) {
  .rf-verdict-grid { grid-template-columns: 1fr; }
  .rf-price-grid { grid-template-columns: 1fr; }
  .rf-nav { gap: 14px; }
  .rf-nav a { font-size: 13px; }
  .rf-hero { padding: 44px 0 32px; }
  .rf-site-footer .rf-container { flex-direction: column; align-items: flex-start; }
}
