/* ==========================================================================
   The order flow, the legal pages and the withdrawal form in the landing page's look (premium.css): Inter set
   light and large for titles, liquid glass for the header, frosted glass for panels and cards, glass fields, softer
   corners, the brand blue for actions and selection. Loaded after each page's own stylesheet, on <body class="page">.
   ========================================================================== */
.page {
  --accent: #295bff; /* the brand blue (the landing page gets it from brand.css) */
  --accent-bright: #4e7dfd;
  background: var(--page);
  color: var(--text-on-page);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
}
.page a:focus-visible, .page button:focus-visible, .page input:focus-visible, .page textarea:focus-visible, .page select:focus-visible { outline: 2px solid var(--label-accent); outline-offset: 3px; }
/* a whole step the script focuses for screen readers (tabindex="-1") gets no ring: it drew a square frame round it */
.page [tabindex="-1"]:focus { outline: none; }

/* ---------- header: the same floating liquid-glass bar as the landing nav ---------- */
.page > header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: calc(100% - 24px);
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 12px 14px 12px 20px;
  border: 0;
  border-radius: 20px;
  background: var(--liquid);
  backdrop-filter: var(--liquid-filter);
  box-shadow: var(--liquid-shadow);
}
.page > header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--liquid-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.page > header > a, .page .order-language, .page .order-steps, .page .order-cart {
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45), 0 0 14px rgb(0 0 0 / 0.35);
}
.page > header > a:not(:first-child), .page .order-language {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e4e7ee;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.page > header > a:not(:first-child):hover, .page .order-language:hover { color: #fff; background: rgb(255 255 255 / 0.1); }
/* legal and withdrawal headers hold just the logo and one link: one row at every width */
.page--legal > header, .page--withdrawal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page--legal > header img, .page--withdrawal > header img { width: 118px; height: auto; }
.page .order-steps { color: var(--text-sub); font-weight: 500; }
.page .order-steps li::before { background: rgb(255 255 255 / 0.18); }
.page .order-steps [aria-current="step"] { color: #fff; }
.page .order-steps [aria-current="step"]::before { background: var(--accent-bright, #4e7dfd); box-shadow: 0 0 10px rgb(78 125 253 / 0.8); }
.page .order-cart strong { font-weight: 300; font-size: 22px; letter-spacing: -0.02em; }
.page .order-cart small { color: var(--text-lead); }

/* ---------- type ---------- */
.page h1, .page .section-heading h2, .page .payment-view h2, .page .delivery-view h2, .page .section-label {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.page .section-heading h2 { font-size: clamp(26px, 2.6vw, 36px); }
.page .section-label { font-size: clamp(22px, 2vw, 28px); margin-bottom: 20px; }
.page .payment-view h2 { font-size: clamp(32px, 3.6vw, 48px); }
/* a project enquiry has no order summary beside the form: the form stands alone, centred, in a rounded glass card */
.page--project .payment-view { display: block; max-width: 760px; margin: 0 auto; padding-top: 28px; }
.page--project .payment-view > div {
  padding: clamp(24px, 4.5vw, 52px);
  border-radius: var(--glass-radius);
  background: radial-gradient(120% 55% at 50% 0%, rgb(41 91 255 / 0.24), transparent 72%), var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), inset 0 0 0 1px rgb(143 168 255 / 0.22), 0 40px 120px -50px rgb(41 91 255 / 0.6);
}
.page--project .payment-view #brief-heading { margin-top: 0; text-align: center; }
.page--project .payment-view #brief-heading + .muted { max-width: 520px; margin: 0 auto; text-align: center; }
@media (max-width: 640px) {
  .page--project .payment-view { padding-top: 12px; }
  .page--project .payment-view > div { padding: 22px 18px; border-radius: var(--glass-radius-sm); }
}

/* ---------- the order page in the brand: the landing's navy grain glow behind the top (grain.js), titles that fade
   to the brand's light blue instead of grey, a blue lift on the panels and fields, and brighter labels and hints ---------- */
.page--order { position: relative; }
.page--order > main, .page--order > footer { position: relative; z-index: 1; }
.page--order h1, .page--order .section-heading h2, .page--order .payment-view h2, .page--order .delivery-view h2, .page--order .section-label {
  background-image: linear-gradient(180deg, #ffffff 35%, #b9c8ff);
}
.page--order .product-strip {
  background: radial-gradient(90% 140% at 0% 0%, rgb(41 91 255 / 0.18), transparent 65%), var(--glass);
}
.page--order .product-monogram {
  background: linear-gradient(160deg, #3a6bff, #112166);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 8px 24px -10px rgb(41 91 255 / 0.8);
  color: #fff;
}
.page--order .product-info p, .page--order .muted, .page--order small, .page--order .section-heading > p { color: #c3c7d2; }
.page--order .order-steps { color: #b4bac8; }
.page--order label { color: var(--text-soft); }
.page--order label > span:first-child { font-weight: 500; }
.page--order .consent { color: #c3c7d2; }
.page--order .consent a { color: #c9d6ff; text-decoration: underline; text-decoration-color: rgb(201 214 255 / 0.45); text-underline-offset: 3px; }
.page--order input:not([type="checkbox"]):not([type="radio"]),
.page--order textarea,
.page--order select {
  background: rgb(130 155 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(160 180 255 / 0.2), inset 0 1px 2px rgb(0 0 0 / 0.3);
}
.page--order input:not([type="checkbox"]):not([type="radio"]):focus,
.page--order textarea:focus,
.page--order select:focus {
  background: rgb(130 155 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(143 168 255 / 0.95), 0 0 0 4px rgb(41 91 255 / 0.22);
}
.page--order input::placeholder, .page--order textarea::placeholder { color: #8d93a6; }
.page .delivery-view h2 { font-size: clamp(32px, 3.6vw, 48px); }
.page .product-info h1 { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.page .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label-accent); }
.page .muted, .page small { color: var(--text-lead); }
.page .section-heading > p { color: var(--text-lead); }
.page legend { font-weight: 500; color: var(--text-bright); }

/* ---------- actions ---------- */
.page .primary {
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.005em;
  min-height: 48px;
  padding: 13px 22px;
  box-shadow: 0 10px 30px -14px rgb(41 91 255 / 0.8);
}
.page .primary:hover { background: #3a6bff; }
.page .text-button { color: var(--text-soft); }

/* ---------- glass panels and cards ---------- */
.page .product-strip,
.page .service,
.page .style-card,
.page .retainer-options button,
.page .basket,
.page .order-summary,
.page .brand-profile,
.page .review {
  border: 0;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
}
.page .product-strip { border-radius: var(--glass-radius-sm); padding: 22px; box-shadow: var(--glass-edge), inset 0 -2px 0 rgb(78 125 253 / 0.55); }
.page .product-monogram { border-radius: 14px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: #b5c6ff; font-weight: 300; }
.page .product-info span { color: var(--label-accent); }
.page .service, .page .style-card, .page .retainer-options button { border-radius: var(--glass-radius-sm); transition: box-shadow 0.2s, transform 0.2s; }
.page .service-content strong, .page .style-caption strong { font-weight: 500; letter-spacing: -0.01em; color: var(--text-bright); }
.page .service-content b { font-weight: 300; font-size: 22px; letter-spacing: -0.02em; }
.page .service[aria-pressed="true"],
.page .style-card[aria-pressed="true"],
.page .retainer-options [aria-pressed="true"] {
  border: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgb(41 91 255 / 0.2), transparent 70%), var(--glass-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1.5px rgb(119 154 255 / 0.85), 0 24px 60px -30px rgb(41 91 255 / 0.6);
}
.page .service[aria-pressed="true"] strong { color: #c9d6ff; }
@media (hover: hover) {
  .page .service:hover, .page .style-card:hover, .page .retainer-options button:hover { transform: translateY(-2px); }
}
.page .retainer-options b {
  font-weight: 200;
  letter-spacing: -0.045em;
  background: var(--number-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page .basket, .page .order-summary { border-radius: var(--glass-radius-sm); }
.page .brand-profile { border-radius: var(--glass-radius-sm); padding: 4px 20px; }
.page .brand-profile[open] { padding-bottom: 20px; }
.page .brand-profile summary { font-weight: 500; color: var(--text-bright); }
.page .brand-images img { border-radius: 12px; background: rgb(255 255 255 / 0.04); }
.page .brand-swatch button, .page .brand-images button { border-radius: 8px; background: rgb(255 255 255 / 0.1); }
/* ad formats: glass cards like the video formats */
.page .visual-formats label {
  border: 0;
  border-radius: var(--glass-radius-sm);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
}
.page .visual-formats label:has(:checked) {
  background: radial-gradient(120% 70% at 50% 0%, rgb(41 91 255 / 0.2), transparent 70%), var(--glass-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1.5px rgb(119 154 255 / 0.85), 0 24px 60px -30px rgb(41 91 255 / 0.6);
}
.page .visual-formats strong { font-weight: 500; color: var(--text-bright); }
.page .visual-formats em { letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--label-accent); }
.page .summary-total { border-top-color: var(--hairline); font-weight: 300; font-size: 24px; letter-spacing: -0.02em; }
.page .delivery-note, .page .cart-row { border-color: var(--hairline); }
.page .delivery-note strong { color: #b5c6ff; }

/* video formats: each choice is one glass card; the label inside it stays plain */
.page .format-choice,
.page .video-order {
  border: 0;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
}
.page .format-choice:has(input:checked) {
  background: radial-gradient(120% 80% at 50% 0%, rgb(41 91 255 / 0.2), transparent 70%), var(--glass-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1.5px rgb(119 154 255 / 0.85);
}
.page .format-options .format-choice > label,
.page .format-options .format-choice > label:has(:checked) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.page .format-choice strong { font-weight: 500; color: var(--text-bright); }
.page .format-choice small { color: var(--text-lead); }

/* pills: formats, style filters, quantity */
.page .format-options label,
.page .style-filters button {
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: var(--text-soft);
}
.page .format-options label:has(:checked),
.page .style-filters [aria-pressed="true"] {
  background: rgb(41 91 255 / 0.18);
  box-shadow: inset 0 0 0 1px rgb(119 154 255 / 0.85);
  color: #fff;
}
.page .quantity-control button {
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

/* ---------- fields ---------- */
.page input:not([type="checkbox"]):not([type="radio"]),
.page textarea,
.page select {
  border: 0;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.045);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), inset 0 1px 2px rgb(0 0 0 / 0.3);
  color: #fff;
  padding: 14px 16px;
  min-height: 48px;
  transition: box-shadow 0.18s, background 0.18s;
}
.page input:not([type="checkbox"]):not([type="radio"]):focus,
.page textarea:focus,
.page select:focus {
  outline: none;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(119 154 255 / 0.9), 0 0 0 4px rgb(41 91 255 / 0.18);
}
.page label { color: var(--text-lead); }
.page input::placeholder, .page textarea::placeholder { color: var(--text-faint); }

/* ---------- how a brief becomes content ---------- */
.page .human-process span { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--label-accent); }
.page .human-process h3 { font-weight: 400; font-size: 18px; letter-spacing: -0.015em; color: var(--text-bright); }
.page .human-process p { color: var(--text-lead); }

/* ---------- footer ---------- */
.page > footer {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 13px;
}
.page > footer a { color: #9da2ae; }
.page > footer a:hover { color: #fff; }

/* ---------- legal pages: a calm reading column ---------- */
.page--legal main { max-width: 760px; padding-top: 72px; }
.page--legal h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 18px; }
.page--legal h2 { margin-top: 44px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--text-bright); }
.page--legal p, .page--legal li { color: var(--text-lead); font-size: 16px; line-height: 1.75; }
.page--legal strong { color: var(--text-bright); font-weight: 600; }
.page--legal a { color: #c9d6ff; text-decoration: underline; text-decoration-color: rgb(201 214 255 / 0.4); text-underline-offset: 4px; }
.page--legal .review { border-radius: 16px; padding: 18px 20px; box-shadow: var(--glass-edge), inset 3px 0 0 var(--accent); }

/* ---------- withdrawal form ---------- */
.page--withdrawal main { padding-top: 64px; }
.page--withdrawal h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 14px; }
.page--withdrawal main > p { color: var(--text-lead); }
.page--withdrawal main a { color: #c9d6ff; }
.page--withdrawal button:not(.primary) {
  border: 0;
  border-radius: var(--btn-radius);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  color: var(--text-soft);
}

/* ---------- admin: the order inbox in the same look ---------- */
.page--admin > header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page--admin > header img { width: 118px; height: auto; }
.page--admin > header > span { font-weight: 500; color: var(--text-soft); letter-spacing: -0.01em; }
.page--admin main { max-width: 1500px; padding: 28px 24px 48px; }
.page--admin h1 { font-size: clamp(28px, 2.6vw, 38px); }
.page--admin h2 { font-weight: 400; font-size: 22px; letter-spacing: -0.02em; color: var(--text-bright); }
.page--admin h3 { font-weight: 500; letter-spacing: -0.01em; color: var(--text-bright); }
.page--admin p { color: var(--text-soft); }
.page--admin a { color: #c9d6ff; }

/* buttons: quiet glass; the main action blue; destructive ones red text */
.page--admin button:not(.primary) {
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  color: var(--text-soft);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.page--admin button:not(.primary):hover { background: rgb(255 255 255 / 0.11); color: #fff; }
.page--admin button.primary { min-height: 42px; padding: 10px 18px; }
.page--admin .danger { color: #ffb1b6; }
.page--admin > header button:not(.primary) { text-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }

/* status strip and toolbar */
.page--admin .settings { gap: 8px; padding-bottom: 22px; }
.page--admin .settings span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
  color: var(--text-lead);
}
.page--admin .settings strong { color: #f3d08a; font-weight: 500; }
.page--admin .toolbar { gap: 14px; margin-bottom: 22px; }
.page--admin label { color: var(--text-lead); }
.page--admin select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #b9bdc8 50%), linear-gradient(135deg, #b9bdc8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* the inbox and the selected brief: two glass panels side by side */
.page--admin .layout { gap: 20px; }
.page--admin #inbox,
.page--admin #detail,
.page--admin .brief-metrics,
.page--admin #login {
  border: 0;
  border-radius: var(--glass-radius-sm);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
}
.page--admin #inbox { padding: 8px; max-height: calc(100vh - 260px); }
.page--admin #inbox button {
  border: 0;
  border-radius: 14px;
  margin-bottom: 4px;
  background: transparent;
  box-shadow: none;
  padding: 14px 14px;
  min-height: 0;
}
.page--admin #inbox button:hover { background: rgb(255 255 255 / 0.06); }
.page--admin #inbox button.active {
  border-left: 0;
  background: radial-gradient(120% 90% at 0% 50%, rgb(41 91 255 / 0.22), transparent 75%), rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(119 154 255 / 0.55);
}
.page--admin #inbox strong { font-weight: 500; color: var(--text-bright); }
.page--admin #inbox small { color: var(--text-sub); }
.page--admin #detail { padding: 28px; }
.page--admin .detail-section { border-bottom-color: var(--hairline); }
.page--admin .detail-section:last-child { border-bottom: 0; }
.page--admin .meta, .page--admin .small, .page--admin .history { color: var(--text-sub); }
.page--admin .status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgb(243 208 138 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(243 208 138 / 0.3);
  color: #f3d08a;
  font-weight: 500;
}
.page--admin .empty { color: var(--text-sub); }
.page--admin .pending, .page--admin #alert {
  border-left: 0;
  border-radius: 14px;
  background: rgb(243 208 138 / 0.07);
  box-shadow: inset 3px 0 0 #f3d08a, inset 0 0 0 1px rgb(243 208 138 / 0.18);
  color: var(--text-soft);
}

/* metrics table: hairlines on dark */
.page--admin .brief-metrics { padding: 16px 20px; margin: 4px 0 24px; }
.page--admin .brief-metrics summary { font-weight: 500; color: var(--text-bright); }
.page--admin .brief-metrics td, .page--admin .brief-metrics th { border-bottom: 1px solid var(--hairline); }
.page--admin .brief-metrics th { font-weight: 500; color: var(--text-lead); }
.page--admin table { font-variant-numeric: tabular-nums; }

/* sign-in card and email preview */
.page--admin #login { padding: 32px; margin: 96px auto; }
.page--admin dialog {
  border: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03) 45%, rgb(255 255 255 / 0.05)), #0b0c10;
  box-shadow: var(--glass-edge), 0 40px 120px -30px rgb(0 0 0 / 0.9);
  color: var(--text-on-page);
}
.page--admin dialog::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(6px); }
.page--admin dialog iframe { border-radius: 14px; }
.page--admin input[type="checkbox"] { accent-color: var(--accent); }

@media (max-width: 720px) {
  .page--admin main { padding: 20px 14px 40px; }
  .page--admin #inbox { max-height: 320px; margin-bottom: 0; }
  .page--admin #detail { padding: 20px 16px; }
  .page--admin .header-actions { width: 100%; }
}

@media (max-width: 720px) {
  .page > header { top: 8px; width: calc(100% - 16px); margin-top: 8px; padding: 10px 12px; border-radius: 18px; }
  .page--legal main, .page--withdrawal main { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .page .service, .page .style-card, .page .retainer-options button { transition: none; transform: none; }
}
