/* RingSafe AI marketing site styles.
   Palette: "Ironclad" -- graphite + brass/gold, sampled directly from the
   RingSafe shield logo (background #161B21, gold #C6883A). Dark is the
   default theme; light is available via the toggle. Red is reserved
   strictly for an actual risk/scam signal -- never a plan, button, or
   brand highlight -- unlike PhoneShield.ai's red/black featured card. */

:root {
  --bg: #f5f1e9;
  --card: #ffffff;
  --text: #1c1a16;
  --muted: #6b6459;
  --border: #e4dcc9;
  --accent: #b9812e;
  --accent2: #9c6b22;
  --safe: #2e8f5e;
  --danger: #a93b35;
  --shadow: rgba(20, 15, 5, 0.12);
}

body.dark {
  --bg: #161b21;
  --card: #1e252d;
  --text: #f1ede6;
  --muted: #9b9488;
  --border: #2c333c;
  --accent: #c6883a;
  --accent2: #e0a94e;
  --safe: #4fae7a;
  --danger: #c0453f;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 136, 58, 0.10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(198, 136, 58, 0.06), transparent 28%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 21px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.brand .tagline {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.navMode {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.navLinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 700;
}

.navLinks a {
  color: var(--muted);
  text-decoration: none;
}

.navLinks a:hover {
  color: var(--accent);
}

.mode {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.switch {
  width: 52px;
  height: 29px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 1px 3px var(--shadow);
  padding: 0;
}

.switch span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 3px;
  top: 3px;
  transition: 0.2s ease;
}

body.dark .switch span {
  left: 26px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 18px 44px var(--shadow);
}

.howCard {
  display: flex;
  flex-direction: column;
}

.howCardArt {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  min-height: 80px;
}

.howCardArt img {
  width: 64px;
  height: 64px;
  opacity: 0.9;
  margin: 0 auto;
}

.howCardArt span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

h2 {
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14.5px;
  background: var(--accent);
  color: #1a1206;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--shadow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.dark .btn {
  color: #1a1206;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

body.dark .btn.secondary {
  color: #ffffff;
}

.mission {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.mini {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.mini b {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 14px;
}

.miniIcon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-flex;
  color: var(--accent);
}

.miniIcon svg {
  width: 100%;
  height: 100%;
}

.mini span.copy {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.panelTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panelTitle h2 {
  margin: 0;
  font-size: 20px;
}

.liveBadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--safe);
  background: color-mix(in srgb, var(--safe) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--safe) 35%, transparent);
  white-space: nowrap;
}

.liveBadge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safe);
}

.flow {
  display: grid;
  gap: 11px;
}

.flowItem {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
}

.num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #1a1206;
  background: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.flowItem b {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
}

.flowItem p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 13px;
}

.section,
.pricingSection {
  margin-top: 26px;
}

.sectionHead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sectionHead h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
  font-size: 14.5px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pricingGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.priceCard,
.complianceCard {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: var(--card);
  box-shadow: 0 12px 32px var(--shadow);
  overflow: hidden;
}

.priceCard.featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 16px 40px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent) inset;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1a1206;
  background: var(--accent);
  margin-bottom: 14px;
  align-self: flex-start;
  text-decoration: none;
}

a.tag {
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

a.tag:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.modeTag {
  font-size: 13px;
  padding: 8px 13px;
}

.priceCard h3,
.complianceCard h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.complianceCard p,
.complianceCard li {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13.5px;
}

.complianceCard p {
  flex: 1;
}

.complianceCard ul,
.complianceCard ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.plan {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.calls {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: end;
  gap: 5px;
  margin-bottom: 14px;
}

.price strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding-bottom: 4px;
}

.features {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.features li {
  display: flex;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.features li b {
  color: var(--safe);
  font-weight: 800;
  flex: 0 0 auto;
}

.features li.notIncluded b {
  color: var(--danger);
}

.subscribeBtn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  text-decoration: none;
}

.sample {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 8px 0 14px;
  font-size: 13px;
}

.notice {
  border: 1px solid color-mix(in srgb, var(--safe) 30%, transparent);
  border-radius: 14px;
  padding: 13px;
  background: color-mix(in srgb, var(--safe) 10%, transparent);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}

.notice.danger {
  border-color: color-mix(in srgb, var(--danger) 32%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 700;
  font-size: 13px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
}

.check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}

.check label {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.trustBand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.trustBand img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: none;
}

.trustBand p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.trustBand strong {
  color: var(--text);
}

.legalArticle h1 {
  font-size: clamp(30px, 4vw, 42px);
}

.legalArticle h2 {
  font-size: 19px;
  margin: 30px 0 10px;
}

.legalArticle p,
.legalArticle li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.legalArticle p {
  margin: 0 0 14px;
}

.legalArticle a {
  color: var(--accent);
}

footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

footer .footerLinks {
  display: flex;
  gap: 10px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero,
  .grid2 {
    grid-template-columns: 1fr;
  }

  .pricingGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mission,
  .pricingGrid,
  .grid3 {
    grid-template-columns: 1fr;
  }

  header {
    align-items: start;
    flex-direction: column;
  }

  .navMode {
    justify-content: flex-start;
  }
}

/* ===== Theme-swapped logo mark =====
   Dark theme: transparent shield (gold outline, navy fill) floats on the
   dark page. Light theme: the solid gold app-icon badge, which needs no
   transparency since its own fill IS the mark. Toggled by the same
   body.dark class the rest of the palette uses -- no JS needed. */
img.logo-dark {
  display: none;
}

img.logo-light {
  display: block;
}

body.dark img.logo-dark {
  display: block;
}

body.dark img.logo-light {
  display: none;
}

/* ===== Reveal-on-scroll (subtle, single-purpose motion) ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Animated "how it works" signal diagram ===== */
.signalDiagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 22px;
  position: relative;
}

.signalNode {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 8px;
  position: relative;
}

.signalNode .badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--accent);
  position: relative;
  z-index: 2;
  flex: none;
}

.signalNode.risk .badge {
  border-color: var(--danger);
  color: var(--danger);
}

.signalNode.safe .badge {
  border-color: var(--safe);
  color: var(--safe);
}

.signalNode b {
  font-size: 13.5px;
}

.signalNode span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.signalWire {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.signalNode:last-child .signalWire {
  display: none;
}

.signalWire .pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: travel 3.6s ease-in-out infinite;
}

.signalNode:nth-child(2) .signalWire .pulse { animation-delay: 0.9s; }
.signalNode:nth-child(3) .signalWire .pulse { animation-delay: 1.8s; }

@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .signalWire .pulse {
    animation: none;
    left: calc(50% - 4px);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .signalDiagram {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .signalWire {
    top: auto;
    left: 26px;
    top: 56px;
    width: 2px;
    height: calc(100% + 4px);
  }

  .signalWire .pulse {
    left: 50%;
    top: 0;
    margin-top: 0;
    margin-left: -4px;
    animation-name: travelVertical;
  }

  @keyframes travelVertical {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
  }
}

/* ===== Stats band with count-up numbers ===== */
.statsBand {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.statCard {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  background: var(--card);
  text-align: center;
}

.statCard .statNum {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.statCard .statLabel {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.statsSource {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.statsSource a {
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .statsBand {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Scam use-case cards ===== */
.scamGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.scamCard {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: var(--card);
  box-shadow: 0 12px 32px var(--shadow);
}

.scamCard .scamTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--danger);
  margin-bottom: 10px;
}

.scamCard .scamTag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.scamCard h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.scamCard p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.scamCard .defense {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--safe) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--safe) 28%, transparent);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
}

.scamCard .defense b {
  color: var(--safe);
  flex: none;
}

@media (max-width: 760px) {
  .scamGrid {
    grid-template-columns: 1fr;
  }
}

/* ===== Statement band (bold, highlighted mission line) ===== */
.statementBand {
  margin-top: 26px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  box-shadow: 0 16px 36px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.statementBand p {
  margin: 0;
  color: #1a1206;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: 1.3em;
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .statementBand p {
    transition: none;
  }
}

.statementBand .mark {
  width: 34px;
  height: 34px;
  flex: none;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .statementBand {
    padding: 22px 20px;
  }
}

/* ===== Feature comparison table ===== */
.tableScroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 32px var(--shadow);
}

.compareTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13.5px;
}

.compareTable th,
.compareTable td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compareTable td:first-child,
.compareTable th:first-child {
  text-align: left;
  white-space: normal;
  color: var(--text);
  font-weight: 600;
}

.compareTable thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.compareTable tbody tr:last-child td {
  border-bottom: none;
}

.compareTable td.yes {
  color: var(--safe);
  font-weight: 800;
  font-size: 16px;
}

.compareTable td.no {
  color: var(--muted);
  opacity: 0.5;
}

.compareTable td .small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
  margin-top: 1px;
}
