/* ============================================================
   Dusted — High-end entry (landing + auth).
   Editorial-luxury surface: warm parchment, film grain, oversized
   Zilla Slab display, double-bezel card, magnetic CTA, blur-up reveals.
   Stays inside the brand tokens (styles.css). GPU-only motion.
   ============================================================ */

:root {
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---- Surface ---- */
.landing {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  background: var(--metal-950);
  overflow: hidden;
}

/* Cinematic photographic background, fixed to the viewport, under a
   left-weighted dark scrim so the editorial text stays legible. */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/dustedbg.png") center / cover no-repeat;
}
.landing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0.5) 42%, rgba(5, 5, 6, 0.16) 70%, rgba(5, 5, 6, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.4) 0%, rgba(5, 5, 6, 0) 26%, rgba(5, 5, 6, 0) 56%, rgba(5, 5, 6, 0.55) 100%);
}
/* On phones: deep black fade from the top so the centered logo sits on black. */
@media (max-width: 880px) {
  .landing-bg::after {
    background: linear-gradient(
      180deg,
      rgba(5, 5, 6, 0.94) 0%,
      rgba(5, 5, 6, 0.84) 18%,
      rgba(5, 5, 6, 0.6) 42%,
      rgba(5, 5, 6, 0.5) 66%,
      rgba(5, 5, 6, 0.66) 100%
    );
  }
}

/* Film-grain — fixed, non-interactive, GPU-cheap */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- Floating island nav ---- */
.island {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.island__pill {
  pointer-events: auto;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  background: color-mix(in oklab, var(--paper) 76%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 34px rgba(34, 30, 24, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Chalkboard-framed logo: black slate, light inner chalk line, soft lift. */
.logo-chalk {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  background: var(--espresso-900);
  border: 2px solid var(--espresso-900);
  border-radius: 15px;
  box-shadow: inset 0 0 0 2px rgba(246, 237, 216, 0.9), 0 6px 16px rgba(34, 30, 24, 0.3);
}
.logo-chalk img { width: 100%; height: 100%; object-fit: contain; display: block; }

.island__wordmark { font-family: var(--font-script); font-size: 25px; color: var(--espresso-900); line-height: 1; }
.island__tag {
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint);
  padding-left: 12px; border-left: 1px solid var(--border-soft);
}
@media (max-width: 420px) {
  .island__tag { display: none; }
  .logo-chalk { width: 44px; height: 44px; }
  .island__wordmark { font-size: 23px; }
}

/* ---- Editorial split grid ---- */
.landing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 168px 40px 96px;
  min-height: 100dvh;
  box-sizing: border-box;
}
@media (max-width: 880px) {
  .landing-grid { grid-template-columns: 1fr; gap: 36px; padding: 124px 20px 56px; }
}
@media (max-width: 420px) {
  .landing-grid { padding: 110px 18px 48px; }
}

/* ---- Display typography ---- */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--rose-500) 8%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--rose-500) 22%, transparent);
  font-family: var(--font-display); font-weight: 600;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-600);
}
.eyebrow-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-500); }

/* Eyebrow sitting on the dark stage (vs. on the paper card) */
.eyebrow-pill--on-dark {
  background: color-mix(in oklab, var(--rose-500) 16%, transparent);
  border-color: color-mix(in oklab, var(--rose-400) 45%, transparent);
  color: var(--rose-300);
}

/* Big standalone badge above the writing */
.hero-copy { margin-top: 3vh; }
.hero-logo {
  width: clamp(140px, 17vw, 210px);
  height: auto;
  display: block;
  margin: 0 0 20px;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55));
}

/* Cursive quote under the heading */
.hero-quote {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.25;
  color: var(--gold-600);
  margin: 14px 0 0;
}

/* Attributes line — every first letter pink (spells TRUST) */
.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.01em;
  color: var(--text-on-metal-muted);
}
.trustword { white-space: nowrap; }
.trustword__cap { font-weight: 700; color: var(--rose-400); }

@media (max-width: 880px) {
  /* Center the whole hero on phones */
  .hero-copy { margin-top: 0; text-align: center; }
  .hero-logo { width: clamp(160px, 46vw, 230px); margin: 0 auto 18px; }
  .lede { margin-left: auto; margin-right: auto; }
  .trustline { justify-content: center; }
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.018em;
  font-size: clamp(38px, 9vw, 66px);
  color: var(--text-on-metal);
  margin: 22px 0 0;
}
.display .script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rose-400);
  /* optical: script sits a touch lower */
  display: inline-block;
  transform: translateY(0.06em);
}
.lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-on-metal-muted);
  max-width: 30ch;
  margin: 22px 0 0;
}

/* ---- Stat chips (mini double-bezel) ---- */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.chip {
  background: rgba(255, 248, 232, 0.05);
  border: 1px solid rgba(255, 248, 232, 0.12);
  border-radius: var(--radius-lg);
  padding: 3px;
}
.chip__core {
  background: rgba(255, 248, 232, 0.03);
  border-radius: calc(var(--radius-lg) - 3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  text-align: center;
}
.chip__num { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--text-on-metal); line-height: 1; }
.chip__label { font-family: var(--font-display); font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-metal-muted); margin-top: 5px; }

/* ---- Double-bezel auth card ---- */
.bezel {
  background: color-mix(in oklab, var(--cream-200) 55%, var(--paper));
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 30px;
  padding: 9px;
  /* spotlit paper "sign" on the dark stage: warm gold glow + deep cast shadow */
  box-shadow: 0 0 90px 6px rgba(226, 198, 142, 0.16), 0 40px 80px rgba(0, 0, 0, 0.6);
}
.bezel__core {
  background: var(--paper);
  border: 4px solid var(--espresso-900);
  border-radius: 22px; /* concentric: 30 - 9 + ~1 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 34px;
}
@media (max-width: 880px) {
  .bezel__core { padding: 26px; }
}

/* ---- Magnetic button-in-button CTA ---- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 7px 7px 26px;
  border-radius: var(--radius-pill);
  border: var(--border-ink) solid var(--espresso-900);
  background: var(--color-primary);
  color: var(--text-on-rose);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--espresso-900);
  transition: transform 0.5s var(--spring), background 0.3s var(--spring), box-shadow 0.3s var(--spring);
}
.cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 5px 0 var(--espresso-900); }
.cta:active { transform: translateY(4px); box-shadow: none; }
.cta:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: 0 4px 0 var(--espresso-900); transform: none; }
.cta__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.18);
  border: 1px solid rgba(255, 253, 246, 0.35);
  transition: transform 0.5s var(--spring), background 0.3s var(--spring);
}
.cta:hover .cta__icon { transform: translate(3px, -2px) scale(1.06); background: rgba(255, 253, 246, 0.28); }

/* ---- Text link / toggle ---- */
.linkbtn {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--rose-500); font-weight: 600;
  transition: color 0.3s var(--spring);
}
.linkbtn:hover { color: var(--rose-600); }

/* ---- Staggered blur-up reveal (entry) ---- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.reveal { opacity: 0; animation: revealUp 0.9s var(--spring) forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  .cta, .cta__icon { transition: none; }
}

/* ============================================================
   Public top nav + Services & Prices page
   ============================================================ */

.pub-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 44px) 0;
  box-sizing: border-box;
}
.pub-nav--right { justify-content: flex-end; }
.pub-links { display: inline-flex; align-items: center; gap: 22px; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pub-brand img { width: 38px; height: 38px; object-fit: contain; }
.pub-brand span { font-family: var(--font-script); font-size: 26px; color: var(--text-on-metal); line-height: 1; }
.pub-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-metal-muted);
  transition: color 0.3s var(--spring);
}
.pub-link:hover { color: var(--gold-400); }

.services-wrap {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 104px clamp(20px, 4vw, 44px) 96px;
}
.services-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.services-title { font-size: clamp(40px, 7vw, 66px); margin-top: 16px; }
.services-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-on-metal-muted);
  margin: 14px auto 0;
  max-width: 48ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 18px; }
}

/* service cards reuse the .bezel / .bezel__core double-bezel */
.service-card--featured {
  box-shadow: var(--glow-rose), 0 40px 80px rgba(0, 0, 0, 0.6);
  border-color: color-mix(in oklab, var(--rose-500) 40%, transparent);
}
@media (min-width: 901px) {
  .service-card--featured { transform: translateY(-10px); }
}
.service-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-50);
  background: var(--rose-500);
  border: var(--border-ink) solid var(--espresso-900);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-bottom: 12px;
}
.service-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--text-strong); margin: 0; }
.service-price { font-family: var(--font-mono); font-weight: 700; font-size: 42px; color: var(--espresso-900); margin: 8px 0 0; line-height: 1; }
.service-price .cur { font-size: 22px; vertical-align: top; margin-right: 1px; }
.service-price .cad { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--text-muted); margin-left: 7px; }
.service-blurb { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 14px 0 18px; }
.service-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 14px; color: var(--text-body); }
.service-list .tick { color: var(--gold-500); display: inline-flex; flex-shrink: 0; }
.service-cta { font-size: 13px; }

.addons { max-width: 780px; margin: 50px auto 0; text-align: center; }
.addons-title {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 16px;
}
.addons-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.addon {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 248, 232, 0.05);
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-family: var(--font-body); font-size: 14px; color: var(--text-on-metal);
}
.addon-price { font-family: var(--font-mono); font-weight: 700; color: var(--gold-400); }

.services-foot { text-align: center; margin: 54px auto 0; max-width: 460px; }
.services-foot__quote { font-family: var(--font-script); font-size: 26px; color: var(--gold-600); margin: 0 0 18px; }
.services-foot__cta { width: auto; margin: 0 auto; padding-right: 7px; }

/* ============================================================
   Owner admin — responsive form grids (collapse on phones)
   ============================================================ */
.adm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.adm-row3 { display: grid; grid-template-columns: 130px 1fr 110px; gap: 10px; }
.adm-inv3 { display: grid; grid-template-columns: 1fr 130px 130px; gap: 10px; }
.adm-sup4 { display: grid; grid-template-columns: 1fr 80px 90px 110px; gap: 10px; align-items: end; }
.adm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 620px) {
  .adm-tiles { grid-template-columns: repeat(2, 1fr); }
  .adm-row3,
  .adm-inv3,
  .adm-row2 { grid-template-columns: 1fr; }
  .adm-sup4 { grid-template-columns: 1fr 1fr; }
}
