/* MyCirCall pre-launch site — shared styles. */

/* Inter, served from our own site rather than Google's (16/10/2026): one file
   for every weight, no third-party request, nothing to declare in the privacy
   notice. Licence: fonts/OFL.txt. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* The blue in the logo (Paul, 06/10/2026), as on the full site and in the app. */
  --primary: #0044A8;
  --primary-dark: #00377F;
  --anthracite: #2B2F36;
  --success: #22C55E;
  --bg: #F8F9FB;
  --text: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --primary-10: #EFF6FF;
  --max: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav img { height: 30px; width: auto; display: block; }
.nav-links { display: none; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--primary-dark); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-ghost {
  background: #fff; color: var(--text); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg); }

/* ── Sections ── */
section { padding: 4rem 0; }
section.tint { background: var(--bg); }

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; line-height: 1.12;
  color: var(--anthracite); letter-spacing: -0.02em;
}
h1 em { font-style: normal; color: var(--primary); }
h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem); font-weight: 700; line-height: 1.2;
  color: var(--anthracite); letter-spacing: -0.01em; margin-bottom: 0.75rem;
}
h3 { font-size: 1.125rem; font-weight: 600; color: var(--anthracite); margin-bottom: 0.4rem; }
.lede { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ── Hero ── */
/* Top and bottom only: the shorthand used to wipe out .wrap's side padding,
   which left the hero touching the screen edge on phones. */
.hero { padding-top: 3.5rem; padding-bottom: 4rem; }
.hero .lede { margin-top: 1.25rem; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 0.45em;
  background: var(--primary-10); color: var(--primary);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.35rem 0.85rem;
  border-radius: 999px; margin-bottom: 1.25rem;
}
.badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.4; transform:scale(.8);} }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .badge::before, .ring-dot { animation: none; } }

/* ── Ring diagram ── */
.ring { display: none; }
.ring-inner { position: relative; width: 300px; height: 300px; }
.ring-centre {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; text-align: center; line-height: 1.25;
  box-shadow: 0 8px 28px rgba(0,68,168,0.35);
}
.ring-dot {
  position: absolute; width: 62px; height: 62px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  animation: ringing 2.4s ease-in-out infinite;
}
.ring-dot.answered { border-color: var(--success); background: #F0FDF4; animation: none; }
@keyframes ringing { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09); } }
.ring-dot:nth-child(2) { top: 0; left: 50%; margin-left: -31px; animation-delay: 0s; }
.ring-dot:nth-child(3) { top: 28%; right: 0; animation-delay: .15s; }
.ring-dot:nth-child(4) { bottom: 6%; right: 12%; animation-delay: .3s; }
.ring-dot:nth-child(5) { bottom: 6%; left: 12%; animation-delay: .45s; }
.ring-dot:nth-child(6) { top: 28%; left: 0; animation-delay: .6s; }

/* ── Grids ── */
.grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 1.75rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-10); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 0.9rem;
}

/* ── Test Drive feature ── */
.feature {
  background: var(--anthracite); color: #fff;
  border-radius: 18px; padding: 2.5rem 1.75rem; margin-top: 2rem;
}
.feature h2 { color: #fff; }
.feature .lede { color: #C7CBD1; }
.feature ol { margin: 1.75rem 0 0; padding-left: 1.15rem; }
.feature li { margin-bottom: 0.85rem; color: #E5E7EB; }
.feature li strong { color: #fff; }

/* ── Pricing ── */
.plans { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.75rem; display: flex; flex-direction: column; position: relative;
}
.plan.popular { border: 2px solid var(--primary); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 2.25rem; font-weight: 700; color: var(--anthracite); margin: 0.5rem 0 0.25rem; }
.price span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 1.25rem 0; flex: 1; }
.plan li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; font-size: 0.925rem; color: var(--text); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.addon {
  margin-top: 1.5rem; border: 1px dashed var(--line); border-radius: 14px;
  padding: 1.5rem; background: #fff;
}

/* ── FAQ ── */
details {
  border-bottom: 1px solid var(--line); padding: 1.15rem 0;
}
summary {
  cursor: pointer; font-weight: 600; color: var(--anthracite);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--primary); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details p { margin-top: 0.75rem; color: var(--muted); }

/* ── Notice ── */
.notice {
  border-left: 4px solid var(--primary); background: var(--primary-10);
  padding: 1.25rem 1.5rem; border-radius: 0 10px 10px 0; margin-top: 2.5rem;
}
.notice strong { color: var(--anthracite); }
.notice p { color: #374151; font-size: 0.95rem; }

/* ── CTA + footer ── */
.cta { background: var(--primary); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta .lede { color: #DBEAFE; margin: 0 auto 1.75rem; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: #F1F5FF; }

footer { background: var(--anthracite); color: #9CA3AF; padding: 2.5rem 0; font-size: 0.9rem; }
footer a { color: #D1D5DB; text-decoration: none; }
footer a:hover { color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
/* Legal & Regulatory links (legal & Ofcom review §25, 07/10/2026) */
.foot-legal { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-legal-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #D1D5DB; margin-bottom: 0.6rem; }
.foot-legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.foot-legal .later { color: #9CA3AF; }

@media (min-width: 768px) {
  section { padding: 5.5rem 0; }
  .nav-links { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .feature { padding: 3.5rem 3rem; }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
  .ring { display: flex; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────
   Pre-launch additions (06/10/2026): the "Stay in the loop"
   form, the founding offer, and the confirm / remove / privacy
   pages. Everything above is shared with the launch site in
   marketing/site/.
   ───────────────────────────────────────────────────────────── */

/* `hidden` must win over any display rule below (.offer is flex, .done is block…). */
[hidden] { display: none !important; }

:root { --warning: #F59E0B; --error: #EF4444; --error-10: #FEF2F2; --success-10: #F0FDF4; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: 0.5rem 1rem; border-radius: 8px; }

/* Founding offer */
.offer {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px;
  padding: 0.95rem 1.1rem; margin-top: 1.75rem; max-width: 46ch;
}
.offer-icon { font-size: 1.35rem; line-height: 1.2; }
.offer p { font-size: 0.95rem; color: #78350F; }
.offer strong { color: #78350F; }
.offer .places { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: #92400E; }

/* The form card */
.hero.with-form .join { margin-top: 2rem; }
.join {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.75rem; box-shadow: 0 12px 40px rgba(17,24,39,0.08);
}
.join h2 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.join .sub { color: var(--muted); margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--anthracite); margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  border: 1px solid #D1D5DB; border-radius: 10px; padding: 0.7rem 0.85rem; background: #fff;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,102,245,0.18);
}
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; color: #374151; margin: 0.25rem 0 1.25rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--primary); }
.join .btn { width: 100%; padding: 0.9rem 1.5rem; font-size: 1rem; }
.join .btn[disabled] { opacity: 0.6; cursor: wait; }
.small { font-size: 0.82rem; color: var(--muted); margin-top: 0.85rem; }
.small a { color: var(--muted); }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: var(--error-10); color: #991B1B; border-radius: 10px;
  padding: 0.7rem 0.9rem; font-size: 0.92rem; margin-bottom: 1rem;
}
.done { text-align: center; padding: 1rem 0.25rem; }
.done .tick {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--success-10); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700;
}
.done p { color: var(--muted); margin-top: 0.5rem; }

/* Yearly price under each plan */
.yearly { font-size: 0.9rem; color: var(--muted); margin-top: -0.1rem; }
.yearly strong { color: var(--anthracite); }

/* How to use it */
.uses { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.uses li { padding-left: 1.6rem; position: relative; color: #374151; }
.uses li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.coming { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* Confirm / remove / privacy pages */
.page { max-width: 640px; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem; min-height: calc(100vh - 64px - 140px); }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.75rem; text-align: center;
}
.panel h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 0.75rem; }
.panel p { color: #374151; margin-top: 0.6rem; }
.panel .btn { margin-top: 1.5rem; }
.founding {
  margin-top: 1.25rem; background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: 12px; padding: 1rem 1.1rem; color: #78350F; text-align: left;
}
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: #374151; margin-top: 0.6rem; }
.legal ul { padding-left: 1.25rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
.legal ol { padding-left: 1.25rem; }
.legal .callout {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; margin-top: 1rem;
}
.legal .callout p:first-child { margin-top: 0; }

@media (min-width: 768px) {
  .hero.with-form { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .join { padding: 2.25rem; }
  .hero.with-form .join { margin-top: 0; }
}
