/* Engraved Tide: components. Every value comes from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--et-navy);
  color: var(--et-white);
  font-family: var(--et-sans);
  font-size: var(--et-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { max-width: 100%; }

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

/* ---------- Surfaces ---------- */
.et-sea {
  position: relative;
  background: var(--et-engrave), var(--et-sea);
  background-size: 160px 9px, auto, auto; /* --et-sea holds two layers */
  isolation: isolate;
  overflow-x: clip; /* prism stripes and tilted passes may bleed past the edge */
}
.et-sea::after { /* a dense patch of engraving that fades out, like the shading on a note */
  content: "";
  position: absolute; inset: 0;
  background: var(--et-engrave-dense);
  background-size: 80px 5px;
  -webkit-mask-image: radial-gradient(60% 70% at 80% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 70% at 80% 40%, #000 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.et-section { padding: var(--et-section) 0; position: relative; }
.et-section--navy2 { background: var(--et-navy-2); }
.et-section--engraved { background: var(--et-engrave), var(--et-navy); background-size: 160px 9px, auto; }
.et-prism { height: 14px; background: var(--et-prism); border-radius: var(--et-pill); }

/* ---------- Nav ---------- */
.et-navwrap { padding: 20px var(--et-gutter) 0; position: relative; z-index: 5; }
.et-nav {
  max-width: var(--et-container); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 22px;
  background: var(--et-frost);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--et-pill);
  color: var(--et-ink);
}
.et-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--et-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; text-decoration: none; color: inherit; white-space: nowrap; }
.et-logo svg { width: 26px; height: 26px; flex: none; }
.et-nav__links { display: flex; gap: 28px; margin: 0 auto; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.et-nav__links a { text-decoration: none; opacity: .85; }
.et-nav__links a:hover { opacity: 1; }
.et-nav__actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 900px) { .et-nav__links { display: none; } }
@media (max-width: 480px) { .et-nav__actions .et-btn--outline { display: none; } }

/* ---------- Type ---------- */
.et-hero-title, .et-h2, .et-h3 { font-family: var(--et-display); font-weight: 500; margin: 0; }
.et-hero-title { font-size: var(--et-text-hero); line-height: 1.02; letter-spacing: var(--et-tracking-hero); text-wrap: balance; }
.et-h2 { font-size: var(--et-text-h2); line-height: 1.06; letter-spacing: var(--et-tracking-h2); text-wrap: balance; }
.et-h3 { font-size: var(--et-text-h3); line-height: 1.25; letter-spacing: -.01em; }
.et-fade-text {
  background: var(--et-fade);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.et-lead { font-size: var(--et-text-lead); line-height: 1.5; color: var(--et-soft); max-width: 600px; margin: 20px 0 0; }
.et-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--et-mono); font-size: var(--et-text-micro); letter-spacing: var(--et-tracking-caps);
  text-transform: uppercase; color: var(--et-aqua); margin-bottom: 18px;
}
.et-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.et-mono { font-family: var(--et-mono); }

/* ---------- Buttons ---------- */
.et-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border-radius: var(--et-pill); border: 0;
  font: 500 17px/1 var(--et-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.et-btn:hover { transform: translateY(-1px); }
.et-btn--ink { /* the one main action: ink pill with a spectrum rim */
  color: var(--et-white);
  background: linear-gradient(var(--et-ink), var(--et-ink)) padding-box, var(--et-spectrum) border-box;
  border: 1.5px solid transparent;
}
.et-btn--ink:hover { box-shadow: 0 10px 30px -10px rgba(154,108,242,.6); }
.et-btn--frost { background: linear-gradient(120deg, #e9fbff, #dff7ee); color: var(--et-ink); }
.et-btn--outline { background: transparent; color: var(--et-ink); border: 1.5px solid var(--et-violet); }
.et-btn--ghost { background: transparent; color: var(--et-white); border: 1px solid var(--et-line-strong); }
.et-btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.et-btn--block { width: 100%; }
.et-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Hero ---------- */
.et-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); }
.et-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .et-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Guilloche rosette (inline SVG, colored with currentColor) ---------- */
.et-rosette { display: block; width: 100%; height: auto; color: var(--et-aqua); }
.et-rosette--violet { color: var(--et-violet); }
.et-rosette--mint { color: var(--et-mint); }
.et-seal { position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto; }
.et-seal__ring { position: absolute; inset: 0; }
.et-seal__ring--inner { inset: 17%; }
.et-seal__value {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--et-display); font-weight: 600; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.03em;
  background: radial-gradient(circle, rgba(7, 26, 51, .88) 0 27%, rgba(7, 26, 51, 0) 28%);
}
.et-seal__value small { display: block; font-family: var(--et-mono); font-size: 11px; letter-spacing: var(--et-tracking-caps); text-transform: uppercase; color: var(--et-soft); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .et-spin { animation: et-spin 120s linear infinite; transform-origin: 50% 50%; }
  .et-spin--back { animation-direction: reverse; animation-duration: 90s; }
}
@keyframes et-spin { to { transform: rotate(360deg); } }

/* ---------- The pass: a ticket card with engraved fill ---------- */
.et-pass {
  position: relative; overflow: hidden;
  border-radius: var(--et-radius-lg);
  background: var(--et-engrave-dense), linear-gradient(150deg, var(--et-navy-3), var(--et-navy-2));
  background-size: 80px 5px, auto;
  border: 1px solid var(--et-line-strong);
  box-shadow: var(--et-shadow-lg);
  padding: 22px;
}
.et-pass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--et-spectrum); }
.et-pass__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--et-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--et-soft); }
.et-pass__route { display: flex; align-items: center; gap: 14px; margin: 18px 0; font-family: var(--et-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.et-pass__route i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--et-line-strong) 0 6px, transparent 6px 11px); position: relative; }
.et-pass__route i::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--et-mint); box-shadow: 0 0 12px var(--et-mint); }
.et-pass__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 1px dashed var(--et-line-strong); }
.et-pass__rows dt { font-family: var(--et-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--et-faint); }
.et-pass__rows dd { margin: 2px 0 0; font-weight: 600; }
.et-pass--float { transform: rotate(-3deg); }
.et-code { /* a fake scan code drawn with gradients */
  width: 64px; height: 64px; border-radius: 6px; flex: none;
  background: repeating-conic-gradient(var(--et-white) 0 25%, transparent 0 50%) 0 0 / 12px 12px;
  border: 4px solid var(--et-white);
  opacity: .9;
}

/* ---------- Chips and badges ---------- */
.et-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--et-pill); font-size: 12px; font-weight: 600; background: var(--et-mint-soft); color: var(--et-mint); white-space: nowrap; }
.et-chip--violet { background: rgba(154,108,242,.18); color: #c7adff; }
.et-chip--line { background: transparent; color: var(--et-soft); border: 1px solid var(--et-line-strong); }
.et-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- Logo row ---------- */
.et-logos { display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: center; margin-top: 56px; color: var(--et-soft); font-family: var(--et-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.et-logos span { opacity: .8; white-space: nowrap; }
.et-logos__label { font-family: var(--et-mono); font-size: 11px; font-weight: 400; letter-spacing: var(--et-tracking-caps); text-transform: uppercase; color: var(--et-faint); }

/* ---------- Cards ---------- */
.et-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.et-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .et-grid, .et-grid--2 { grid-template-columns: 1fr; } }
.et-card {
  position: relative; overflow: hidden;
  background: var(--et-navy-2); border: 1px solid var(--et-line);
  border-radius: var(--et-radius-lg); padding: 28px;
  box-shadow: var(--et-shadow);
}
.et-card__seal { width: 64px; height: 64px; margin-bottom: 40px; }
.et-card__title { font-family: var(--et-display); font-size: var(--et-text-h3); font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.et-card__text { color: var(--et-soft); margin: 0; }
.et-card--engraved { background: var(--et-engrave), var(--et-navy-2); background-size: 160px 9px, auto; }

/* ---------- Stats ---------- */
.et-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--et-line); }
.et-stat { padding: 28px 24px 0 0; }
.et-stat + .et-stat { padding-left: 24px; border-left: 1px solid var(--et-line); }
.et-stat__num { font-family: var(--et-display); font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.et-stat__label { color: var(--et-soft); font-size: var(--et-text-small); margin-top: 10px; }
@media (max-width: 640px) {
  .et-stats { grid-template-columns: 1fr; }
  .et-stat + .et-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--et-line); }
}

/* ---------- Quote ---------- */
.et-quote { margin: 0; }
.et-quote p { font-family: var(--et-display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin: 0; }
.et-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--et-soft); font-size: var(--et-text-small); }
.et-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; color: var(--et-ink); background: linear-gradient(135deg, var(--et-mint), var(--et-aqua)); }

/* ---------- Pricing ---------- */
.et-toggle { display: inline-flex; padding: 4px; border-radius: var(--et-pill); background: var(--et-navy-2); border: 1px solid var(--et-line); }
.et-toggle button { height: 38px; padding: 0 18px; border: 0; border-radius: var(--et-pill); background: transparent; color: var(--et-soft); font: 500 15px var(--et-sans); cursor: pointer; white-space: nowrap; }
.et-toggle button[aria-pressed="true"] { background: var(--et-frost); color: var(--et-ink); }
.et-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .et-plans { grid-template-columns: 1fr; } }
.et-plan { display: flex; flex-direction: column; background: var(--et-navy-2); border: 1px solid var(--et-line); border-radius: var(--et-radius-lg); padding: 30px; }
.et-plan--featured { background: var(--et-engrave-dense), linear-gradient(170deg, var(--et-navy-3), var(--et-navy-2)); background-size: 80px 5px, auto; border-color: transparent; box-shadow: var(--et-glow); }
.et-plan__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.et-plan__name { font-family: var(--et-display); font-size: 24px; font-weight: 600; margin: 0; }
.et-plan__desc { color: var(--et-soft); font-size: var(--et-text-small); margin: 8px 0 24px; }
.et-plan__price { font-family: var(--et-display); font-size: 56px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.et-plan__price small { font-family: var(--et-sans); font-size: 15px; color: var(--et-soft); letter-spacing: 0; font-weight: 400; }
.et-plan__list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.et-plan__list li { display: flex; gap: 10px; color: var(--et-soft); }
.et-plan__list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--et-mint); background: radial-gradient(circle, var(--et-mint) 0 3px, transparent 3.5px); }
.et-small { font-size: var(--et-text-small); color: var(--et-faint); }

.et-table-wrap { overflow-x: auto; border: 1px solid var(--et-line); border-radius: var(--et-radius-lg); }
.et-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.et-table th, .et-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--et-line); }
.et-table thead th { font-family: var(--et-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--et-soft); background: var(--et-navy-3); }
.et-table tbody tr:last-child td { border-bottom: 0; }
.et-table__yes { color: var(--et-mint); font-weight: 600; }
.et-table__no { color: var(--et-faint); }

.et-faq { border-top: 1px solid var(--et-line); }
.et-faq details { border-bottom: 1px solid var(--et-line); padding: 22px 0; }
.et-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-family: var(--et-display); font-size: 20px; font-weight: 500; }
.et-faq summary::-webkit-details-marker { display: none; }
.et-faq summary::after { content: "+"; font-family: var(--et-mono); color: var(--et-aqua); transition: transform .2s; }
.et-faq details[open] summary::after { transform: rotate(45deg); }
.et-faq p { color: var(--et-soft); margin: 12px 0 0; max-width: 640px; }

/* ---------- Article ---------- */
.et-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--et-faint); font-size: var(--et-text-small); }
.et-meta span + span::before { content: "·"; margin-right: 8px; }
.et-author { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.et-author strong { display: block; font-weight: 600; }
.et-author--card { margin-top: 56px; padding: 24px; border: 1px solid var(--et-line); border-radius: var(--et-radius-lg); background: var(--et-navy-2); align-items: flex-start; }
.et-author--card p { margin: 6px 0 0; color: var(--et-soft); font-size: var(--et-text-small); }
.et-cover { border-radius: var(--et-radius-xl); overflow: hidden; padding: clamp(28px, 6vw, 64px); display: grid; place-items: center; }
.et-prose { font-size: 18px; line-height: 1.75; color: #d9e7f5; }
.et-prose > * + * { margin-top: 1.1em; }
.et-prose h2 { font-family: var(--et-display); font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--et-white); margin-top: 2em; }
.et-prose h3 { font-family: var(--et-display); font-size: 22px; font-weight: 600; color: var(--et-white); margin-top: 1.6em; }
.et-prose p, .et-prose ul, .et-prose ol { margin-bottom: 0; }
.et-prose ul { padding-left: 1.2em; }
.et-prose li::marker { color: var(--et-mint); }
.et-prose a { color: var(--et-aqua); text-underline-offset: 3px; }
.et-prose code { font-family: var(--et-mono); font-size: .86em; background: var(--et-navy-3); padding: 2px 6px; border-radius: 6px; }
.et-prose pre { background: #050f1f; border: 1px solid var(--et-line); border-radius: var(--et-radius); padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.et-prose pre code { background: none; padding: 0; }
.et-prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid; border-image: var(--et-spectrum) 1; font-family: var(--et-display); font-size: 26px; line-height: 1.3; color: var(--et-white); }
.et-prose figure { margin: 2em 0; }
.et-prose figcaption { font-size: var(--et-text-small); color: var(--et-faint); margin-top: 10px; }
.et-callout { padding: 20px 22px; border-radius: var(--et-radius); background: var(--et-mint-soft); border: 1px solid rgba(98,228,156,.3); color: var(--et-white); font-size: 16px; }
.et-callout strong { color: var(--et-mint); }
.et-post { display: block; text-decoration: none; background: var(--et-navy-2); border: 1px solid var(--et-line); border-radius: var(--et-radius-lg); overflow: hidden; }
.et-post__thumb { height: 150px; background: var(--et-engrave-dense), var(--et-sea); background-size: 80px 5px, auto, auto; display: grid; place-items: center; }
.et-post__thumb svg { width: 96px; }
.et-post__body { padding: 22px; }
.et-post__body h3 { font-family: var(--et-display); font-size: 20px; font-weight: 600; margin: 8px 0; line-height: 1.25; }
.et-post__body p { color: var(--et-soft); font-size: var(--et-text-small); margin: 0; }

/* ---------- Forms ---------- */
.et-form { display: grid; gap: 18px; }
.et-field { display: grid; gap: 7px; }
.et-label { font-size: var(--et-text-small); font-weight: 600; }
.et-input, .et-select {
  width: 100%; height: 50px; padding: 0 16px;
  border-radius: var(--et-radius); border: 1px solid var(--et-line-strong);
  background: var(--et-navy-2); color: var(--et-white);
  font: 16px var(--et-sans); transition: border-color .2s, box-shadow .2s;
}
.et-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--et-soft) 50%), linear-gradient(-45deg, transparent 50%, var(--et-soft) 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.et-input::placeholder { color: var(--et-faint); }
.et-input:focus, .et-select:focus { outline: none; border-color: var(--et-aqua); box-shadow: 0 0 0 4px rgba(124,230,228,.16); }
.et-input-wrap { position: relative; }
.et-input-wrap .et-input { padding-right: 76px; }
.et-input-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--et-aqua); font: 600 13px var(--et-sans); cursor: pointer; padding: 6px 8px; }
.et-help { font-size: 13px; color: var(--et-faint); }
.et-error { font-size: 13px; color: var(--et-red); }
.et-field--error .et-input { border-color: var(--et-red); }
.et-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--et-text-small); color: var(--et-soft); cursor: pointer; }
.et-check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--et-line-strong); background: var(--et-navy-2); display: grid; place-items: center; cursor: pointer; }
.et-check input:checked { background: var(--et-mint); border-color: var(--et-mint); }
.et-check input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--et-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.et-divider-text { display: flex; align-items: center; gap: 14px; color: var(--et-faint); font-size: 13px; }
.et-divider-text::before, .et-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--et-line); }
.et-btn--social { background: var(--et-navy-2); color: var(--et-white); border: 1px solid var(--et-line-strong); font-size: 15px; height: 48px; }
.et-btn__letter { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--et-frost); color: var(--et-ink); }

/* ---------- Footer ---------- */
.et-footer { background: var(--et-engrave), #05142a; background-size: 160px 9px, auto; padding: 72px 0 32px; color: var(--et-soft); font-size: var(--et-text-small); }
.et-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.et-footer h4 { font-family: var(--et-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--et-faint); margin: 0 0 14px; }
.et-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.et-footer a { text-decoration: none; }
.et-footer a:hover { color: var(--et-white); }
.et-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--et-line); color: var(--et-faint); }
@media (max-width: 760px) { .et-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .et-rise { animation: et-rise .9s ease both; }
  .et-rise--2 { animation-delay: .12s; }
  .et-rise--3 { animation-delay: .24s; }
}
@keyframes et-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
