/* ==========================================================================
   Hold Dear · Route — storefront design system
   Shared by index.html, order.html, and policies.html.
   Palette and voice per apps/hold-dear/brand/brand.md: warm, premium,
   personal, calm. Editorial spacing, soft radii, warm low shadows.
   ========================================================================== */

:root {
  color-scheme: light;

  /* -- Brand tokens ------------------------------------------------------ */
  --ivory: #F7F3EC;
  --cream: #FBF8F3;
  --charcoal: #26241F;
  --ink: #3A362E;
  --terracotta: #C96F4A;
  --terracotta-deep: #B05C3B;
  --sage: #A8B39A;
  --stone: #D8D2C6;
  --gold: #C9A96A;

  /* Derived tones (kept AA-safe on ivory/cream) */
  --muted: #6B6355;
  --faint: #8A8172;
  --accent-text: #9A4E31;
  --danger: #A23C2C;
  --line: #E9E2D4;
  --line-strong: var(--stone);
  --paper: #FFFEFA;

  /* -- Depth ------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(38, 36, 31, 0.06);
  --shadow-sm: 0 2px 6px -2px rgba(38, 36, 31, 0.08), 0 12px 28px -20px rgba(38, 36, 31, 0.18);
  --shadow: 0 2px 8px -4px rgba(38, 36, 31, 0.08), 0 24px 48px -28px rgba(38, 36, 31, 0.26);
  --shadow-lift: 0 3px 10px -4px rgba(38, 36, 31, 0.1), 0 36px 72px -32px rgba(38, 36, 31, 0.32);

  /* -- Shape ------------------------------------------------------------- */
  --r-xs: 10px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;

  /* -- Type -------------------------------------------------------------- */
  --font-sans: "Inter", "Noto Sans Thai", "Helvetica Neue", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;

  --fs-hero: clamp(2.7rem, 6.4vw, 4.75rem);
  --fs-h2: clamp(1.85rem, 3.8vw, 2.85rem);
  --fs-h3: clamp(1.18rem, 1.6vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.28rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.78rem;

  font-family: var(--font-sans);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(201, 111, 74, 0.22);
  color: var(--charcoal);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  max-width: 13ch;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--charcoal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-text);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
}

.lead {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 44px);
}

.band {
  padding-block: clamp(64px, 9vw, 120px);
}

.band.tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.section-heading {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.section-heading.left {
  justify-items: start;
  text-align: left;
  margin-inline: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  min-height: 74px;
  padding: 12px clamp(20px, 4.5vw, 44px);
  background: rgba(247, 243, 236, 0.85);
  border-bottom: 1px solid rgba(38, 36, 31, 0.08);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}

.brand-lockup {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--charcoal);
  background: linear-gradient(155deg, var(--paper), #F1E8D9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-lockup strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.brand-lockup small {
  display: block;
  margin-top: 4px;
  color: var(--accent-text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 26px);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--terracotta-deep);
  transition: right 0.22s ease;
}

.nav-links a:hover {
  color: var(--charcoal);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.language-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.language-field select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-small);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* ==========================================================================
   Buttons and fields
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--charcoal);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: linear-gradient(165deg, var(--terracotta-deep) 0%, var(--accent-text) 100%);
  border-color: transparent;
  color: #FFFDF8;
  box-shadow: 0 14px 28px -14px rgba(176, 92, 59, 0.65);
}

.button.primary:hover {
  box-shadow: 0 20px 38px -16px rgba(176, 92, 59, 0.72);
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 254, 250, 0.6);
}

.button.wide {
  width: 100%;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
  resize: vertical;
  min-height: 88px;
}

.input:focus,
.select:focus,
.textarea:focus,
.language-field select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 111, 74, 0.18);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--ink);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88vh, 880px);
  padding-block: clamp(52px, 7vw, 96px);
  /* Fallback first: the original hero render always ships with the app. */
  background: var(--ivory) url("../assets/route-shop-hero.png") center right / cover no-repeat;
  /* Primary: atelier photograph under an ivory veil; if the photograph is
     missing, the layer below (the original render) still holds the scene. */
  background:
    linear-gradient(100deg, rgba(247, 243, 236, 0.97) 0%, rgba(247, 243, 236, 0.9) 38%, rgba(247, 243, 236, 0.55) 62%, rgba(247, 243, 236, 0.18) 100%),
    url("../assets/hero-atelier.jpg") center right / cover no-repeat,
    url("../assets/route-shop-hero.png") center right / cover no-repeat,
    var(--ivory);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(247, 243, 236, 0), var(--ivory));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  max-width: 640px;
  justify-items: start;
}

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

.promise-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 640px;
  margin-top: 10px;
}

.promise-list div {
  border-top: 2px solid rgba(201, 111, 74, 0.35);
  padding-top: 14px;
}

.promise-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--charcoal);
}

.promise-list dd {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* -- Product stage (kept from v0.1, refined) ------------------------------ */

.product-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 6% -3% 14% 16%;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.45), rgba(255, 254, 250, 0.08)),
    url("../assets/route-packaging.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.route-object {
  position: relative;
  z-index: 1;
  width: min(392px, 82vw);
  aspect-ratio: 0.78;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 26px;
  border-radius: var(--r);
  background: linear-gradient(150deg, #FFFBF2, #ECE2D1);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.4deg);
}

.route-map {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(201, 111, 74, 0.2), transparent 20%),
    radial-gradient(circle at 78% 70%, rgba(168, 179, 154, 0.24), transparent 22%),
    linear-gradient(150deg, #F6ECDC, #DDD5C6);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), inset 0 -12px 30px rgba(96, 70, 46, 0.08);
}

.route-map::before {
  content: "";
  position: absolute;
  inset: 13% 16%;
  border: 9px solid var(--terracotta);
  border-right-color: transparent;
  border-bottom-color: var(--terracotta-deep);
  border-radius: 42% 58% 44% 56% / 55% 38% 62% 45%;
  transform: rotate(-18deg);
  filter: drop-shadow(0 8px 12px rgba(96, 70, 46, 0.22));
}

.route-map::after {
  content: "";
  position: absolute;
  inset: 19% 22%;
  border: 2px dashed rgba(96, 70, 46, 0.16);
  border-radius: 50%;
}

.route-pin {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--charcoal);
  border: 3px solid #FFFDF8;
  box-shadow: 0 8px 16px rgba(96, 70, 46, 0.3);
}

.route-pin.start {
  left: 25%;
  top: 25%;
}

.route-pin.finish {
  right: 24%;
  bottom: 24%;
  background: var(--terracotta-deep);
}

.plaque {
  padding-top: 18px;
  display: grid;
  gap: 4px;
  text-align: center;
}

.plaque strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--charcoal);
}

.plaque span {
  color: var(--muted);
  font-size: var(--fs-tiny);
  letter-spacing: 0.05em;
}

.stage-note {
  position: absolute;
  right: -2%;
  bottom: 0;
  max-width: 250px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 254, 250, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: var(--fs-tiny);
  line-height: 1.55;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Trust band
   ========================================================================== */

.trust-band {
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.trust-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.trust-item .trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  background: rgba(201, 111, 74, 0.1);
  border: 1px solid rgba(201, 111, 74, 0.22);
}

.trust-item .trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
}

.trust-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ==========================================================================
   Hero products
   ========================================================================== */

.hero-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
}

.product-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.24s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* Warm placeholder gradient: the card keeps its shape and mood even if a
     photograph has not landed yet. */
  background: linear-gradient(155deg, #F0E6D6 0%, #E6D8C3 55%, #DCCBB2 100%);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
}

.product-kicker {
  color: var(--accent-text);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-body h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.42rem);
  line-height: 1.25;
}

.product-body p:not(.product-kicker) {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.asset-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
}

.asset-gallery figure {
  min-width: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.24s ease;
}

.asset-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.asset-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(155deg, #F0E6D6, #E0D2BE);
}

.asset-gallery figcaption {
  padding: 13px 16px;
  color: var(--muted);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Builder
   ========================================================================== */

.builder-band {
  background: linear-gradient(180deg, #F2ECDF 0%, var(--ivory) 100%);
  border-block: 1px solid var(--line);
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: clamp(18px, 2.6vw, 28px);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 2.6vw, 28px);
}

.field.full {
  grid-column: 1 / -1;
}

.summary-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 26px);
  background: linear-gradient(180deg, var(--cream), var(--paper));
}

.summary-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.price-row span {
  color: var(--muted);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-row strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--charcoal);
}

.summary-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: var(--fs-small);
}

.summary-list li {
  position: relative;
  padding-left: 27px;
  line-height: 1.5;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(168, 179, 154, 0.3);
  box-shadow: inset 0 0 0 1.5px var(--sage);
}

.summary-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 7px;
  height: 3.5px;
  border-left: 1.6px solid #5C6B50;
  border-bottom: 1.6px solid #5C6B50;
  transform: rotate(-45deg);
}

.status {
  min-height: 24px;
  color: var(--muted);
  font-size: var(--fs-tiny);
  line-height: 1.55;
}

/* -- Order confirmation card ---------------------------------------------- */

.order-confirmation {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(168, 179, 154, 0.55);
  background: linear-gradient(170deg, rgba(168, 179, 154, 0.16), rgba(251, 248, 243, 0.9));
}

.order-confirmation h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 9px;
}

.order-confirmation h4::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  -webkit-mask: none;
}

.confirmation-rows {
  display: grid;
  gap: 6px;
}

.confirmation-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-small);
}

.confirmation-rows dt {
  color: var(--muted);
}

.confirmation-rows dd {
  font-weight: 650;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.pay-note {
  color: var(--muted);
  font-size: var(--fs-tiny);
  line-height: 1.55;
}

.confirmation-links {
  display: grid;
  gap: 10px;
}

.text-link {
  color: var(--accent-text);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: underline;
  text-decoration-color: rgba(154, 78, 49, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ==========================================================================
   Process band
   ========================================================================== */

.process {
  background: radial-gradient(130% 130% at 82% -4%, #35302A 0%, var(--charcoal) 62%);
  color: var(--ivory);
}

.process h2,
.process h3 {
  color: var(--ivory);
}

.process .section-heading p:not(.eyebrow) {
  color: var(--stone);
}

.process .eyebrow {
  color: var(--gold);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  padding: 0;
  list-style: none;
  counter-reset: route-step;
}

.process-list li {
  min-height: 196px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  counter-increment: route-step;
}

.process-list li::before {
  content: counter(route-step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}

.process-list strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.process-list span {
  color: var(--stone);
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-band {
  background: var(--ivory);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line-strong);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
  color: var(--charcoal);
  transition: color 0.18s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:hover {
  color: var(--accent-text);
}

.faq-list details p {
  padding: 0 4px 22px;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding-block: clamp(44px, 6vw, 72px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
}

.footer-tagline {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.footer-brand p:not(.footer-tagline) {
  color: var(--stone);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 40ch;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: var(--fs-small);
}

.footer-col strong {
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--stone);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #FFFDF8;
}

.footer-col span {
  color: var(--stone);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  color: rgba(216, 210, 198, 0.75);
  font-size: var(--fs-tiny);
}

/* ==========================================================================
   Subpage shell (order.html, policies.html)
   ========================================================================== */

.subpage-main {
  min-height: 60vh;
  padding-block: clamp(44px, 6vw, 80px);
}

.subpage-heading {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* -- Banners --------------------------------------------------------------- */

.banner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.55;
  margin-bottom: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-xs);
}

.banner .banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.banner .banner-icon svg {
  width: 20px;
  height: 20px;
}

.banner.success {
  border-color: rgba(168, 179, 154, 0.7);
  background: linear-gradient(170deg, rgba(168, 179, 154, 0.2), var(--cream));
}

.banner.success .banner-icon {
  color: #4F6042;
  background: rgba(168, 179, 154, 0.32);
}

.banner.gentle {
  border-color: rgba(201, 169, 106, 0.55);
  background: linear-gradient(170deg, rgba(201, 169, 106, 0.16), var(--cream));
}

.banner.gentle .banner-icon {
  color: #8A6B32;
  background: rgba(201, 169, 106, 0.26);
}

/* -- Order lookup ----------------------------------------------------------- */

.order-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.lookup-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 26px);
}

.lookup-panel form {
  display: grid;
  gap: 12px;
  margin: 0;
}

.lookup-help {
  color: var(--muted);
  font-size: var(--fs-tiny);
  line-height: 1.6;
}

.order-result {
  display: grid;
  gap: clamp(18px, 2.6vw, 24px);
}

.order-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.8vw, 30px);
}

.order-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-card-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.order-id-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 111, 74, 0.12);
  border: 1px solid rgba(201, 111, 74, 0.3);
  color: var(--accent-text);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.order-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.order-facts > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--r-xs);
  background: var(--cream);
  border: 1px solid var(--line);
}

.order-facts dt {
  color: var(--muted);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-facts dd {
  color: var(--charcoal);
  font-weight: 650;
  font-size: var(--fs-small);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.order-total-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.resume-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* -- Status timeline --------------------------------------------------------- */

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

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 26px;
}

.timeline-step:last-child {
  padding-bottom: 4px;
}

.timeline-step::before {
  /* connecting line */
  content: "";
  position: absolute;
  left: 14px;
  top: 24px;
  bottom: 2px;
  width: 2px;
  background: var(--line-strong);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--line-strong);
}

.timeline-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
}

.timeline-label {
  align-self: center;
  display: grid;
  gap: 2px;
}

.timeline-label strong {
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--faint);
}

.timeline-step.done .timeline-dot {
  border-color: var(--sage);
  background: rgba(168, 179, 154, 0.24);
}

.timeline-step.done .timeline-dot::after {
  width: 8px;
  height: 5px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid #4F6042;
  border-bottom: 2px solid #4F6042;
  transform: translateY(-1px) rotate(-45deg);
}

.timeline-step.done .timeline-label strong {
  color: var(--ink);
}

.timeline-step.done::before {
  background: var(--sage);
}

.timeline-step.current .timeline-dot {
  border-color: var(--terracotta-deep);
  background: rgba(201, 111, 74, 0.14);
  box-shadow: 0 0 0 5px rgba(201, 111, 74, 0.14);
}

.timeline-step.current .timeline-dot::after {
  background: var(--terracotta-deep);
}

.timeline-step.current .timeline-label strong {
  color: var(--charcoal);
  font-size: 1rem;
}

.timeline-step.terminal-cancelled .timeline-dot {
  border-color: var(--danger);
  background: rgba(162, 60, 44, 0.12);
}

.timeline-step.terminal-cancelled .timeline-dot::after {
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--danger);
}

.timeline-step.terminal-cancelled .timeline-label strong {
  color: var(--danger);
  font-size: 1rem;
}

.timeline-step.terminal-refunded .timeline-dot {
  border-color: var(--gold);
  background: rgba(201, 169, 106, 0.16);
}

.timeline-step.terminal-refunded .timeline-dot::after {
  background: #8A6B32;
}

.timeline-step.terminal-refunded .timeline-label strong {
  color: #6E5526;
  font-size: 1rem;
}

.order-message {
  padding: 18px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  background: var(--cream);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ==========================================================================
   Policies
   ========================================================================== */

.policies-shell {
  display: grid;
  grid-template-columns: minmax(200px, 0.62fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--cream);
}

.policy-nav a {
  padding: 9px 12px;
  border-radius: var(--r-xs);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.policy-nav a:hover {
  background: rgba(201, 111, 74, 0.1);
  color: var(--accent-text);
}

.policy-sections {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
}

.policy-section {
  padding: clamp(22px, 3vw, 34px);
  scroll-margin-top: 100px;
}

.policy-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.policy-body {
  display: grid;
  gap: 14px;
  color: var(--ink);
  line-height: 1.75;
  max-width: 68ch;
}

.policy-body p {
  color: var(--ink);
}

.policy-body ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.policy-body li {
  color: var(--ink);
}

.policy-body strong {
  color: var(--charcoal);
}

.policy-updated {
  color: var(--faint);
  font-size: var(--fs-tiny);
}

/* ==========================================================================
   Motifs
   ========================================================================== */

.route-divider {
  display: grid;
  place-items: center;
  padding-block: clamp(10px, 2vw, 18px);
  color: var(--stone);
}

.route-divider svg {
  width: min(220px, 50vw);
  height: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .builder-shell {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  }

  .builder-shell .section-heading.left {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: 480px;
  }

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

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

  .hero-products {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: none;
  }

  .product-media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .asset-gallery {
    grid-template-columns: 1fr;
  }

  .order-shell,
  .policies-shell {
    grid-template-columns: 1fr;
  }

  .lookup-panel,
  .policy-nav {
    position: static;
  }

  .policy-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .top-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    background-position: 78% center, 78% center, 78% center;
  }

  .promise-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-stage {
    min-height: 420px;
  }

  .stage-note {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .builder-shell {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 0;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .order-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .nav-actions .button {
    display: none;
  }

  .order-facts {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
