/* ============================================================
   Direction A — "A Seat Saved for You" (Gate 3 prototype)
   Light editorial register metaphor. Desk + sheets spatial system.
   Scoped: all classes prefixed da- / dd-.
   ============================================================ */

/* ---------- prototype badge (all directions) ---------- */
.dd-badge {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 200;
  margin: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(28, 35, 33, 0.82);
  color: rgba(255, 255, 255, 0.85);
  font: 500 11px/1.4 "Noto Sans", sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ---------- tokens (references only — no new raw hex beyond tokens) ---------- */
.da-section, .da-hero {
  --paper: #F4F5F6;        /* surface-ground */
  --sheet: #FFFFFF;
  --ink: #2C3E50;
  --muted: #7F8C8D;
  --teal: #00C2B2;
  --teal-deep: #009b8e;
  --teal-light: #e0f8f6;
  --line: rgba(44, 62, 80, 0.14);
}

main#main-content { position: relative; overflow: clip; }

/* ---------- hero (unified subpage family) ---------- */
.da-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1C2321;
}
.da-hero__media, .da-hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.da-hero__media img { object-position: 50% 38%; }
.da-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(28, 35, 33, 0.88) 0%, rgba(28, 35, 33, 0.34) 46%, rgba(28, 35, 33, 0.10) 72%, rgba(28, 35, 33, 0.28) 100%);
}
.da-hero__content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 9rem 2rem 8.5rem;
}
.da-kicker {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0DDBC7;
  margin: 0 0 0.9rem;
}
.da-kicker--ink { color: #00C2B2; }
.da-hero__title {
  font-family: "Futura", "Jost", sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 22ch;
}
.da-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.da-line > span { display: inline-block; will-change: transform; }
.da-hero__sub {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.65;
}
.da-hero__curve {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 4.5rem;
  z-index: 3;
  fill: #F4F5F6;
  pointer-events: none;
}
@media (min-width: 768px) { .da-hero__curve { height: 6.5rem; } }
@media (max-width: 640px) {
  .da-hero { min-height: 52vh; }
  .da-hero__content { padding: 8rem 1.25rem 7rem; }
  .da-hero__title { font-size: clamp(2.05rem, 9vw, 2.6rem); }
}

/* ---------- the register spine (desktop decoration) ---------- */
.da-spine { display: none; }
@media (min-width: 1280px) {
  .da-spine {
    display: block;
    position: absolute;
    top: 0; bottom: 0;
    left: max(28px, calc(50% - 47rem));
    width: 2px;
    z-index: 1;
    pointer-events: none;
  }
  .da-spine__rail {
    position: absolute; inset: 0;
    background: rgba(44, 62, 80, 0.09);
    border-radius: 2px;
  }
  .da-spine__fill {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, #00C2B2, #1A73E8);
    border-radius: 2px;
    transform-origin: top center;
    transform: scaleY(0);
  }
  .da-spine__dot {
    position: absolute;
    left: 50%;
    width: 11px; height: 11px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: #F4F5F6;
    border: 2px solid rgba(44, 62, 80, 0.25);
    transition: background 0.4s ease, border-color 0.4s ease;
  }
  .da-spine__dot.is-active { background: #00C2B2; border-color: #00C2B2; }
  .da-spine__label {
    position: absolute;
    left: 14px;
    transform: translateY(-50%);
    font: 700 10px/1 ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(44, 62, 80, 0.42);
    white-space: nowrap;
    transition: color 0.4s ease;
  }
  .da-spine__dot.is-active + .da-spine__label { color: #009b8e; }
}

/* ---------- shared section rhythm ---------- */
.da-section { padding: 6rem 0; position: relative; }
.da-section--tight { padding: 4.5rem 0; }
.da-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) { .da-wrap { padding: 0 1.25rem; } .da-section { padding: 4rem 0; } }

.da-h2 {
  font-family: "Futura", "Jost", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.da-body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0;
  text-wrap: pretty;
}
.da-body--wide { max-width: 44rem; }

/* ---------- 1 · invitation ---------- */
.da-invite { background: #F4F5F6; }
.da-invite__lede {
  font-family: "Futura", "Jost", sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 26em;
  margin: 2rem 0 4rem;
  text-wrap: pretty;
}
.da-invite__assurances {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.da-invite__assurances li { border-top: 2px solid var(--teal); padding-top: 1.4rem; }
.da-invite__assurances i, .da-invite__assurances svg {
  width: 22px; height: 22px;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.da-invite__assurances h2 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.da-invite__assurances p { color: var(--muted); font-size: 0.975rem; line-height: 1.65; margin: 0; }
@media (max-width: 820px) {
  .da-invite__assurances { grid-template-columns: 1fr; gap: 2rem; }
  .da-invite__lede { margin-bottom: 3rem; }
}

/* ---------- sheets on the desk ---------- */
.da-sheet {
  background: var(--sheet);
  border: 1px solid rgba(44, 62, 80, 0.09);
  border-radius: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: clamp(2rem, 5vw, 4.5rem);
}

/* ---------- 2 · the register (benefits ledger) ---------- */
.da-ledger { background: #F4F5F6; }
.da-ledger__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.da-ledger__intro { position: sticky; top: 7rem; }
.da-ledger__rows { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.da-row {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.da-row:last-child { border-bottom: 1px solid var(--line); }
.da-row__no {
  font-family: "Futura", "Jost", sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: rgba(44, 62, 80, 0.28);
  min-width: 3.2rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}
.da-row.is-on .da-row__no { color: var(--teal); }
.da-row h3 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.da-row p { color: var(--muted); font-size: 0.975rem; line-height: 1.6; margin: 0; max-width: 30rem; }
@media (max-width: 900px) {
  .da-ledger__grid { grid-template-columns: 1fr; }
  .da-ledger__intro { position: static; }
}

/* ---------- keepsake frames ---------- */
.da-keepsake {
  background: #fff;
  padding: 12px 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(28, 35, 33, 0.13);
  transform: rotate(-1.6deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  margin: 0;
}
.da-keepsake:nth-child(even) { transform: rotate(1.4deg); }
.da-keepsake:hover, .da-keepsake:focus-within {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 194, 178, 0.16);
}
.da-keepsake img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.da-keepsake figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 10px 4px 0;
  letter-spacing: 0.01em;
}
.da-keepsake--feature { max-width: 26rem; margin-top: 2.6rem; }

/* ---------- 3 · help wanted ---------- */
.da-notes { background: #F4F5F6; padding-bottom: 3.5rem; }
.da-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.da-note {
  background:
    repeating-linear-gradient(to bottom, transparent 0 30px, rgba(44, 62, 80, 0.055) 30px 31px),
    #fff;
  border: 1px solid rgba(44, 62, 80, 0.1);
  border-radius: 1.25rem;
  padding: 2.2rem 2rem 2.4rem;
  transform: rotate(-0.6deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.da-note:nth-child(2) { transform: rotate(0.5deg); }
.da-note:nth-child(3) { transform: rotate(-0.4deg); }
.da-note:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 16px 40px rgba(0, 194, 178, 0.13); }
.da-note h3 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.da-note__line { color: var(--muted); font-size: 0.975rem; line-height: 1.65; margin: 0 0 1.4rem; }
.da-note ul { list-style: none; margin: 0; padding: 0; }
.da-note li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 0.55rem;
}
.da-note li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: var(--teal-light);
  border: 2px solid var(--teal);
}
.da-org {
  margin-top: 3.5rem;
  background: #E4E8EC;
  border-top: 4px solid var(--teal);
  border-radius: 2rem;
  padding: 2.4rem clamp(1.6rem, 3.5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.da-org h3 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.da-org p { color: #4a5a68; font-size: 0.975rem; line-height: 1.65; margin: 0; max-width: 40rem; }
.da-org strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .da-notes__grid { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.da-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.da-btn svg, .da-btn i { width: 16px; height: 16px; }
.da-btn--primary { background: #00C2B2; color: #fff; }
.da-btn--primary:hover { background: #009b8e; }
.da-btn--outline { background: transparent; color: #009b8e; border: 2px solid #00C2B2; }
.da-btn--outline:hover { background: #00C2B2; color: #fff; }
.da-btn:focus-visible, .da-form a:focus-visible {
  outline: 2px solid #00C2B2;
  outline-offset: 3px;
}

/* ---------- 4 · gallery ---------- */
.da-gallery { background: #F4F5F6; padding-top: 3.5rem; }
.da-gallery__wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 3.2rem;
  align-items: start;
}
.da-gallery__wall .da-keepsake:nth-child(1) { grid-column: 1 / span 5; }
.da-gallery__wall .da-keepsake:nth-child(2) { grid-column: 6 / span 4; margin-top: 3.5rem; }
.da-gallery__wall .da-keepsake:nth-child(3) { grid-column: 10 / span 3; margin-top: 1.5rem; }
.da-gallery__wall .da-keepsake:nth-child(4) { grid-column: 2 / span 4; margin-top: -1rem; }
.da-gallery__wall .da-keepsake:nth-child(5) { grid-column: 6 / span 4; margin-top: 2rem; }
.da-gallery__wall .da-keepsake:nth-child(6) { grid-column: 10 / span 3; margin-top: -2.5rem; }
@media (max-width: 900px) {
  .da-gallery__wall { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .da-gallery__wall .da-keepsake { grid-column: auto !important; margin-top: 0 !important; }
  .da-gallery__wall .da-keepsake:nth-child(even) { margin-top: 1.6rem !important; }
}
@media (max-width: 480px) {
  .da-gallery__wall { grid-template-columns: 1fr; }
  .da-gallery__wall .da-keepsake:nth-child(even) { margin-top: 0 !important; }
}

/* ---------- 5 · voices (hold) ---------- */
.da-voices { background: #F4F5F6; }
.da-voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.da-voice {
  margin: 0;
  border: 1.5px dashed rgba(44, 62, 80, 0.28);
  border-radius: 1.25rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.da-voice blockquote { margin: 0; }
.da-voice blockquote p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }
.da-voice figcaption {
  font: 700 0.75rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, 0.45);
}
@media (max-width: 900px) { .da-voices__grid { grid-template-columns: 1fr; } }

/* ---------- 6 · register ---------- */
.da-register { background: #F4F5F6; padding-bottom: 6rem; }
.da-register__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.da-register__intro { position: sticky; top: 7rem; }
.da-hold {
  margin-top: 2.4rem;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 1.25rem 1.25rem 0;
  padding: 1.6rem 1.8rem;
}
.da-hold h3 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.da-hold p { color: #3c4c59; font-size: 0.925rem; line-height: 1.6; margin: 0 0 0.8rem; }
.da-hold ul { list-style: none; margin: 0; padding: 0; }
.da-hold li { margin-top: 0.3rem; }
.da-hold a { color: #009b8e; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0, 155, 142, 0.4); }
.da-hold a:hover { border-bottom-color: #009b8e; }

.da-form {
  background: #fff;
  border: 1px solid rgba(44, 62, 80, 0.09);
  border-radius: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}
.da-form__field label, .da-form__field legend {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4a5a68;
  margin-bottom: 0.5rem;
  padding: 0;
}
.da-form__field label span[aria-hidden], .da-form__field legend span { color: #00C2B2; }
.da-form input[type="text"],
.da-form input[type="email"],
.da-form select {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(44, 62, 80, 0.22);
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0.1rem;
  font: 400 0.95rem/1.5 "Noto Sans", sans-serif;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.da-form input::placeholder { color: #A1A1AA; }
.da-form input[type="text"]:focus,
.da-form input[type="email"]:focus,
.da-form select:focus {
  outline: none;
  border-bottom-color: #00C2B2;
  box-shadow: 0 1.5px 0 #00C2B2;
}
.da-form__radios { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.da-form__radios label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(44, 62, 80, 0.18);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.da-form__radios label:hover { border-color: #00C2B2; }
.da-form__radios input { accent-color: #00C2B2; width: 1rem; height: 1rem; }
.da-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: #4a5a68;
  line-height: 1.55;
  cursor: pointer;
  margin: 0;
}
.da-form__consent input { accent-color: #00C2B2; width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; }
.da-form__truth {
  margin: -0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}
.da-form__truth a { color: #009b8e; }
.da-form__truth.is-flashed {
  background: var(--teal-light);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  color: #1f5c55;
}
@media (max-width: 900px) {
  .da-register__grid { grid-template-columns: 1fr; }
  .da-register__intro { position: static; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .da-keepsake, .da-note, .da-btn { transition: none; }
  .da-keepsake:hover, .da-note:hover { transform: none; }
  .da-spine__fill { transform: scaleY(1); opacity: 0.35; }
}
