/* CurlingOS landing page — design option C ("The House")
   Mobile-first. Breakpoints: 768px (tablet), 1100px (desktop). */

:root {
  --navy: #0A1A30;
  --blue: #1F5FBF;
  --red: #E5484D;
  --red-text: #C62F35; /* darker red for small text on white (passes 4.5:1) */
  --ice: #F2F6FA;
  --white: #FFFFFF;
  --body: #33445C;
  --muted: #4A5B73;
  --on-blue: #E3ECFA;
  --radius: 14px;
  --gutter: 20px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 10px 16px; background: var(--navy); color: var(--white);
  border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn-lg { min-height: 56px; padding: 0 28px; border-radius: var(--radius); font-size: 17px; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); font-weight: 700; }
.btn-light:hover { background: var(--ice); color: var(--navy); }

/* Header */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo-link { display: inline-flex; }
.logo { height: 28px; width: auto; }
.site-nav { display: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a:hover { color: var(--blue); }

/* Hero */
.hero { padding: 24px 0 64px; }
.hero-inner { display: flex; flex-direction: column; gap: 32px; }
.hero-art { order: -1; display: flex; justify-content: center; padding: 12px 0; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: 40px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; }
.accent { color: var(--blue); }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); }
.hero-copy .btn { width: 100%; }
.hero-alt { font-size: 14px; color: var(--muted); text-align: center; }

/* The house (target) graphic */
.house {
  position: relative; width: 220px; aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
}
.ring-8 { width: 66.7%; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; }
.ring-4 { width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; }
.button { width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--white); }
.line { position: absolute; background: var(--navy); }
.line-v { left: 50%; top: -6%; bottom: -6%; width: 2px; margin-left: -1px; }
.line-h { top: 50%; left: -6%; right: -6%; height: 2px; margin-top: -1px; }

/* Features */
.features { background: var(--ice); padding: 64px 0; scroll-margin-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--body); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--white); border-radius: 16px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.card > div { display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { font-size: 15px; line-height: 1.55; color: var(--body); }
.ring { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 6px solid; }
.ring-blue { border-color: var(--blue); }
.ring-red { border-color: var(--red); }
.ring-navy { border-color: var(--navy); }

/* Steps */
.steps { padding: 64px 0; }
.step-list { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 3px solid var(--red); }
.step-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 15px; line-height: 1.6; color: var(--body); }

/* Contact */
.contact { background: var(--blue); color: var(--white); padding: 64px 0; }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact h2 { font-size: 34px; line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; max-width: 760px; }
.contact p { font-size: 16px; line-height: 1.6; color: var(--on-blue); max-width: 560px; }
.contact .btn { width: 100%; }

/* Footer */
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.footer-mark { height: 28px; width: auto; }

/* Tablet */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .header-inner { padding-top: 20px; padding-bottom: 20px; }
  .logo { height: 34px; }
  .site-nav { display: flex; gap: 24px; }
  .header-cta { display: none; }

  .hero { padding: 40px 0 80px; }
  .hero-inner { flex-direction: row; align-items: center; gap: 32px; }
  .hero-art { order: 0; flex: none; padding: 0; }
  .hero-copy { flex: 1 1 0; min-width: 0; gap: 20px; align-items: flex-start; }
  .hero h1 { font-size: 48px; line-height: 1.02; }
  .lead { font-size: 18px; }
  .hero-copy .btn { width: auto; }
  .hero-alt { text-align: left; }
  .house { width: 260px; }

  .features { padding: 80px 0; }
  .section-head { margin-bottom: 40px; gap: 16px; }
  .section-head h2 { font-size: 38px; }
  .section-head p { font-size: 17px; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card { flex-direction: column; gap: 14px; padding: 28px; border-radius: 18px; }
  .card h3 { font-size: 20px; }
  .ring { width: 36px; height: 36px; border-width: 7px; }

  .steps { padding: 80px 0; }
  .step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .step { padding-left: 0; border-left: 0; gap: 10px; }

  .contact { padding: 80px 0; }
  .contact-inner { gap: 20px; }
  .contact h2 { font-size: 46px; }
  .contact p { font-size: 18px; }
  .contact .btn { width: auto; font-size: 18px; }

  .footer-inner { flex-direction: row; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
}

/* Desktop */
@media (min-width: 1100px) {
  :root { --gutter: 24px; }

  .logo { height: 38px; }

  .hero { padding: 48px 0 96px; }
  .hero-inner { gap: 48px; }
  .hero-copy { gap: 24px; }
  .hero h1 { font-size: 80px; line-height: 1; }
  .lead { font-size: 20px; max-width: 520px; }
  .hero-alt { font-size: 15px; }
  .hero-art { flex: 0 0 440px; }
  .house { width: 440px; }

  .features { padding: 96px 0; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
  .section-head h2 { font-size: 48px; line-height: 1.08; max-width: 560px; }
  .section-head p { font-size: 18px; max-width: 400px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { flex-direction: row; gap: 20px; padding: 32px; border-radius: 20px; }
  .card > div { gap: 8px; }
  .card h3 { font-size: 21px; }
  .card p { font-size: 16px; }
  .ring { width: 40px; height: 40px; border-width: 8px; }

  .steps { padding: 96px 0; }
  .step-list { gap: 48px; }
  .step { gap: 12px; }
  .step-label { font-size: 14px; }
  .step h3 { font-size: 24px; }
  .step p { font-size: 16px; }

  .contact { padding: 96px 0; }
  .contact-inner { gap: 24px; }
  .contact h2 { font-size: 64px; line-height: 1.02; }
  .contact p { font-size: 19px; }
  .contact .btn { min-height: 60px; padding: 0 32px; font-size: 19px; }

  .footer-inner { padding-top: 40px; padding-bottom: 40px; }
  .footer-mark { height: 30px; }
}
