/* ==========================================================================
   Summit Hospitality — Aveda Upgrade approval site
   A deliberate, non-generic design system built around the email brand.
   ========================================================================== */

:root {
  /* Brand */
  --teal-deep: #0c2a38;
  --teal: #11384a;
  --teal-mid: #53808e;
  --teal-haze: rgba(83, 128, 142, 0.18);
  --teal-glow: rgba(83, 128, 142, 0.32);

  --cream: #f3efe7;
  --cream-warm: #fbf9f5;
  --cream-edge: #e6e1d6;
  --cream-deep: #d9d2c3;

  --ink: #1a2b33;
  --ink-soft: #2a2a2a;
  --muted: #6b7480;
  --muted-deep: #53606b;

  --accent-approve: #2f6a47;
  --accent-contact: #c17a2f;
  --accent-decline: #9b3a3a;

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-xs: 120ms;
  --dur-sm: 200ms;
  --dur-md: 320ms;
  --dur-lg: 520ms;

  /* Layout */
  --card-max: 620px;
  --radius: 3px;
  --radius-lg: 4px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: var(--teal-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* ------------------------------ ATMOSPHERE ------------------------------ */

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #163e52 0%, transparent 60%),
    linear-gradient(180deg, #0e3144 0%, #0c2a38 55%, #091f2a 100%);
}

.atmosphere-topo {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200' viewBox='0 0 1200 1200' fill='none'><g stroke='%2353808e' stroke-width='0.6' fill='none' opacity='0.55'><path d='M-100 860 Q 200 740 500 820 T 1100 780 T 1700 860'/><path d='M-100 900 Q 200 790 500 860 T 1100 820 T 1700 900'/><path d='M-100 940 Q 200 840 500 900 T 1100 860 T 1700 940'/><path d='M-100 980 Q 200 890 500 940 T 1100 900 T 1700 980'/><path d='M-100 1020 Q 200 940 500 980 T 1100 940 T 1700 1020'/><path d='M-100 1060 Q 200 990 500 1020 T 1100 980 T 1700 1060'/><path d='M-100 1100 Q 200 1040 500 1060 T 1100 1020 T 1700 1100'/><path d='M-100 1140 Q 200 1090 500 1100 T 1100 1060 T 1700 1140'/><path d='M-100 520 Q 200 400 500 480 T 1100 440 T 1700 520'/><path d='M-100 560 Q 200 450 500 520 T 1100 480 T 1700 560'/><path d='M-100 600 Q 200 500 500 560 T 1100 520 T 1700 600'/><path d='M-100 640 Q 200 550 500 600 T 1100 560 T 1700 640'/><path d='M-100 680 Q 200 600 500 640 T 1100 600 T 1700 680'/><path d='M-100 720 Q 200 650 500 680 T 1100 640 T 1700 720'/><path d='M-100 180 Q 200 60 500 140 T 1100 100 T 1700 180'/><path d='M-100 220 Q 200 110 500 180 T 1100 140 T 1700 220'/><path d='M-100 260 Q 200 160 500 220 T 1100 180 T 1700 260'/><path d='M-100 300 Q 200 210 500 260 T 1100 220 T 1700 300'/><path d='M-100 340 Q 200 260 500 300 T 1100 260 T 1700 340'/><path d='M-100 380 Q 200 310 500 340 T 1100 300 T 1700 380'/><path d='M-100 420 Q 200 360 500 380 T 1100 340 T 1700 420'/></g></svg>");
  background-size: 1200px 1200px;
  background-position: center top;
  mix-blend-mode: screen;
}

.atmosphere-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='280' height='280' filter='url(%23n)' opacity='0.45'/></svg>");
  mix-blend-mode: overlay;
}

.atmosphere-glow {
  position: absolute;
  top: -18vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 140%);
  height: 60vh;
  background: radial-gradient(ellipse at 50% 50%, rgba(83,128,142,0.28), transparent 65%);
  filter: blur(40px);
}

/* -------------------------------- SHELL --------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: calc(var(--card-max) + 48px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) clamp(18px, 5vw, 36px) 48px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4.5vw, 40px);
  min-height: 100vh;
  min-height: 100dvh;
}

/* --------------------------------- HEAD --------------------------------- */

.head {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

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

.brand img {
  display: block;
  width: clamp(190px, 34vw, 230px);
  height: auto;
}

.brand:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 6px;
  border-radius: 2px;
}

/* --------------------------------- CARD --------------------------------- */

.card {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(17, 56, 74, 0.08);
  border-top: 4px solid var(--teal);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.55),
    0 12px 32px -18px rgba(0, 0, 0, 0.35);
  padding: clamp(28px, 5.5vw, 48px) clamp(22px, 5vw, 48px) clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
}

.card-head {
  text-align: center;
  margin-bottom: clamp(22px, 4vw, 32px);
}

.partnership {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.partnership-line {
  flex: 0 0 auto;
  width: clamp(20px, 6vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-mid), transparent);
}

.partnership-kicker {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 600;
  white-space: nowrap;
}

.partnership-aveda {
  display: block;
  height: 20px;
  width: auto;
  opacity: 0.92;
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--teal);
  margin: 0 0 12px;
}

.card-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-deep);
  margin: 0 auto;
  max-width: 420px;
}

/* ------------------------------- STEPPER -------------------------------- */

.stepper {
  margin: 0 0 clamp(24px, 3.5vw, 32px);
}

.stepper ol {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: transparent;
  transition: background var(--dur-sm) var(--ease-out),
              color var(--dur-sm) var(--ease-out);
  color: var(--muted);
}

.step.is-active {
  background: rgba(17, 56, 74, 0.06);
  color: var(--teal);
}

.step.is-complete {
  color: var(--teal);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  line-height: 1;
}

.step.is-active .step-num {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.step.is-complete .step-num::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.step.is-complete .step-num { font-size: 0; background: transparent; color: var(--teal); }

.step-label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.step-divider {
  width: 18px;
  height: 1px;
  background: var(--cream-deep);
}

@media (max-width: 520px) {
  .step-label { display: none; }
  .stepper ol { gap: 6px; }
  .step { padding: 4px; }
}

/* -------------------------------- PANELS -------------------------------- */

.panel {
  display: none;
  animation: panel-in var(--dur-md) var(--ease-out) both;
}

.panel.is-active {
  display: block;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.panel-head {
  margin-bottom: 22px;
}

.panel-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 26px);
  line-height: 1.25;
  color: var(--teal);
  margin: 0 0 6px;
  letter-spacing: -0.008em;
}

.panel-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-deep);
  margin: 0;
  max-width: 460px;
}

.panel-error {
  color: var(--accent-decline);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 14px 0 0;
  min-height: 1.45em;
}

.panel-error:empty { margin: 0; min-height: 0; }

.panel-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-actions-split {
  justify-content: space-between;
}

@media (max-width: 520px) {
  .panel-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .panel-actions .btn { width: 100%; justify-content: center; }
}

/* -------------------------------- FIELDS -------------------------------- */

.field {
  position: relative;
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.field-row .field { margin-bottom: 18px; }

.field-row .field-compact { max-width: 100%; }

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

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 7px;
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
  font-size: 11.5px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font-family: var(--font-sans);
  /* ≥16px is required on iOS Safari to suppress the auto-zoom on focus */
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream-warm);
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition:
    border-color var(--dur-sm) var(--ease-out),
    box-shadow var(--dur-sm) var(--ease-out),
    background var(--dur-sm) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.field input:hover {
  border-color: var(--teal-mid);
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 56, 74, 0.12);
}

.field.has-error input {
  border-color: var(--accent-decline);
  background: #fdf5f3;
}

.field-error {
  color: var(--accent-decline);
  font-size: 12.5px;
  line-height: 1.4;
  margin: 6px 0 0;
  min-height: 0;
}
.field-error:empty { margin: 0; }

/* -------------------------------- BUTTONS ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition:
    background var(--dur-sm) var(--ease-out),
    color var(--dur-sm) var(--ease-out),
    border-color var(--dur-sm) var(--ease-out),
    transform var(--dur-xs) var(--ease-out),
    box-shadow var(--dur-sm) var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-arrow {
  transition: transform var(--dur-sm) var(--ease-out);
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: #0c2b3a;
  box-shadow: 0 10px 24px -12px rgba(17, 56, 74, 0.65);
  transform: translateY(-1px);
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-primary:active { transform: translateY(0); }

.btn-primary[disabled],
.btn-primary.is-loading {
  cursor: wait;
  opacity: 0.85;
}

.btn-spinner {
  display: none;
  animation: spin 900ms linear infinite;
}

.btn-primary.is-loading .btn-label { opacity: 0.7; }
.btn-primary.is-loading .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--cream-edge);
  padding: 13px 22px;
}

.btn-ghost:hover {
  background: rgba(17, 56, 74, 0.05);
  border-color: var(--teal-mid);
}
.btn-ghost .btn-arrow-left { transition: transform var(--dur-sm) var(--ease-out); }
.btn-ghost:hover .btn-arrow-left { transform: translateX(-3px); }

.btn-link {
  background: transparent;
  color: var(--teal);
  border: none;
  padding: 13px 4px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
}
.btn-link:hover { color: var(--teal-mid); text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------- OPTIONS ------------------------------- */

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: var(--cream-warm);
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--ink);
  transition:
    border-color var(--dur-sm) var(--ease-out),
    background var(--dur-sm) var(--ease-out),
    box-shadow var(--dur-sm) var(--ease-out),
    transform var(--dur-xs) var(--ease-out);
}

.option:hover {
  border-color: var(--teal-mid);
  background: #ffffff;
  transform: translateX(2px);
}
.option:hover .option-chev { color: var(--teal); transform: translateX(3px); }

.option:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.option[aria-checked="true"] {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 56, 74, 0.08);
}

.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  transition: background var(--dur-sm) var(--ease-out), color var(--dur-sm) var(--ease-out);
}
.option-icon-approve { color: var(--accent-approve); background: rgba(47, 106, 71, 0.08); }
.option-icon-contact { color: var(--accent-contact); background: rgba(193, 122, 47, 0.08); }
.option-icon-decline { color: var(--accent-decline); background: rgba(155, 58, 58, 0.08); }

.option[aria-checked="true"] .option-icon { color: var(--cream); border-color: transparent; }
.option[aria-checked="true"] .option-icon-approve { background: var(--accent-approve); }
.option[aria-checked="true"] .option-icon-contact { background: var(--accent-contact); }
.option[aria-checked="true"] .option-icon-decline { background: var(--accent-decline); }

.option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.option-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.005em;
}

.option-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted-deep);
}

.option-chev {
  color: var(--muted);
  transition: color var(--dur-sm) var(--ease-out), transform var(--dur-sm) var(--ease-out);
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.option:disabled { cursor: default; }

.option.is-loading .option-chev > svg { display: none; }
.option.is-loading .option-chev::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.8px solid rgba(17, 56, 74, 0.18);
  border-top-color: var(--teal);
  animation: spin 700ms linear infinite;
  display: inline-block;
}

.options:has(.option.is-loading) .option:not(.is-loading) {
  opacity: 0.55;
  filter: saturate(0.7);
}

@media (max-width: 520px) {
  .option { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 16px 14px; }
  .option-icon { width: 34px; height: 34px; }
  .option-title { font-size: 16.5px; }
}

/* --------------------------------- WEEKS -------------------------------- */

.weeks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.week {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 22px 22px 20px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--ink);
  transition:
    border-color var(--dur-sm) var(--ease-out),
    background var(--dur-sm) var(--ease-out),
    box-shadow var(--dur-sm) var(--ease-out),
    transform var(--dur-xs) var(--ease-out);
  position: relative;
}

.week:hover {
  border-color: var(--teal-mid);
  background: #ffffff;
  transform: translateY(-1px);
}

.week:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.week[aria-checked="true"] {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 56, 74, 0.08);
}

.week[aria-checked="true"]::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  background: var(--teal) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4 4 10-10' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
  border-radius: 50%;
}

.week-kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-mid);
}

.week-dates {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.3vw, 26px);
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.1;
}

.week-sub {
  font-size: 13px;
  color: var(--muted-deep);
  line-height: 1.4;
}

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

/* --------------------------------- CONFIRM ------------------------------ */

.panel-confirm {
  text-align: center;
  padding-top: 4px;
}

.confirm-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 18px;
}

.confirm-icon-decline { color: var(--accent-decline); background: rgba(155, 58, 58, 0.08); }
.confirm-icon-contact { color: var(--accent-contact); background: rgba(193, 122, 47, 0.08); }

.confirm-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.8vw, 30px);
  line-height: 1.2;
  color: var(--teal);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.confirm-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto 22px;
  max-width: 440px;
}

.confirm-meta {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius);
  text-align: left;
}

.confirm-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.45;
}

.confirm-meta-k {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-mid);
}

.confirm-meta-v {
  color: var(--ink-soft);
  word-break: break-word;
}

/* Primary button variants — swapped when the confirm panel is active */
.btn-primary.is-decline {
  background: var(--accent-decline);
  border-color: var(--accent-decline);
}
.btn-primary.is-decline:hover {
  background: #7f2f2f;
  box-shadow: 0 10px 24px -12px rgba(155, 58, 58, 0.6);
}

.btn-primary.is-contact {
  background: var(--accent-contact);
  border-color: var(--accent-contact);
}
.btn-primary.is-contact:hover {
  background: #a9672a;
  box-shadow: 0 10px 24px -12px rgba(193, 122, 47, 0.55);
}

@media (max-width: 520px) {
  .confirm-meta-row { grid-template-columns: 80px 1fr; }
}

/* -------------------------------- TERMINAL ------------------------------ */

.panel-terminal {
  text-align: center;
  padding: 10px 0 0;
}

.terminal-mark {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 18px;
}

.terminal-mark-success { color: var(--accent-approve); background: rgba(47, 106, 71, 0.08); }
.terminal-mark-info    { color: var(--accent-contact); background: rgba(193, 122, 47, 0.08); }
.terminal-mark-neutral { color: var(--teal-mid); background: rgba(83, 128, 142, 0.12); }

.terminal-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.8vw, 30px);
  line-height: 1.2;
  color: var(--teal);
  margin: 0 0 12px;
  letter-spacing: -0.012em;
}

.terminal-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto 22px;
  max-width: 460px;
}

.terminal-highlight {
  color: var(--teal);
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1.05em;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.terminal-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-deep);
  font-style: italic;
  margin: 0 auto 20px;
  max-width: 420px;
}

.terminal-contact {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted-deep);
  padding: 14px 18px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.terminal-contact a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terminal-contact a:hover { color: var(--teal-mid); }

.dot {
  color: var(--cream-deep);
}

/* --------------------------------- FOOT --------------------------------- */

.foot {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(243, 239, 231, 0.55);
  padding: 8px 0 12px;
  flex-wrap: wrap;
}

.foot a {
  color: rgba(243, 239, 231, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 239, 231, 0.25);
  padding-bottom: 1px;
}

.foot a:hover { color: var(--cream); border-color: rgba(243, 239, 231, 0.6); }

/* ------------------------------ SUBMIT BANNER --------------------------- */

.submit-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 10;
  max-width: calc(100% - 32px);
  background: #2d0f0f;
  color: #ffe4e1;
  border: 1px solid rgba(255, 228, 225, 0.2);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform var(--dur-md) var(--ease-out), opacity var(--dur-md) var(--ease-out);
  opacity: 0;
  pointer-events: none;
}

.submit-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* -------------------------- REDUCED MOTION / SAFETY --------------------- */

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

  .panel { animation: none; }
  .btn:hover, .option:hover, .week:hover { transform: none; }
  .btn-primary:hover .btn-arrow, .btn-ghost:hover .btn-arrow-left { transform: none; }
}

/* -------------------------- VIEWPORT-SAFE INSETS ------------------------ */

@supports (padding: env(safe-area-inset-bottom)) {
  .shell { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}
