:root {
  color-scheme: light;
  /* Light blue + dark blue, sampled from Globe's own artwork rather than
     guessed: assets/globe-logo-official.png gives the deep blue #1e449f and the
     light tint #c6d7ef, assets/globe-business-header.jpg gives #1b3499, and the
     GPlan Plus hero banner gives the navy field #1e2d80 with the accent #2174e5. */
  --brand-navy: #0b1f5c;
  --brand-navy-deep: #071539;
  --globe-navy-field: #1e2d80;
  --globe-blue-deep: #1b3499;
  --brand-blue: #2174e5;
  --brand-blue-dark: #1e449f;
  --brand-blue-soft: #eaf3fd;
  --brand-sky: #d3e6f8;
  --globe-blue-mist: #c6d7ef;
  --ink: #101a33;
  --ink-soft: #47526e;
  --ink-faint: #6d7690;
  --surface: #ffffff;
  --surface-muted: #eff6fd;
  --surface-sunken: #e7f1fc;
  --line: #d5e3f2;
  --line-strong: #bcd4ec;
  --success: #0f7a45;
  --danger: #b3261e;
  --page-start: #1b3499;
  --page-end: #0b1f5c;
  --card-blue: #0b1f5c;
  --accent-gold: #a2823a;
  --focus-yellow: #ffffff;
  --field-border: #bcd4ec;
  --field-text: #101a33;
  --footer-hover: #2174e5;
  --focus-ring: 0 0 0 3px rgba(33, 116, 229, 0.28);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 1px 2px rgba(16, 26, 51, 0.06);
  --shadow-deep: 0 18px 44px rgba(11, 31, 92, 0.1);
  --shadow-card: 0 10px 24px rgba(16, 26, 51, 0.07);

  /* ---- premium layer ---------------------------------------------------
     Champagne gold. NOT a Globe colour - it is deliberately reserved for the
     three places the client agreed to: the hero hairline, peso figures, and
     the primary CTA edge. Contrast was computed by hand because no tooling is
     available here: #c7a869 on --brand-navy is 6.8:1, so it is safe as text on
     the dark hero, but the same gold on white is only 3.1:1 - anything gold set
     as text on a light surface must use --gold-ink (5.6:1 on white). */
  --gold: #c7a869;
  --gold-bright: #e3cd9a;
  --gold-deep: #9a7d3f;
  --gold-ink: #7d6429;

  /* Spacing scale. Every new value in the premium pass comes from this ramp so
     rhythm stays consistent instead of drifting into one-off numbers. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 30px;
  --space-7: 40px;

  /* Type scale and optical tracking. Only two Inter weights are self-hosted, so
     hierarchy has to come from size, tracking and colour rather than from extra
     weights - display sizes get negative tracking, all-caps eyebrows positive. */
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.94rem;
  --text-lg: 1.06rem;
  --text-xl: 1.3rem;
  --track-tight: -0.022em;
  --track-snug: -0.012em;
  --track-caps: 0.11em;

  /* Layered elevation: a close contact shadow plus a wide ambient one reads as a
     sheet floating above the field, where one big blur just reads as fog. */
  --shadow-lift: 0 2px 4px rgba(11, 31, 92, 0.05), 0 12px 28px rgba(11, 31, 92, 0.09);
  --shadow-float:
    0 2px 6px rgba(4, 12, 38, 0.1),
    0 18px 40px rgba(4, 12, 38, 0.2),
    0 48px 96px rgba(4, 12, 38, 0.18);
  --edge-top: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Motion. One decelerating curve for everything that enters, one gentle
     overshoot for things that respond to a tap. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
  --dur-fast: 140ms;
  --dur-mid: 240ms;
  --dur-slow: 420ms;
  --flag-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='40' viewBox='0 0 30 30.000001' preserveAspectRatio='xMidYMid meet'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath d='M 3.386719 6.132812 L 26.613281 6.132812 L 26.613281 22.828125 L 3.386719 22.828125 Z M 3.386719 6.132812'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M 3.386719 6.132812 L 26.613281 6.132812 L 26.613281 15 L 3.386719 15 Z M 3.386719 6.132812'/%3E%3C/clipPath%3E%3CclipPath id='c'%3E%3Cpath d='M 3.386719 6.132812 L 16 6.132812 L 16 22.828125 L 3.386719 22.828125 Z M 3.386719 6.132812'/%3E%3C/clipPath%3E%3CclipPath id='d'%3E%3Cpath d='M 3.386719 8 L 15 8 L 15 22 L 3.386719 22 Z M 3.386719 8'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='rgb(80.778503%25,6.669617%25,14.898682%25)' d='M 26.605469 20.257812 C 26.605469 21.675781 25.449219 22.828125 24.027344 22.828125 L 5.972656 22.828125 C 4.550781 22.828125 3.394531 21.675781 3.394531 20.257812 L 3.394531 8.703125 C 3.394531 7.285156 4.550781 6.132812 5.972656 6.132812 L 24.027344 6.132812 C 25.449219 6.132812 26.605469 7.285156 26.605469 8.703125 Z M 26.605469 20.257812'/%3E%3C/g%3E%3Cg clip-path='url(%23b)'%3E%3Cpath fill='rgb(0%25,21.958923%25,65.879822%25)' d='M 24.027344 6.132812 L 5.972656 6.132812 C 4.550781 6.132812 3.394531 7.285156 3.394531 8.703125 L 3.394531 14.480469 L 26.605469 14.480469 L 26.605469 8.703125 C 26.605469 7.285156 25.449219 6.132812 24.027344 6.132812 Z M 24.027344 6.132812'/%3E%3C/g%3E%3Cg clip-path='url(%23c)'%3E%3Cpath fill='rgb(93.328857%25,93.328857%25,93.328857%25)' d='M 4.242188 22.148438 L 15.664062 14.523438 L 4.253906 6.800781 C 3.730469 7.273438 3.394531 7.945312 3.394531 8.703125 L 3.394531 20.257812 C 3.394531 21.011719 3.726562 21.679688 4.242188 22.148438 Z M 4.242188 22.148438'/%3E%3C/g%3E%3Cg clip-path='url(%23d)'%3E%3Cpath fill='rgb(98.81897%25,81.959534%25,8.628845%25)' d='M 13.753906 13.53125 L 13.785156 14.269531 L 14.503906 14.460938 L 13.804688 14.714844 L 13.847656 15.453125 L 13.386719 14.871094 L 12.695312 15.136719 L 13.109375 14.523438 L 12.636719 13.949219 L 13.351562 14.152344 Z M 4.429688 8.046875 L 4.988281 8.539062 L 5.621094 8.148438 L 5.324219 8.828125 L 5.890625 9.308594 L 5.152344 9.238281 L 4.871094 9.921875 L 4.707031 9.199219 L 3.964844 9.144531 L 4.605469 8.769531 Z M 4.707031 19.101562 L 5.078125 19.742188 L 5.800781 19.578125 L 5.304688 20.125 L 5.6875 20.761719 L 5.007812 20.457031 L 4.519531 21.015625 L 4.597656 20.28125 L 3.914062 19.992188 L 4.640625 19.835938 Z M 9.84375 14.480469 C 9.84375 15.542969 8.976562 16.40625 7.910156 16.40625 C 6.839844 16.40625 5.972656 15.542969 5.972656 14.480469 C 5.972656 13.417969 6.839844 12.554688 7.910156 12.554688 C 8.976562 12.554688 9.84375 13.417969 9.84375 14.480469 Z M 9.84375 14.480469'/%3E%3C/g%3E%3Cpath fill='rgb(98.81897%25,81.959534%25,8.628845%25)' d='M 8.292969 11.011719 L 8.191406 12.710938 L 8.035156 12.6875 L 8.089844 10.714844 L 7.910156 10.597656 L 7.730469 10.714844 L 7.785156 12.6875 L 7.625 12.710938 L 7.523438 11.011719 L 7.296875 11.152344 L 7.507812 12.882812 L 8.308594 12.882812 L 8.519531 11.152344 Z M 7.523438 17.949219 L 7.625 16.25 L 7.785156 16.273438 L 7.726562 18.246094 L 7.910156 18.363281 L 8.089844 18.246094 L 8.035156 16.273438 L 8.191406 16.25 L 8.292969 17.949219 L 8.519531 17.808594 L 8.308594 16.078125 L 7.507812 16.078125 L 7.296875 17.808594 Z M 5.175781 16.664062 L 6.453125 15.535156 L 6.546875 15.660156 L 5.109375 17.015625 L 5.152344 17.226562 L 5.363281 17.269531 L 6.726562 15.835938 L 6.851562 15.929688 L 5.714844 17.203125 L 5.976562 17.265625 L 7.058594 15.890625 L 6.773438 15.609375 L 6.492188 15.328125 L 5.113281 16.402344 Z M 10.644531 12.296875 L 9.363281 13.429688 L 9.269531 13.300781 L 10.710938 11.945312 L 10.664062 11.734375 L 10.453125 11.691406 L 9.09375 13.125 L 8.964844 13.03125 L 10.101562 11.757812 L 9.839844 11.695312 L 8.761719 13.070312 L 9.324219 13.632812 L 10.703125 12.558594 Z M 4.425781 14.097656 L 6.132812 14.199219 L 6.109375 14.355469 L 4.128906 14.300781 L 4.011719 14.480469 L 4.128906 14.660156 L 6.109375 14.605469 L 6.132812 14.761719 L 4.425781 14.863281 L 4.566406 15.089844 L 6.304688 14.878906 L 6.304688 14.082031 L 4.566406 13.871094 Z M 11.390625 14.863281 L 9.683594 14.761719 L 9.707031 14.605469 L 11.691406 14.660156 L 11.808594 14.480469 L 11.691406 14.300781 L 9.707031 14.355469 L 9.683594 14.199219 L 11.390625 14.097656 L 11.25 13.871094 L 9.511719 14.082031 L 9.511719 14.878906 L 11.25 15.089844 Z M 5.714844 11.757812 L 6.851562 13.03125 L 6.726562 13.125 L 5.363281 11.691406 L 5.152344 11.734375 L 5.109375 11.945312 L 6.546875 13.300781 L 6.453125 13.429688 L 5.175781 12.296875 L 5.113281 12.558594 L 6.492188 13.632812 L 6.773438 13.351562 L 7.058594 13.070312 L 5.976562 11.695312 Z M 10.101562 17.203125 L 8.964844 15.929688 L 9.09375 15.835938 L 10.453125 17.269531 L 10.664062 17.226562 L 10.710938 17.015625 L 9.269531 15.660156 L 9.363281 15.535156 L 10.644531 16.664062 L 10.703125 16.402344 L 9.324219 15.328125 L 8.761719 15.890625 L 9.839844 17.265625 Z M 10.101562 17.203125'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "InterLocal";
  src: url("/assets/fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("/assets/fonts/inter-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  /* Globe's own shop pages sit on a dark blue field with the content floating on
     a white card, so the page background is the sampled deep blue #1b3499 fading
     into the navy #0b1f5c, lifted by a #2174e5 glow at the top left. */
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(33, 116, 229, 0.55) 0%, rgba(33, 116, 229, 0) 62%),
    linear-gradient(180deg, var(--page-start) 0%, var(--page-end) 100%);
  color: var(--ink);
  font-family: "InterLocal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
}

.main-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-6) 20px var(--space-7);
}

/* The card is the one object on the dark field, so it is treated as a physical
   sheet: a close contact shadow, a wide ambient one, and a 1px inner highlight
   along the top edge where the light would catch it. */
.main-card {
  position: relative;
  width: min(100%, 1120px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--edge-top), var(--shadow-float);
}

/* Champagne hairline across the very top of the sheet - the one piece of metal
   on the page, brightest in the middle and dissolving at both ends so it reads
   as a lit edge rather than as a coloured border. */
.main-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(199, 168, 105, 0) 0%,
    rgba(199, 168, 105, 0.55) 18%,
    var(--gold-bright) 50%,
    rgba(199, 168, 105, 0.55) 82%,
    rgba(199, 168, 105, 0) 100%
  );
  pointer-events: none;
}

.card-header img {
  display: block;
  width: 100%;
  height: auto;
}

.card-content {
  padding: 26px 30px 34px;
  color: var(--ink);
}

/* --- Top bar ------------------------------------------------------------- */

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-brand-logo {
  display: block;
  width: auto;
  height: 30px;
}

.site-brand-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-topbar-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.intro-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.55;
}

.reservation-form {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}

.form-field {
  margin: 0 0 16px;
}

.form-field-compact {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  gap: 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid > .form-field-wide {
  grid-column: 1 / -1;
}

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

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Matching on :not() rather than on a list of types: the mobile number field
   was switched to type="tel" and silently fell out of a type="text" list,
   losing its height, border and padding so it no longer lined up with the
   fields beside it. Any type added later is now styled by default.
   The left padding is read from a custom property because this selector's three
   attribute negations outrank any sane wrapper selector - the +63 prefix cannot
   win a specificity fight here, so it inherits a variable instead. */
.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-field select,
.upload-item input[type="file"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px var(--field-pad-left, 14px);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--field-text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-field select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.form-field select:hover {
  border-color: var(--line-strong);
}

.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-field select:focus {
  border-color: var(--brand-blue);
  outline: none;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--focus-ring);
}

.form-field input:disabled,
.form-field select:disabled {
  background: var(--surface-muted);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.form-field select {
  margin-bottom: 6px;
}

/* ---- inline validation ------------------------------------------------
   iOS Safari draws no validation bubble at all, and the bubbles that other
   mobile browsers do draw disappear on the next tap. The message is therefore
   printed next to the field as well, and the control itself is marked, so a
   blocked Continue always explains itself on a phone. */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none;
}

.field-error::before {
  content: "!";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.form-field.has-error input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-field.has-error select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.13);
}

/* Keep a real focus indicator on a field that is both invalid and focused -
   the red glow above would otherwise stand in for it and read the same as an
   unfocused error. */
.form-field.has-error input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-field.has-error select:focus {
  border-color: var(--danger);
  box-shadow: var(--focus-ring);
}

/* Brand headers inside the device dropdown. Native <optgroup> labels are
   italic grey by default; make them read as clear section headers instead. */
.form-field select optgroup {
  color: var(--brand-navy);
  font-weight: 700;
  font-style: normal;
}

.form-field select optgroup option {
  color: var(--ink);
  font-weight: 500;
}

.form-field input[readonly] {
  background: var(--brand-blue-soft);
  border-color: var(--brand-sky);
  color: var(--brand-navy);
  font-weight: 700;
}

.description {
  display: block;
  padding-left: 2px;
  padding-right: 2px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-note {
  margin-top: 2px;
  line-height: 1.45;
}

.search-combobox {
  position: relative;
}

.search-panel[hidden] {
  display: none;
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.search-option {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--field-text);
  text-align: left;
  font: inherit;
  font-size: 0.96rem;
  cursor: pointer;
}

.search-option:last-child {
  border-bottom: 0;
}

.search-option:hover,
.search-option:focus-visible {
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
  outline: none;
}

.search-empty {
  margin: 0;
  padding: 14px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.color-picker-row {
  display: grid;
  gap: 10px;
}

.color-preview[hidden],
.color-chip-list[hidden] {
  display: none;
}

.color-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink);
}

.color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 26, 51, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
}

.color-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.color-chip:hover {
  background: var(--surface-muted);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.color-chip.is-selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
  box-shadow: var(--focus-ring);
}

.color-chip:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.device-spotlight[hidden] {
  display: none;
}

.device-preorder-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(168, 142, 64, 0.38);
  border-radius: 12px;
  background: rgba(255, 247, 224, 0.92);
  color: #4a3a10;
  font-size: 0.88rem;
  line-height: 1.35;
}

.device-preorder-note[hidden] {
  display: none;
}

.device-preorder-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.device-preorder-text {
  font-weight: 600;
}

.device-spotlight {
  margin: 10px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f7fbff 0%, #eaf3fd 100%);
  color: var(--brand-navy);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.device-spotlight-frame {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.device-spotlight-media {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 240px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(22, 33, 83, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  cursor: zoom-in;
}

.device-spotlight-media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(17, 24, 39, 0.18));
}

.device-spotlight-media:hover img {
  transform: translateY(-2px) scale(1.02);
}

.device-spotlight-media:focus-visible {
  outline: 2px solid #162153;
  outline-offset: 3px;
}

.device-spotlight-media img,
.device-spotlight-zoom-hint {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.device-spotlight-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 33, 83, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.device-spotlight-copy {
  display: grid;
  gap: 10px;
}

.device-spotlight-eyebrow {
  margin: 0;
  color: rgba(22, 33, 83, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-spotlight-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.device-spotlight-summary {
  margin: 0;
  color: rgba(22, 33, 83, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

.device-spotlight-specs {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-spotlight-spec {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(22, 33, 83, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.device-spotlight-spec span {
  color: rgba(22, 33, 83, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.device-spotlight-spec strong {
  color: #162153;
  font-size: 0.92rem;
  line-height: 1.4;
}

.plan-inclusions {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 33, 83, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.plan-inclusions[hidden] {
  display: none;
}

.plan-inclusions-eyebrow {
  margin: 0;
  color: rgba(22, 33, 83, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-inclusions-title {
  margin: 0;
  color: #162153;
  font-size: 1rem;
  font-weight: 700;
}

.plan-inclusions-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-inclusion {
  position: relative;
  padding-left: 24px;
  color: #162153;
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan-inclusion::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.35em;
  width: 11px;
  height: 6px;
  border-left: 2px solid #2c5dbf;
  border-bottom: 2px solid #2c5dbf;
  transform: rotate(-45deg);
}

.device-spotlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 2px;
  padding: 0 16px;
  border-radius: 999px;
  background: #162153;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.device-spotlight-link:hover {
  background: #0d153f;
  transform: translateY(-1px);
}

.device-spotlight-link:focus-visible {
  outline: 2px solid #162153;
  outline-offset: 2px;
}

.device-image-lightbox[hidden] {
  display: none;
}

/* Flex + `margin: auto` on the dialog, never `place-items: center`. Auto margins
   collapse to zero when the child is taller than the scroll port, so the top of
   the dialog stays reachable; grid centring would push it above scroll origin
   and make it unreachable once the page scroll is locked. */
.device-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(4, 8, 24, 0.82);
  backdrop-filter: blur(8px);
}

.device-image-lightbox-dialog {
  position: relative;
  margin: auto;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  padding: 56px 28px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fbfdff 0%, #edf3ff 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.device-image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #162153;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.device-image-lightbox-close:focus-visible {
  outline: 2px solid #162153;
  outline-offset: 2px;
}

.device-image-lightbox-label {
  margin: 0;
  color: rgba(22, 33, 83, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-image-lightbox-title {
  margin: 10px 0 18px;
  color: #162153;
  font-size: 1.3rem;
  line-height: 1.15;
}

.device-image-lightbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.device-image-lightbox-meta {
  display: grid;
  gap: 10px;
}

.device-image-lightbox-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-image-lightbox-step {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(22, 33, 83, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #162153;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.device-image-lightbox-step:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(22, 33, 83, 0.34);
}

.device-image-lightbox-step:focus-visible {
  outline: 2px solid #162153;
  outline-offset: 2px;
}

.device-image-lightbox-step:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.device-image-lightbox-position {
  min-width: 124px;
  text-align: center;
  color: rgba(22, 33, 83, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.device-image-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
  background: #ffffff;
}

body.device-image-lightbox-open {
  overflow: hidden;
}

/* The flag and "+63" used to be pseudo-elements on the whole field, pinned with
   a hard-coded top: 51px measured off the label's height. Anything that changed
   that height - a wrapping label, the fallback font before Inter loads, the
   48px control height - slid them off the input's centre line. They now live in
   a wrapper that contains only the input, so top: 50% is the input's own middle
   whatever happens above it. */

.phone-number-control {
  position: relative;
  display: block;
  /* Clears the flag plus the dial code. Set as an inherited custom property, not
     as padding-left on the input: the base sizing selector carries three
     attribute negations, so a padding-left here would lose the cascade and the
     digits would run underneath the +63 - which is exactly what happened. */
  --field-pad-left: 70px;
}

.phone-number-prefix {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  /* Taps and drags have to reach the input underneath. */
  pointer-events: none;
  z-index: 1;
}

.phone-number-prefix::before {
  content: "";
  width: 22px;
  height: 22px;
  background-image: var(--flag-icon);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.dynamic-field[hidden] {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.address-summary[hidden] {
  display: none;
}

.address-summary {
  margin: 8px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.address-summary-title {
  margin: 0 0 12px;
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.address-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-summary-item {
  margin: 0;
  display: grid;
  gap: 4px;
}

.address-summary-item span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.address-summary-item strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.address-summary-item-full {
  grid-column: 1 / -1;
}

.upload-field {
  margin-bottom: 20px;
}

.upload-grid {
  display: grid;
  gap: 12px;
}

.upload-item {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.upload-item-single {
  display: grid;
  gap: 10px;
}

.upload-item label {
  margin-bottom: 8px;
}

.upload-item input[type="file"] {
  min-height: 0;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.upload-item input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--brand-navy);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.upload-note {
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Store Payments requirement pack. The group heading is a <p>, not a <label>:
   it introduces five separate file inputs that each own their own label. */
.upload-group-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: var(--track-snug);
}

.upload-group-note {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.5;
}

.upload-group-note strong {
  color: var(--brand-navy);
}

/* Referral code verdict. Reserved as a block so a "Verifying..." line replacing
   "Valid code" cannot make the form jump on a phone. */
.referral-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
}

.referral-status[hidden] {
  display: none;
}

.referral-status::before {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  content: "…";
  background: var(--ink-faint);
}

.referral-status.is-checking {
  color: var(--ink-soft);
}

.referral-status.is-valid {
  color: var(--success);
}

.referral-status.is-valid::before {
  content: "✓";
  background: var(--success);
}

.referral-status.is-invalid {
  color: var(--danger);
}

.referral-status.is-invalid::before {
  content: "!";
  background: var(--danger);
}

.privacy-copy {
  margin: 22px 0 6px;
  color: var(--ink-soft);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.6;
}

.privacy-copy a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.privacy-copy a:hover,
.page-footer a:hover {
  color: var(--footer-hover);
  transition: ease-in 0.3s;
}

.checkbox-field {
  margin: 6px 0 24px;
}

.checkbox-option {
  position: relative;
  display: inline-flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-option input {
  position: absolute;
  opacity: 0;
}

.checkbox-option span {
  display: inline-block;
  position: relative;
  padding-left: 32px;
  margin-top: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.checkbox-option span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  line-height: 18px;
  text-align: center;
  font-size: 0.8rem;
}

.checkbox-option input:checked + span::before {
  content: "\2713";
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #ffffff;
}

.checkbox-option input:focus-visible + span::before {
  box-shadow: var(--focus-ring);
}

.submit-row {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.submit-row button[type="submit"] {
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 12px 34px;
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(33, 116, 229, 0.24);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-row button[type="submit"]:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-1px);
}

.submit-row button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.submit-row button[type="submit"]:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 3px;
}

.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.92rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(15, 122, 69, 0.1);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: rgba(179, 38, 30, 0.1);
  color: var(--danger);
}

.order-review-modal[hidden] {
  display: none;
}

/* Same scroll-safe pattern as the lightbox: the overlay is the outer scroll
   port, the dialog centres itself with auto margins that collapse when it is
   taller than the viewport. The dialog keeps its own `overflow: auto` because
   .order-review-actions is sticky inside it. */
.order-review-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(4, 8, 24, 0.82);
  backdrop-filter: blur(10px);
}

.order-review-dialog {
  position: relative;
  margin: auto;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f7fbff 0%, #ebf2ff 100%);
  color: #162153;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
  overflow: auto;
  overscroll-behavior: contain;
}

.order-review-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #162153;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.order-review-close:focus-visible,
.order-review-secondary:focus-visible,
.order-review-primary:focus-visible {
  outline: 2px solid #162153;
  outline-offset: 2px;
}

.order-review-header {
  display: grid;
  gap: 10px;
  padding-right: 120px;
}

.order-review-eyebrow {
  margin: 0;
  color: rgba(22, 33, 83, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-review-title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.08;
}

.order-review-copy {
  margin: 0;
  color: rgba(22, 33, 83, 0.8);
  font-size: 0.96rem;
  line-height: 1.6;
}

.order-review-layout {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.order-review-device {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(22, 33, 83, 0.1);
  border-radius: 24px;
  background: #ffffff;
}

.order-review-device-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.order-review-device-media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(17, 24, 39, 0.16));
}

.order-review-device-copy {
  display: grid;
  gap: 12px;
}

.order-review-device-eyebrow {
  margin: 0;
  color: rgba(22, 33, 83, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-review-device-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
}

.order-review-device-summary {
  margin: 0;
  color: rgba(22, 33, 83, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
}

.order-review-device-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-review-spec {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(22, 33, 83, 0.1);
  border-radius: 14px;
  background: rgba(236, 242, 255, 0.86);
}

.order-review-spec span,
.order-review-item span {
  color: rgba(22, 33, 83, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.order-review-spec strong,
.order-review-item strong {
  color: #162153;
  font-size: 0.94rem;
  line-height: 1.45;
  word-break: break-word;
}

.order-review-panels {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-review-panel {
  padding: 18px;
  border: 1px solid rgba(22, 33, 83, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
}

.order-review-panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.2;
}

.order-review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-review-item {
  margin: 0;
  display: grid;
  gap: 5px;
}

.order-review-item-full {
  grid-column: 1 / -1;
}

.order-review-note {
  margin: 18px 0 0;
  color: rgba(22, 33, 83, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}

.order-review-status {
  margin-top: 16px;
  color: #162153;
}

.order-review-status.is-success {
  background: rgba(22, 33, 83, 0.08);
  color: #162153;
}

.order-review-status.is-error {
  background: rgba(170, 35, 35, 0.16);
  color: #8c1010;
}

/* Sticky on every size, not just on phones. The sheet is long, so "Back and
   edit" / "Proceed to final order" have to stay reachable without scrolling to
   the end - the client's complaint was precisely that the sheet felt like a
   dead end. The negative margins let the bar bleed into the dialog's 28px
   padding so it spans the full width. */
.order-review-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin: 18px -28px -28px;
  padding: 14px 28px;
  background: rgba(247, 251, 255, 0.97);
  border-top: 1px solid rgba(22, 33, 83, 0.1);
  box-shadow: 0 -10px 20px rgba(22, 33, 83, 0.06);
}

.order-review-secondary,
.order-review-primary {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.order-review-secondary {
  border: 1px solid rgba(22, 33, 83, 0.16);
  background: #ffffff;
  color: #162153;
}

.order-review-primary {
  border: 0;
  background: #162153;
  color: #ffffff;
}

.order-review-secondary:disabled,
.order-review-primary:disabled,
.order-review-close:disabled {
  opacity: 0.55;
  cursor: wait;
}

body.order-review-open {
  overflow: hidden;
}

.confirmation-panel[hidden] {
  display: none;
}

.confirmation-panel {
  margin-top: 24px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f4f9ff 0%, #ecf3ff 100%);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.confirmation-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(15, 122, 69, 0.12);
  color: var(--success);
  font-size: 1.7rem;
  font-weight: 700;
}

.confirmation-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--brand-navy);
}

.confirmation-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.confirmation-copy + .confirmation-copy {
  margin-top: 8px;
}

.page-footer {
  padding: 22px 30px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink-faint);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-copy,
.footer-links {
  display: block;
}

.footer-links {
  word-break: break-word;
}

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

@media (max-width: 900px) {
  .main-container {
    align-items: flex-start;
    padding: 18px 12px 28px;
  }

  .site-topbar {
    padding: 12px 18px;
  }

  .card-content {
    padding: 20px 18px 26px;
  }

  .page-footer {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .main-container {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .main-card {
    border-radius: 20px;
  }

  .card-content {
    padding: 18px 14px 22px;
  }

  .intro-note {
    font-size: 0.78rem;
  }

  .form-field {
    margin-bottom: 14px;
  }

  .description,
  .upload-note,
  .privacy-copy,
  .page-footer {
    font-size: 0.72rem;
  }

  .submit-row button {
    width: 100%;
  }

  .confirmation-panel {
    padding: 22px 16px;
  }

  .confirmation-title {
    font-size: 1.2rem;
  }

  .address-summary {
    padding: 16px;
  }

  .address-summary-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    max-height: min(240px, 44vh);
  }

  .search-option {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .color-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .device-spotlight-frame {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .device-spotlight-media {
    min-height: 190px;
  }

  .device-spotlight-specs {
    grid-template-columns: 1fr;
  }

  .device-image-lightbox {
    padding: 14px;
  }

  .device-image-lightbox-dialog {
    padding: 54px 16px 18px;
    border-radius: 20px;
  }

  .device-image-lightbox-toolbar {
    align-items: start;
  }

  .device-image-lightbox-nav {
    width: 100%;
    justify-content: space-between;
  }

  .device-image-lightbox-step {
    flex: 1 1 0;
  }

  .device-image-lightbox img {
    max-height: calc(100vh - 150px);
  }

  .order-review-modal {
    align-items: flex-end;
    padding: 0;
  }

  .order-review-dialog {
    /* Bottom sheet: pinned to the bottom edge, but still `auto` on top so a
       sheet taller than the viewport starts at its own top rather than being
       pushed off-screen. */
    margin: auto 0 0;
    width: 100%;
    max-height: 100dvh;
    min-height: min(100dvh, 100svh);
    padding: 68px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    -webkit-overflow-scrolling: touch;
  }

  .order-review-header {
    padding-right: 0;
  }

  .order-review-title {
    font-size: 1.45rem;
  }

  .order-review-layout {
    gap: 14px;
    margin-top: 18px;
  }

  .order-review-device {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
  }

  .order-review-device-media {
    min-height: 190px;
  }

  .order-review-device-copy {
    gap: 10px;
  }

  .order-review-device-title {
    font-size: 1.2rem;
  }

  .order-review-device-summary {
    font-size: 0.9rem;
  }

  .order-review-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .order-review-panel h3 {
    margin-bottom: 12px;
  }

  .order-review-grid {
    gap: 12px;
  }

  .order-review-device-specs,
  .order-review-panels,
  .order-review-grid {
    grid-template-columns: 1fr;
  }

  .order-review-item-full {
    grid-column: auto;
  }

  .order-review-actions {
    position: sticky;
    bottom: calc(-18px - env(safe-area-inset-bottom));
    justify-content: stretch;
    margin: 18px -18px calc(-18px - env(safe-area-inset-bottom));
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: rgba(247, 251, 255, 0.97);
    border-top: 1px solid rgba(22, 33, 83, 0.1);
    box-shadow: 0 -10px 20px rgba(22, 33, 83, 0.08);
    backdrop-filter: blur(10px);
  }

  .order-review-secondary,
  .order-review-primary {
    width: 100%;
    min-height: 50px;
  }

  .order-review-close {
    top: max(12px, env(safe-area-inset-top));
    right: 16px;
    left: auto;
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .main-card {
    border-radius: 18px;
  }

  .card-content {
    padding: 16px 14px 18px;
  }

  .phone-number-prefix {
    left: 8px;
    gap: 5px;
  }

  .phone-number-control {
    --field-pad-left: 64px;
  }

  .upload-item input[type="file"]::file-selector-button {
    display: block;
    margin: 0 0 8px;
    width: fit-content;
  }

  .order-review-dialog {
    padding: 66px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .order-review-close {
    top: max(10px, env(safe-area-inset-top));
    right: 14px;
    left: auto;
    max-width: calc(100% - 28px);
  }

  .order-review-title {
    font-size: 1.3rem;
  }

  .order-review-actions {
    margin-inline: -14px;
    margin-bottom: calc(-16px - env(safe-area-inset-bottom));
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }
}

/* =========================================================================
   Globe-style builder UI: hero, step progress, device cards, plan tiles,
   sticky order summary. Everything below drives the same form controls that
   already existed; the selects remain the source of truth.
   ========================================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: center;
  padding: 34px 30px;
  background:
    radial-gradient(620px 280px at 92% 6%, rgba(64, 130, 255, 0.45), transparent 62%),
    radial-gradient(520px 320px at 4% 96%, rgba(15, 63, 181, 0.55), transparent 60%),
    linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #ffffff;
}

/* Vignette. The two radial glows brighten the corners, which makes the white
   headline float; darkening the extreme edges again puts the weight back in the
   middle where the copy sits. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 120% at 50% 40%, transparent 42%, rgba(3, 9, 30, 0.42) 100%);
  pointer-events: none;
}

/* Gold hairline closing the hero, mirroring the one on the top of the sheet. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(199, 168, 105, 0) 0%,
    rgba(199, 168, 105, 0.75) 30%,
    var(--gold-bright) 50%,
    rgba(199, 168, 105, 0.75) 70%,
    rgba(199, 168, 105, 0) 100%
  );
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.hero-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: var(--track-tight);
  /* Device names are long and unpredictable, so the browser is left to even out
     the line lengths rather than leaving one orphaned word. */
  text-wrap: balance;
}
.hero-subtitle {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  text-wrap: pretty;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chip {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
}

/* The one primary action on the dark band. The gold is carried as a 1px ring
   rather than as fill, so the button stays a white pill (highest possible
   contrast for the label) and the metal only shows at the edge. */
.hero-cta {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%);
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: var(--track-snug);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-mid) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  box-shadow:
    0 0 0 1px rgba(199, 168, 105, 0.75),
    0 12px 26px rgba(4, 12, 38, 0.32);
}
.hero-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  box-shadow:
    0 0 0 1px var(--gold),
    0 16px 32px rgba(4, 12, 38, 0.38);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px var(--gold),
    0 6px 14px rgba(4, 12, 38, 0.3);
}

.hero-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--brand-navy),
    0 0 0 5px rgba(255, 255, 255, 0.9);
}

.hero-actions-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-ribbon[hidden] {
  display: none;
}

.hero-ribbon-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffd166;
  color: #4a3403;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stage {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stage img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: normal;
  border-radius: 18px;
  background: #ffffff;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.hero-stage img:not([src]),
.hero-stage img[src=""] {
  opacity: 0;
}

.hero-stage.is-empty {
  background: rgba(255, 255, 255, 0.05);
  border-style: dashed;
}

.hero-stage.is-empty::after {
  content: "Pick a device to preview it here";
  max-width: 60%;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  text-align: center;
}

.hero-price {
  display: grid;
  gap: 2px;
  width: min(100%, 320px);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-price[hidden] {
  display: none;
}
.hero-price-name {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-price-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.hero-price-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

/* The headline figure of the whole page. Gold is legible here (6.8:1 on the
   hero navy) and tabular figures stop the amount from jittering as the client
   switches devices. */
.hero-price-amount strong {
  color: var(--gold);
  font-size: 1.22rem;
  letter-spacing: var(--track-snug);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---- step progress -------------------------------------------------- */

.builder-progress {
  margin: 0 0 22px;
}

.builder-progress-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.builder-progress-item {
  position: relative;
  display: flex;
}

/* Connector. A hairline drawn in the grid gap joining each step box to the one
   before it, filling with Globe blue as soon as that step has been reached - so
   the four buttons read as one continuous rail with a progress track rather than
   as four unrelated tabs. Hidden below 901px, where the rail wraps to two
   columns and a connector would dangle off the start of the second row. */
.builder-progress-item + .builder-progress-item::before {
  content: "";
  position: absolute;
  left: calc(var(--space-3) * -1);
  top: 50%;
  width: var(--space-3);
  height: 2px;
  transform: translateY(-50%);
  background: var(--line);
  transition: background var(--dur-mid) var(--ease-out);
}

.builder-progress-item:has(.is-active)::before,
.builder-progress-item:has(.is-done)::before {
  background: var(--brand-blue);
}

.builder-progress-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-faint);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--track-snug);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.builder-progress-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
}

.builder-progress-button:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}

.builder-progress-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition:
    background var(--dur-mid) var(--ease-out),
    color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}
.builder-progress-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The step the client is on is the only lifted node on the rail. */
.builder-progress-button.is-active {
  border-color: var(--brand-blue);
  background: var(--surface);
  color: var(--brand-navy);
  box-shadow: var(--edge-top), 0 0 0 1px var(--brand-blue), var(--shadow-lift);
}

.builder-progress-button.is-active .builder-progress-index {
  background: linear-gradient(150deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(33, 116, 229, 0.16);
}

.builder-progress-button.is-done {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.builder-progress-button.is-done .builder-progress-index {
  background: var(--success);
  color: #ffffff;
}

/* ---- step sections -------------------------------------------------- */

.builder-step {
  display: block;
  order: 9;
}

.builder-step[hidden] {
  display: none;
}

.builder-step[data-step="1"] { order: 1; }
.builder-step[data-step="2"] { order: 2; }
.builder-step[data-step="3"] { order: 3; }
.builder-step[data-step="4"] { order: 4; }
.builder-step-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.builder-step-kicker {
  margin: 0 0 6px;
  color: var(--brand-blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.builder-step-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.builder-step-copy {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.builder-step-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.builder-step-nav .step-next,
.builder-step-nav .step-back {
  min-height: 48px;
}
.step-next {
  margin-left: auto;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: var(--track-snug);
  cursor: pointer;
  /* Inner top highlight plus a coloured ambient shadow: the button looks like a
     lit surface rather than a flat blue capsule. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(33, 116, 229, 0.24);
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-mid) var(--ease-out);
}

.step-next:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 30px rgba(33, 116, 229, 0.34);
}

.step-next:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 12px rgba(33, 116, 229, 0.28);
}

.step-next:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 10px 22px rgba(33, 116, 229, 0.24);
}

.step-back {
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.step-back:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
}

.step-back:active {
  transform: translateY(1px);
}

.step-back:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}
.submit-row .step-back {
  min-height: 52px;
  margin-right: auto;
}

/* ---- device picker -------------------------------------------------- */

.device-picker {
  margin-bottom: 20px;
}

.brand-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.brand-chip {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.brand-chip:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
}

.brand-chip:active {
  transform: scale(0.98);
}

.brand-chip:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}

.brand-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--brand-navy);
  color: #ffffff;
}
.brand-chip-count {
  margin-left: 6px;
  opacity: 0.7;
  font-size: 0.74rem;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.device-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring);
}

.device-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.device-card:active {
  transform: translateY(-1px);
}

.device-card:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}

/* Two rings rather than one: the inner blue ring reads as the selection, the
   outer tint separates it from the cards beside it at a glance. */
.device-card.is-selected {
  border-color: var(--brand-blue);
  box-shadow:
    0 0 0 1px var(--brand-blue),
    0 0 0 5px rgba(33, 116, 229, 0.14),
    var(--shadow-lift);
}

.device-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, #f7faff 0%, var(--brand-blue-soft) 100%);
  overflow: hidden;
}

.device-card-media img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.device-card-media.is-empty::after {
  content: "No photo";
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.device-card-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.device-card-plan {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.device-card-price {
  margin: 0;
  color: var(--brand-navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: var(--track-snug);
  font-variant-numeric: tabular-nums;
}

.device-card-price span {
  display: block;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}
.device-card-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffd166;
  color: #4a3403;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-grid-empty {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-align: center;
}

.device-grid-empty[hidden] {
  display: none;
}

/* ---- plan tiles ----------------------------------------------------- */

.plan-picker {
  margin: 4px 0 18px;
}

.plan-picker-head {
  margin-bottom: 12px;
}

.plan-picker-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.plan-picker-note {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.plan-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.plan-tile {
  display: grid;
  gap: 8px;
  padding: 14px 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.plan-tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.plan-tile:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}

/* The bundled plan is the only tile that survives once a device is picked, so it
   is treated as the hero of the step: gold edge, gold price, lifted. */
.plan-tile.is-selected {
  border-color: var(--gold);
  background: linear-gradient(150deg, #ffffff 0%, var(--brand-blue-soft) 100%);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 0 5px rgba(199, 168, 105, 0.16),
    var(--shadow-lift);
}

.plan-tile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plan-tile-price {
  margin: 0;
  color: var(--brand-navy);
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-tile-list {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.plan-tile-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.plan-tile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  transform: rotate(-45deg);
}

.plan-tile-lock {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.plan-tile:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.plan-tile:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}
/* ---- sticky order summary ------------------------------------------- */

.order-summary-bar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 24px), 1120px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--edge-top), var(--shadow-float);
  backdrop-filter: blur(14px) saturate(140%);
}

.order-summary-bar[hidden] {
  display: none;
}

.order-summary-media {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(150deg, #f7faff 0%, var(--brand-blue-soft) 100%);
  overflow: hidden;
}

.order-summary-media img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.order-summary-copy {
  min-width: 0;
}
.order-summary-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}

.order-summary-meta {
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.order-summary-price {
  display: grid;
  justify-items: flex-end;
  padding-right: 4px;
  text-align: right;
}

.order-summary-price span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.order-summary-price strong {
  color: var(--brand-navy);
  font-size: 1.06rem;
  letter-spacing: var(--track-snug);
  font-variant-numeric: tabular-nums;
}

.order-summary-cta {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.order-summary-cta:hover {
  box-shadow: 0 10px 20px rgba(33, 116, 229, 0.26);
}

.order-summary-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

body.has-summary-bar .page-footer {
  padding-bottom: 92px;
}

/* ---- responsive ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 18px;
    text-align: left;
  }

  .hero-media {
    justify-items: start;
  }

  .hero-stage,
  .hero-price {
    width: min(100%, 280px);
  }

  .builder-progress-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Two columns means the rail wraps, so the connector would hang off the left
     edge of the second row instead of joining anything. */
  .builder-progress-item + .builder-progress-item::before {
    display: none;
  }

  .device-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 22px 16px 24px;
  }

  .hero-chip {
    font-size: 0.72rem;
  }

  .hero-cta,
  .step-next,
  .step-back {
    width: 100%;
  }

  .builder-step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step-next {
    margin-left: 0;
  }

  .submit-row .step-back {
    margin-right: 0;
  }

  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-card-name {
    font-size: 0.82rem;
  }

  .plan-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .order-summary-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    row-gap: 10px;
  }

  .order-summary-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Two-row pill: the scroll-padding that matches it lives with the other
     html rules further down, where it can actually win the cascade. */
  body.has-summary-bar .page-footer {
    padding-bottom: 132px;
  }

  .builder-progress-label {
    font-size: 0.76rem;
  }

  /* 40px missed the 44px touch-target floor, and the swatches are the fastest
     way to answer "Preferred Color" on a phone. */
  .color-chip {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Nothing in the premium pass is load-bearing, so all of it is dropped rather
     than shortened - motion sickness is not a matter of degree. */
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-cta,
  .step-next,
  .device-card,
  .plan-tile,
  .hero-stage img {
    transition: none;
  }

  .hero-cta:hover,
  .step-next:hover,
  .device-card:hover,
  .plan-tile:hover,
  .promo-popup-cta:hover {
    transform: none;
  }

  .main-card,
  .promo-popup-dialog,
  .device-card {
    animation: none;
  }
}

/* ---- Globe promo banner --------------------------------------------- */

.promo-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  /* Light blue, so any sub-pixel rounding gap under the artwork reads as part
     of the theme rather than as a stray band. */
  background: var(--brand-sky);
  color: inherit;
  text-decoration: none;
}

.promo-banner-image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.promo-banner:hover .promo-banner-image {
  transform: scale(1.014);
}

.promo-banner-action {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 31, 92, 0.28);
}

.promo-banner:hover .promo-banner-action {
  background: var(--brand-blue);
}

.promo-banner:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--brand-blue);
}

/* ---- ALL-NEW G PLAN PLUS badge --------------------------------------- */

.plan-badge {
  position: relative;
  display: inline-flex;
  padding-top: 10px;
  pointer-events: none;
}

.plan-badge-new {
  position: absolute;
  top: 0;
  left: 3px;
  z-index: 2;
  padding: 2px 8px;
  transform: rotate(-11deg);
  border-radius: 6px;
  background: linear-gradient(135deg, #cf94f4 0%, #a468ea 100%);
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-badge-body {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 9px;
  border-radius: 16px 16px 26px 16px;
  background: linear-gradient(155deg, #22349b 0%, #0e1a5e 100%);
}

.plan-badge-g {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #4f8dff 0%, #2f6bf0 46%, #1d3fbe 100%);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  /* The glyph sits slightly high in the circle on the real badge. */
  padding-bottom: 3px;
}

.plan-badge-stack {
  display: grid;
  gap: 2px;
  justify-items: stretch;
}

.plan-badge-plan {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.plan-badge-plus {
  padding: 2px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #d9a8f7 0%, #b487f0 100%);
  color: #2b1663;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-indent: 0.2em;
}

.plan-badge-amount {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-align: center;
}

/* ---- plan tiles, Globe banner style ---------------------------------- */

.plan-tiles {
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.plan-tile {
  gap: 10px;
  padding: 16px 16px 18px;
}

.plan-tile-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.plan-tile-price span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.plan-tile-term {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 600;
}

.plan-tile-cashout {
  margin: 0;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface-sunken);
  color: var(--brand-navy);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.plan-tile-freebies {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--globe-blue-mist);
  border-radius: 12px;
  background: var(--brand-blue-soft);
}

.plan-tile-freebies-title {
  margin: 0;
  color: var(--brand-blue-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-tile-freebie-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-tile-freebie {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.plan-tile-freebie img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ffffff;
}

.plan-picker-foot {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* ---- GPlan Plus footer banner ---------------------------------------- */
/* The supplied artwork is a wide strip with the character on the left and a
   large empty navy field on the right. Only the character half is exported
   (assets/gplan-hero-art.jpg); the marketing copy is real HTML text over a
   panel painted the artwork's own #1e2d80, so it stays readable at any width,
   is selectable, and is visible to search engines. */

.gplan-promo {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 250px;
  margin: 26px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 88% 8%, rgba(33, 116, 229, 0.28), transparent 68%),
    var(--globe-navy-field);
  color: #ffffff;
}

.gplan-promo-art {
  display: block;
  position: relative;
  min-height: 100%;
}

.gplan-promo-art img {
  display: block;
  width: 100%;
  height: 100%;
  /* cover, so the artwork's own top and bottom edges are cropped away by the
     panel edge instead of being cut mid-building against flat navy. */
  object-fit: cover;
  object-position: 36% center;
  /* Dissolves the right edge into the panel whatever the crop turns out to be.
     Without mask support the fallback is a faint vertical edge, nothing worse. */
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 100%);
  mask-image: linear-gradient(to right, #000 58%, transparent 100%);
}

.gplan-promo-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 26px 30px 26px 6px;
}

.gplan-promo-badge {
  padding-top: 10px;
}

.gplan-promo-title {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.gplan-promo-text {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gplan-promo-note {
  margin: 0;
  max-width: 46ch;
  color: var(--globe-blue-mist);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ---- phone and tablet ------------------------------------------------- */
/* Most applications arrive from a phone or tablet, so the touch layout is
   treated as the primary one rather than a fallback. */

html {
  /* Both ends matter for the builder's programmatic scrolls: the pill is fixed
     over the bottom of the viewport, and landing a picker flush against the top
     edge reads as if the page were cut off. The bottom value is the two-row
     phone pill (52px media + 44px CTA + padding + its 16px inset), not a guess -
     see the 560px override below. */
  scroll-padding-top: 18px;
  scroll-padding-bottom: 140px;
}

/* This override has to live after the base rule, not up in the 560px block
   further above: a media query adds no specificity, so the later declaration
   would win and the pill would keep covering whatever was revealed.
   Two-row phone pill: 52px media row + 10px gap + 44px CTA + 20px padding + its
   16px bottom inset, rounded up. */
@media (max-width: 560px) {
  html {
    scroll-padding-bottom: 168px;
  }
}

/* The builder scrolls here on its own (device picked, Continue blocked), so the
   target announces itself instead of leaving the visitor to work out why the
   page moved. */
.is-attention {
  /* Outline rather than box-shadow, and no radius of its own: the ring then
     follows whatever corner the target already has (.form-field has none, the
     plan picker has its panel radius) instead of restyling it for 1.6s. */
  animation: reveal-attention 1.6s ease-out both;
}

@keyframes reveal-attention {
  0% {
    outline: 2px solid rgba(33, 116, 229, 0);
    outline-offset: 12px;
  }
  18%,
  62% {
    outline: 2px solid rgba(33, 116, 229, 0.9);
    outline-offset: 6px;
  }
  100% {
    outline: 2px solid rgba(33, 116, 229, 0);
    outline-offset: 6px;
  }
}

.form-field.has-error.is-attention {
  animation-name: reveal-attention-error;
}

@keyframes reveal-attention-error {
  0% {
    outline: 2px solid rgba(179, 38, 30, 0);
    outline-offset: 12px;
  }
  18%,
  62% {
    outline: 2px solid rgba(179, 38, 30, 0.9);
    outline-offset: 6px;
  }
  100% {
    outline: 2px solid rgba(179, 38, 30, 0);
    outline-offset: 6px;
  }
}

body {
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .promo-banner-action {
    right: 14px;
    bottom: 12px;
    min-height: 38px;
    padding: 0 15px;
    font-size: 0.78rem;
  }

  .plan-tiles {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .device-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gplan-promo {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    min-height: 216px;
  }

  .gplan-promo-copy {
    padding: 22px 22px 22px 4px;
  }

  .gplan-promo-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 700px) {
  .promo-banner-action {
    right: 50%;
    bottom: 14px;
    transform: translateX(50%);
    min-height: 44px;
    padding: 0 20px;
  }

  .plan-badge-body {
    padding: 8px 12px 8px 8px;
  }

  .plan-tile-price {
    font-size: 1.34rem;
  }

  /* One column: the art sits on top and fades downwards into the panel, since
     at this width its bottom edge would otherwise cut mid-building. */
  .gplan-promo {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .gplan-promo-art {
    height: 178px;
    min-height: 0;
  }

  .gplan-promo-art img {
    object-position: 50% 42%;
    -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
  }

  .gplan-promo-copy {
    justify-items: start;
    gap: 9px;
    /* Pulls the copy up into the faded tail of the artwork. */
    margin-top: -34px;
    padding: 0 20px 24px;
  }

  .gplan-promo-title {
    font-size: 1.12rem;
  }

  .gplan-promo-text,
  .gplan-promo-note {
    max-width: none;
  }
}

@media (hover: none) {
  /* Touch devices latch :hover after a tap, which left cards lifted and the
     banner permanently zoomed. */
  .promo-banner:hover .promo-banner-image,
  .device-card:hover,
  .plan-tile:hover,
  .hero-cta:hover,
  .step-next:hover,
  .promo-popup-cta:hover {
    transform: none;
  }

  .promo-banner:hover .promo-banner-action {
    background: var(--brand-navy);
  }
}

@media (pointer: coarse) {
  /* 44px is the smallest reliable touch target. */
  .brand-chip,
  .builder-progress-button,
  .step-next,
  .step-back,
  .hero-cta,
  .order-summary-cta,
  .device-card,
  .plan-tile,
  .promo-popup-cta,
  .promo-popup-dismiss,
  .promo-popup-close {
    min-height: 44px;
  }

  .promo-popup-close {
    width: 44px;
  }

  .page-footer a,
  .device-spotlight-link,
  .color-swatch {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .plan-badge-g {
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .plan-tile-freebie img {
    width: 28px;
    height: 28px;
  }
}

/* ---- mobile browser chrome ------------------------------------------------ */
/* On phones 100vh is the viewport WITHOUT the address bar, so a dialog sized
   against it hangs below the fold and its bottom controls become unreachable.
   dvh tracks the visible area instead; the vh rules above stay as the fallback. */
@supports (height: 100dvh) {
  .device-image-lightbox-dialog,
  .order-review-dialog {
    max-height: calc(100dvh - 48px);
  }

  .device-image-lightbox img {
    max-height: calc(100dvh - 180px);
  }
}

@media (max-width: 700px) {
  @supports (height: 100dvh) {
    .device-image-lightbox img {
      max-height: calc(100dvh - 150px);
    }
  }
}

/* ---- pre-order promotion pop-up -------------------------------------------
   Traced from the Globe Business x Samsung card the client supplied: a white
   upper half carrying the brand row, the device and its name, then a saturated
   panel that runs from Globe blue into champagne gold and holds the plan
   lockup, the inclusions and a gold action strip. The release date gets its own
   highlighted band because that is the single fact a pre-order client asks for
   first - the unit is not in their hands on the day they pay.
   -------------------------------------------------------------------------- */

.promo-popup {
  position: fixed;
  inset: 0;
  /* Above the review sheet (1300) so the Escape handler's "dismiss the
     promotion first" ordering matches the paint order. */
  z-index: 1400;
  display: flex;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(4, 12, 38, 0.66);
  backdrop-filter: blur(7px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.promo-popup[hidden] {
  display: none;
}

.promo-popup-dialog {
  position: relative;
  margin: auto;
  width: min(100%, 470px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--edge-top), var(--shadow-float);
  animation: promo-popup-in var(--dur-slow) var(--ease-out) both;
}

@keyframes promo-popup-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.promo-popup-close:hover {
  background: var(--surface-muted);
  color: var(--brand-navy);
}

.promo-popup-close:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}

.promo-popup-top {
  padding: var(--space-5) var(--space-5) var(--space-4);
  text-align: center;
}

.promo-popup-brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.promo-popup-logo {
  display: block;
  width: 109px;
  height: auto;
}

.promo-popup-brand-name {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--track-snug);
}

/* The reference photographs the handset against a near-white studio wall; a
   pale blue wash keeps that airy feel while staying inside the palette. */
.promo-popup-stage {
  display: grid;
  place-items: center;
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 70% at 50% 35%, #ffffff 0%, var(--brand-blue-soft) 60%, var(--brand-sky) 100%);
}

.promo-popup-image {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.promo-popup-eyebrow {
  margin: 0;
  color: var(--brand-blue);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--track-snug);
}

.promo-popup-title {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 1rem + 1.6vw, 1.62rem);
  line-height: 1.14;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

.promo-popup-subtitle {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* THE highlight. Champagne gold band, navy type - 9.9:1 against the lighter end
   of the gradient and 6.8:1 against the darker one, so the date is the most
   legible thing in the pop-up, which is the point. */
.promo-popup-release {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--brand-navy);
  box-shadow: 0 6px 16px rgba(154, 125, 63, 0.34);
}

.promo-popup-release[hidden] {
  display: none;
}

.promo-popup-release-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.promo-popup-release-date {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: var(--track-snug);
  font-variant-numeric: tabular-nums;
}

/* The lower half of the reference card: a wash that travels from Globe blue
   into the same champagne gold as the action strip below it. */
.promo-popup-panel {
  padding: var(--space-5);
  border-radius: 26px 26px 24px 24px;
  background: linear-gradient(
    118deg,
    var(--globe-blue-deep) 0%,
    var(--brand-blue) 40%,
    #8fa2c9 68%,
    var(--gold-bright) 100%
  );
  color: #ffffff;
}

.promo-popup-headline {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.1rem, 0.95rem + 1vw, 1.34rem);
  line-height: 1.18;
  letter-spacing: var(--track-tight);
  text-shadow: 0 1px 10px rgba(4, 12, 38, 0.4);
  text-wrap: balance;
}

.promo-popup-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* White plate carrying the GPlan Biz lockup, exactly as the reference does it. */
.promo-popup-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(4, 12, 38, 0.24);
}

.promo-popup-plan-g {
  color: var(--brand-blue-dark);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: var(--track-tight);
}

.promo-popup-plan-stack {
  display: grid;
  gap: 1px;
}

.promo-popup-plan-word {
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.promo-popup-plan-number {
  color: var(--brand-blue);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.promo-popup-cashout {
  margin: 0;
  font-size: var(--text-sm);
}

.promo-popup-cashout strong {
  display: block;
  font-size: 1.16rem;
  letter-spacing: var(--track-snug);
  font-variant-numeric: tabular-nums;
}

.promo-popup-cashout span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
}

/* Deep blue plate for the inclusions, so the list stays readable where the
   gradient behind it has already turned gold. */
.promo-popup-inclusions {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(11, 31, 92, 0.82);
  list-style: none;
}

.promo-popup-inclusions li {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}

.promo-popup-inclusions li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: rotate(-45deg);
}

.promo-popup-lineup-label {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.promo-popup-lineup {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promo-popup-lineup li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-3);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(11, 31, 92, 0.6);
  font-size: var(--text-sm);
}

.promo-popup-lineup-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.promo-popup-lineup-price {
  color: var(--gold-bright);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The gold action strip that closes the reference card. */
.promo-popup-cta {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: var(--space-4) 0 0;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-bright) 100%);
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: var(--track-snug);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 24px rgba(4, 12, 38, 0.3);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-mid) var(--ease-out);
}

.promo-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 30px rgba(4, 12, 38, 0.36);
}

.promo-popup-cta:active {
  transform: translateY(0);
}

.promo-popup-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-navy), 0 0 0 5px rgba(255, 255, 255, 0.85);
}

.promo-popup-dismiss {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: var(--space-2) 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.promo-popup-dismiss:hover {
  color: var(--brand-navy);
}

.promo-popup-dismiss:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.promo-popup-terms {
  margin: var(--space-3) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  line-height: 1.4;
}

body.promo-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .promo-popup {
    padding: var(--space-2);
    align-items: flex-start;
  }

  .promo-popup-dialog {
    /* Auto block margins would re-centre it; on a short phone viewport the
       promotion should start at the top and scroll down. */
    margin: 0 auto auto;
    border-radius: 20px;
  }

  .promo-popup-top,
  .promo-popup-panel {
    padding: var(--space-4);
  }

  .promo-popup-panel {
    border-radius: 20px 20px 18px 18px;
  }

  .promo-popup-image {
    max-width: 168px;
  }

  /* The plan plate and the cash-out figure stop fitting side by side well
     before 360px, so they stack rather than squeeze. */
  .promo-popup-offer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@supports (height: 100dvh) {
  .promo-popup-dialog {
    max-height: calc(100dvh - 32px);
  }
}

/* ---- global craft ---------------------------------------------------------
   The last layer of the premium pass: things that apply everywhere rather than
   to one component. Kept at the end of the file so they are easy to audit as a
   set, and deliberately small - each one is a detail a client notices without
   being able to name it.
   -------------------------------------------------------------------------- */

::selection {
  background: rgba(33, 116, 229, 0.22);
  color: var(--brand-navy);
}

/* Backstop focus ring. Every interactive element already carries its own, but
   anything added later is visibly focusable by default instead of silently
   losing its outline to a reset. */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Body copy is left to the browser to avoid orphans; headings are balanced. */
.builder-step-copy,
.plan-picker-note,
.field-hint {
  text-wrap: pretty;
}

.builder-step-title,
.plan-picker-title,
.order-review-title {
  text-wrap: balance;
  letter-spacing: var(--track-tight);
}

/* The sheet fades in once, on load. It animates OPACITY ONLY, on purpose: a
   transform here — even one whose last keyframe is `transform: none` — makes
   .main-card the containing block for fixed descendants while the animation
   fill is in effect, which is what left the review-order sheet centred inside
   the card's full height and impossible to scroll. Overlays now live at body
   level too, so this is the second of two independent guards. */
@keyframes sheet-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.main-card {
  animation: sheet-in var(--dur-slow) var(--ease-out) both;
}

/* Device cards arrive in a short cascade instead of all at once. The delay is
   keyed off nth-child rather than a JS-set custom property so the grid can be
   re-rendered by the brand filter without the controller knowing about it. */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.device-card {
  animation: card-in var(--dur-mid) var(--ease-out) both;
}

.device-card:nth-child(2) { animation-delay: 24ms; }
.device-card:nth-child(3) { animation-delay: 48ms; }
.device-card:nth-child(4) { animation-delay: 72ms; }
.device-card:nth-child(5) { animation-delay: 96ms; }
.device-card:nth-child(6) { animation-delay: 120ms; }
.device-card:nth-child(7) { animation-delay: 144ms; }
.device-card:nth-child(8) { animation-delay: 168ms; }
