:root {
  --ink: #FFFFFF;
  --surface: #F4F6FC;
  --surface-2: #E8ECF8;
  --surface-3: #DCE1F3;
  --brand: #1B2A9E;
  --accent: #5EA023;
  --accent-soft: #5EA02326;
  --text: #12163D;
  --muted: #565C86;
  --ring: #D3D8ED;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0B103E;
    --surface: #141B5E;
    --surface-2: #1C2470;
    --surface-3: #262F84;
    --brand: #8C9AFF;
    --accent: #8ED84C;
    --accent-soft: #8ED84C26;
    --text: #F2F3FF;
    --muted: #A9AFE0;
    --ring: #2C356F;
  }
}

:root[data-theme="dark"] {
  --ink: #0B103E;
  --surface: #141B5E;
  --surface-2: #1C2470;
  --surface-3: #262F84;
  --brand: #8C9AFF;
  --accent: #8ED84C;
  --accent-soft: #8ED84C26;
  --text: #F2F3FF;
  --muted: #A9AFE0;
  --ring: #2C356F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Seravek, Optima, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Sitka Text", Georgia, serif;
  color: var(--brand);
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }

.wrap {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem clamp(1.5rem, 5vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 100px;
  width: auto;
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: background 160ms ease, color 160ms ease;
}

.nav-cta:hover { background: var(--brand); color: var(--ink); }
.nav-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
}

.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; }

@media (max-width: 860px) { .hero-copy { align-items: center; order: 2; } }

.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--ring);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 860px) { .live-clock { align-self: center; } }

.clock-icon { font-size: 1.3rem; }

.clock-time { font-size: 1.05rem; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 108px;
  height: 38px;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--ring);
  border-radius: 9px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.tool-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
}

.tool-logo.show { display: inline-block; }

.hero h1 {
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw + 1rem, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.sub {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 860px) { .sub { max-width: 42ch; } }

.cta-row { margin-top: 0.4rem; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 26px -10px var(--accent-soft);
}

.cta:hover { transform: translateY(-1px); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cta.secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--ring);
  box-shadow: none;
}

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) { .legend { justify-content: center; } }

.legend li { display: flex; align-items: center; gap: 0.45rem; }

.legend .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.85; flex: none; }

.dial-wrap { position: relative; display: flex; align-items: center; justify-content: center; }

@media (max-width: 860px) { .dial-wrap { order: 1; } }

.dial-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.dial { width: min(100%, 380px); height: auto; overflow: visible; }

.tick { stroke: var(--ring); stroke-width: 2; }
.tick.major { stroke: var(--muted); stroke-width: 2.5; }

.hour-label {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.dial-core { fill: var(--surface-2); }
.dial-ring { fill: none; stroke: var(--ring); stroke-width: 1.5; }

.sweep-line { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }

.sweep-group { transform-origin: 240px 240px; transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1); }

.evt-dot { fill: var(--muted); opacity: 0.55; transition: fill 300ms ease, opacity 300ms ease, r 300ms ease; }

.evt-dot.active { fill: var(--accent); opacity: 1; animation: pulse 1.8s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { r: 6.5; } 50% { r: 8.5; } }

.event-card {
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  transform: translate(-50%, 100%);
  width: min(280px, 78vw);
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 0.9rem 1.05rem;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
}

.event-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.event-time {
  margin: 0 0 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.event-text { margin: 0; font-size: 0.92rem; line-height: 1.42; color: var(--text); min-height: 2.7em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Sections ---------- */

section { padding: clamp(3rem, 7vw, 6rem) 0; }

.section-head { max-width: 640px; margin: 0 0 clamp(2rem, 5vw, 3rem); }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-head h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.4rem); line-height: 1.15; }

.section-head p { margin: 0.8rem 0 0; color: var(--muted); line-height: 1.6; font-size: 1.02rem; }

/* Pillars */

.pillars { background: var(--surface); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--ink);
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pillar-card .eyebrow { margin-bottom: 0; }

.pillar-card h3 { font-size: 1.25rem; }

.pillar-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }

.pillar-examples { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }

.pillar-examples li {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}

.pillar-examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Why now */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

.why-item {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}

.why-item h3 { font-size: 1.02rem; color: var(--text); font-family: inherit; font-weight: 700; }

.why-item p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 0 1.3rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.faq-item p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.6; font-size: 0.92rem; }

/* Contact */

.contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-aside p { color: var(--muted); line-height: 1.6; }

.contact-phone a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.contact-phone a:hover { text-decoration: underline; }

form {
  background: var(--ink);
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label { font-size: 0.85rem; font-weight: 700; color: var(--text); }

input, select, textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 100px; }

.form-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 0; }

.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  display: none;
}

.form-status.show { display: block; }
.form-status.ok { background: var(--accent-soft); color: var(--accent); }
.form-status.err { background: #E0433326; color: #C23A2A; }

/* Footer */

footer {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  border-top: 1px solid var(--ring);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Sitka Text", Georgia, serif;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }

.social-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.7rem;
}

.social-links a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--brand);
  opacity: 0.8;
  transition: opacity 0.15s, transform 0.15s;
}

.social-links a:hover { opacity: 1; transform: translateY(-1px); }

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-qr-img {
  width: 140px;
  height: 140px;
  background: #FFFFFF;
  border: 1px solid var(--ring);
  border-radius: 8px;
  padding: 6px;
}

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