/* Ohana Events site. Hand-built from the app's real brand tokens
   (frontend/src/theme.js + loadFonts.js). Editorial / Swiss, ink-dominant. */

:root {
  --ink: #000F35;
  --ink-70: rgba(0, 15, 53, 0.72);
  --ink-55: rgba(0, 15, 53, 0.64);
  --line: rgba(0, 15, 53, 0.16);
  --line-soft: rgba(0, 15, 53, 0.09);
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --spark: #FE763A;
  --spark-soft: #FFF1E8;
  --spark-ink: #C2410C; /* AA-legible orange for small text on light/cream */
  --grad-a: #293EFF;
  --grad-b: #00C9FF;
  --grad: linear-gradient(100deg, #293EFF 0%, #00C9FF 100%);
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --display: "Barlow Condensed", "Barlow", "Helvetica Neue", sans-serif;
  --sans: "Barlow", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type scale, tight editorial display */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
h1.display { font-size: clamp(46px, 8.5vw, 118px); }
h2.display { font-size: clamp(34px, 5.2vw, 68px); }
h3.display { font-size: clamp(24px, 3vw, 40px); }
p { margin: 0 0 1.1rem; }
.lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.5; color: var(--ink); max-width: 40ch; }

/* Small caps label with an index, printed-program feel */
.label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
}
.label .idx { color: var(--spark-ink); font-variant-numeric: tabular-nums; }

/* Dictionary device from the app splash */
.dict {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.dict b { color: var(--grad-a); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.dict i { font-style: italic; opacity: 0.7; }

/* Wordmark */
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  white-space: nowrap;
}
.wordmark .dot { color: var(--spark); }

/* Buttons, rectangular high-contrast */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #001a5e; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-arrow::after { content: "\2192"; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 251, 0.92);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-weight: 600; font-size: 16px; color: var(--ink-70); }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .btn { padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy .dict { margin-bottom: 26px; }
.hero-copy h1 { margin: 0 0 24px; }
.hero-copy h1 .grad {
  /* Darker light-stop than the decorative --grad so the clipped headline text
     clears the large-text contrast floor (cyan #00C9FF alone is ~1.8:1). */
  background: linear-gradient(100deg, #293EFF 0%, #0091C6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-meta { display: flex; gap: 14px; align-items: center; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-70); font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-meta .tick { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); display: inline-block; }
.hero-shot { position: relative; }
.hero-shot img { width: 100%; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px rgba(0,15,53,0.14); background: #0b1130; }

/* Counter strip */
.counter {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
}
.counter .cell { padding: 26px 0; border-right: 1px solid var(--line); }
.counter .cell:last-child { border-right: 0; }
.counter .n { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: 0.9; }
.counter .k { font-weight: 600; color: var(--ink-55); letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin-top: 8px; }

/* Generic section */
section { padding: clamp(48px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { margin: 14px 0 0; }
.sec-head p { margin-top: 16px; color: var(--ink-70); font-size: clamp(18px, 2vw, 21px); max-width: 52ch; }

/* Program list, numbered rows with hairlines */
.program { border-top: 1px solid var(--ink); }
.program .row {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.program .row .no { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--spark-ink); font-variant-numeric: tabular-nums; }
.program .row h4 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 8px; }
.program .row p { margin: 0; color: var(--ink-70); max-width: 60ch; }

/* Index list, event types */
.index { columns: 2; column-gap: clamp(24px, 5vw, 72px); }
.index .item { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.index .item .t { font-weight: 600; }
.index .item .m { color: var(--ink-55); font-size: 14px; white-space: nowrap; }

/* Split (copy + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev .split-copy { order: 2; }
.split-shot img { width: auto; max-width: 100%; max-height: 640px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,15,53,0.12); }
.split-copy ul { list-style: none; margin: 20px 0 0; padding: 0; }
.split-copy li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line-soft); position: relative; color: var(--ink-70); }
.split-copy li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--spark); }
.split-copy li b { color: var(--ink); font-weight: 700; }

/* Dark band echoing the app splash */
.band { background: var(--ink); color: #fff; border: 0; }
.band .dict { color: rgba(255,255,255,0.72); }
.band .dict b { color: #7d8bff; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.78); }
.band .rule { height: 3px; width: 92px; background: var(--grad); margin: 0 0 26px; border-radius: 2px; }
.band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.band .btn-ghost:hover { background: #fff; color: var(--ink); }
.band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn-primary:hover { background: var(--spark); border-color: var(--spark); color: #fff; }

/* FAQ */
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 27px); text-transform: uppercase; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .sign { color: var(--spark); font-family: var(--sans); font-weight: 700; font-size: 26px; line-height: 1; }
.qa details[open] summary .sign { transform: rotate(45deg); }
.qa .a { padding: 0 0 26px; color: var(--ink-70); max-width: 68ch; }
.qa .a p { margin: 0 0 12px; }

/* Prose (legal) */
.prose { max-width: 72ch; }
.prose .stamp { font-weight: 700; letter-spacing: 0.02em; color: var(--ink-55); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px; text-transform: uppercase; font-size: 13px; }
.prose p { margin: 0 0 18px; color: var(--ink-70); }
.prose .note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--spark); padding: 16px 18px; font-size: 15px; color: var(--ink-70); border-radius: 3px; margin-bottom: 28px; }

/* Page heading block */
.page-head { padding: clamp(44px, 7vw, 92px) 0 0; }
.page-head h1 { margin: 16px 0 0; }
.page-head p { margin-top: 18px; max-width: 56ch; color: var(--ink-70); font-size: clamp(18px, 2vw, 22px); }

/* Footer */
.site-footer { background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: clamp(48px, 6vw, 80px) 0 40px; border-bottom: 1px solid var(--line); }
.foot-brand p { margin: 16px 0 0; color: var(--ink-70); max-width: 34ch; }
.foot-col h5 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-55); margin: 0 0 16px; font-weight: 700; }
.foot-col a { display: block; padding: 6px 0; color: var(--ink-70); font-weight: 600; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { padding: 26px 0 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-legal p { margin: 0; font-size: 13px; color: var(--ink-55); max-width: 78ch; }
.foot-legal a { color: var(--ink-70); font-weight: 700; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .split.rev .split-copy { grid-template-columns: 1fr; order: 0; }
  .hero-shot { max-width: 340px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .index { columns: 1; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .btn { margin-top: 14px; justify-content: center; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .counter { grid-template-columns: 1fr; }
  .counter .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .counter .cell:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; }
}

/* ============================================================
   Rebuild additions: circuit list, dual paths, notify capture,
   status pills. Same ink-dominant editorial system.
   ============================================================ */

/* Status pill (app availability, live badges in prose) */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grad-a); background: rgba(41, 62, 255, 0.08);
  border: 1px solid rgba(41, 62, 255, 0.22); border-radius: 100px; padding: 6px 13px;
}
.pill .dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); display: inline-block; }
.pill.spark { color: var(--spark-ink); background: var(--spark-soft); border-color: rgba(254, 118, 58, 0.28); }

/* Hero shot: keep tall phone caps in check on wide screens */
.hero-shot.phone img { max-height: 760px; width: auto; margin-left: auto; }

/* Circuit list (conferences on the tour) */
.circuit { border-top: 1px solid var(--ink); }
.circuit .stop {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.circuit .stop .name {
  font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.circuit .stop .where { grid-column: 1; color: var(--ink-70); font-weight: 600; font-size: 16px; }
.circuit .stop .when {
  grid-row: 1 / span 2; grid-column: 2; align-self: center;
  color: var(--ink-55); font-weight: 700; letter-spacing: 0.02em;
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tag {
  font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.tag.live { background: var(--grad-a); color: #fff; }
.tag.soon { background: var(--spark-soft); color: var(--spark-ink); }
.tag.done { background: rgba(0, 15, 53, 0.06); color: var(--ink-55); }

/* Dual-path cards (attendees / hosts) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.paths .card {
  border: 1.5px solid var(--ink); border-radius: 6px; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  transition: transform .14s ease, box-shadow .14s ease;
}
.paths .card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 15, 53, 0.12); }
.paths .card .label { margin-bottom: 4px; }
.paths .card h3 { margin: 0; }
.paths .card p { color: var(--ink-70); margin: 0; flex: 1; }
.paths .card .go { font-weight: 700; color: var(--grad-a); letter-spacing: 0.01em; }
.paths .card .go::after { content: " \2192"; }

/* Notify capture band */
.notify-band { background: var(--ink); color: #fff; border: 0; }
.notify-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.notify-band h2 { color: #fff; }
.notify-band p { color: rgba(255, 255, 255, 0.78); }
.notify-band .rule { height: 3px; width: 92px; background: var(--grad); margin: 0 0 24px; border-radius: 2px; }
.notify-form { position: relative; }
.notify {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px; border-radius: 6px;
}
.notify input[type=email] {
  flex: 1; min-width: 200px; background: transparent; border: 0; color: #fff;
  font-family: var(--sans); font-size: 16px; padding: 12px;
}
.notify input[type=email]::placeholder { color: rgba(255, 255, 255, 0.5); }
.notify input[type=email]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.notify button {
  border: 0; background: #fff; color: var(--ink); font-family: var(--sans);
  font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: 4px; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.notify button:hover { background: var(--spark); color: #fff; }
.notify-hint { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 14px 0 0; }
.notify-ok {
  display: none; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 38px); color: #fff; line-height: 1;
}
.notify-ok .dot { color: var(--spark); }
.notify-ok span.sub { display: block; font-family: var(--sans); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.7); margin-top: 12px; }
.notify-band.done .notify { display: none; }
.notify-band.done .notify-hint { display: none; }
.notify-band.done .notify-ok { display: block; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .paths, .notify-wrap { grid-template-columns: 1fr; }
  .hero-shot.phone img { margin: 0 auto; }
  .circuit .stop { grid-template-columns: 1fr; gap: 6px; }
  .circuit .stop .when { grid-row: auto; grid-column: 1; text-align: left; }
}

/* Keyboard focus + reduced motion */
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .notify-band :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .paths .card:hover { transform: none; }
  .btn:active { transform: none; }
}
