/* Shared page styles for the www.weddingcraftr.com secondary pages.
 *
 * index.html deliberately keeps its copy of these rules INLINE: it is the page
 * that has to paint fastest, and an extra render-blocking request costs it more
 * than the duplication costs us. This file is the same ruleset extracted for the
 * pages that can afford one cached stylesheet between them — the use-case pages,
 * and anything added beside them. The two are expected to be kept in step by
 * hand; a visual change to the nav, buttons or footer belongs in both.
 *
 * Everything below the "Page-specific" divider has no counterpart in index.html:
 * those are the prose, FAQ and step-list primitives the use-case pages need and
 * the homepage does not.
 */

:root {
  --terracotta: #6a7860;
  --terracotta-dark: #54614b;
  --terracotta-light: #dfe4d6;
  --sage: #7a8466;
  --ochre: #c89456;

  /* The brand accent, by role rather than by colour. scripts/build-brand.mjs
     swaps the three hexes above for the wedding build, so a page written
     against these three follows whichever brand it is built for. */
  --accent: var(--terracotta);
  --accent-dark: var(--terracotta-dark);
  --accent-light: var(--terracotta-light);

  --paper: #fdfbf5;
  --cream: #f9f5ec;
  --canvas: #f5f1e7;
  --ink: #1a1612;
  --ink-soft: #3d342a;
  --muted: #8a7d6b;
  --line: rgba(26, 22, 18, 0.1);
  --line-soft: rgba(26, 22, 18, 0.06);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Geist", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale — mirrors ds-bundle --tc-fs-* */
  --fs-eyebrow: 10px;
  --ls-eyebrow: 2px;
  --fs-page-title: 56px;
  --fs-section-title: 30px;
  --fs-card-title: 17px;
  --fs-body: 15px;
  --fs-meta: 13px;
  --fs-mono: 12px;
  --lh-tight: 1.1;
  --lh-body: 1.6;
}

@media (max-width: 767px) {
  :root {
    --fs-page-title: 40px;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

/* ---------- Layout ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Editorial primitives ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.italic {
  font-style: italic;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(250, 246, 237, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--cream);
}
.btn-lg {
  padding: 14px 22px;
  font-size: var(--fs-body);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.hero h1 .italic {
  color: var(--terracotta);
}
.hero-sub {
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-foot {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

/* Phone mock */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(26, 22, 18, 0.45),
    0 12px 24px -8px rgba(26, 22, 18, 0.25);
  transform: rotate(-3deg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: var(--paper);
  border-radius: 34px;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- Section ---------- */
section {
  padding: 80px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section-head h2 .italic {
  color: var(--terracotta);
}
.section-head p {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0;
  max-width: 60ch;
}

/* ---------- Feature grid ---------- */
.features {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--terracotta);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature h3 .italic {
  color: var(--terracotta);
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ---------- Platforms strip ---------- */
.platforms {
  background: var(--paper);
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.platform-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.platform-card .eyebrow {
  margin-bottom: 12px;
}
.platform-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section-title);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.platform-card h3 .italic {
  color: var(--terracotta);
}
.platform-card p {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 22px;
  max-width: 44ch;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* App-store badge buttons — self-hosted official-style SVG artwork.
   If Apple/Google update their badge guidelines, re-export from
   Apple: tools.applemediaservices.com/app-store and
   Google: play.google.com/intl/en_us/badges/ and replace the SVGs. */
.store-badge {
  display: inline-flex;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}
.store-badge:hover {
  opacity: 0.85;
}
.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}
/* ---------- Closing CTA ---------- */
.closing {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.closing h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--paper);
}
.closing h2 .italic {
  color: var(--terracotta-light);
}
.closing p {
  color: rgba(245, 239, 228, 0.72);
  font-size: var(--fs-body);
  max-width: 540px;
  margin: 0 auto 28px;
}
.closing .eyebrow {
  color: rgba(245, 239, 228, 0.55);
  margin-bottom: 14px;
}
.closing .btn-ghost {
  color: var(--paper);
  border-color: rgba(245, 239, 228, 0.25);
}
.closing .btn-ghost:hover {
  background: rgba(245, 239, 228, 0.08);
}

/* ---------- Footer ---------- */
footer {
  background: var(--paper);
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.foot-links {
  display: flex;
  /* Eight links at 13px do not fit one phone-width row, and without this
     they pushed the whole page sideways. */
  flex-wrap: wrap;
  gap: 10px 18px;
}
.foot-links a {
  font-size: var(--fs-meta);
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--terracotta);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 48px 0 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .phone {
    transform: rotate(-2deg);
    width: 280px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
}

@media (max-width: 540px) {
  .wrap {
    padding: 0 24px;
  }
  .nav-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo {
    font-size: 19px;
    gap: 8px;
  }
  .logo-mark {
    width: 24px;
    height: 24px;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
  .nav-actions .btn {
    padding: 8px 14px;
    font-size: var(--fs-meta);
  }
  .hero h1 {
    font-size: 52px;
  }
  .section-head h2 {
    font-size: 36px;
  }
}

/* ==========================================================================
   Page-specific — no counterpart in index.html
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 28px;
}
.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.crumbs a:hover {
  color: var(--terracotta);
}
.crumbs span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---------- Page hero (narrower than the homepage's two-up) ---------- */
.page-hero {
  padding: 40px 0 48px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 16px 0 20px;
  max-width: 16ch;
}
.page-hero h1 .italic {
  color: var(--terracotta);
}
.page-hero .standfirst {
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 26px;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 68ch;
  padding: 8px 0 56px;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section-title);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}
.prose h2 .italic {
  color: var(--terracotta);
}
.prose h3 {
  font-family: var(--font-ui);
  font-size: var(--fs-card-title);
  font-weight: 600;
  margin: 30px 0 8px;
}
.prose p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.prose ul {
  margin: 0 0 20px;
  padding-left: 20px;
}
.prose li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
/* :not(.btn) matters — the use-case pages close with a CTA pair inside .prose,
 * and a bare `.prose a` outranks `.btn-primary`, which paints terracotta text
 * on the terracotta pill. */
.prose a:not(.btn) {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta-light);
}
.prose a:not(.btn):hover {
  border-bottom-color: var(--terracotta);
}

/* ---------- Numbered steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 20px;
}
.steps li::before {
  content: counter(step, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  color: var(--terracotta);
}

/* ---------- Pull panel ---------- */
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 32px 0;
}
.panel .eyebrow {
  margin-bottom: 10px;
}
.panel p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.faq-list {
  max-width: 68ch;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:first-child {
  border-top: 0;
}
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.faq-item p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Cross-links to the other use-case pages ---------- */
.crosslinks {
  padding: 56px 0 8px;
}
.crosslink-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.crosslink {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.crosslink:hover {
  border-color: var(--terracotta-light);
  background: var(--cream);
}
.crosslink h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 10px 0 6px;
}
.crosslink p {
  font-size: var(--fs-meta);
  line-height: var(--lh-body);
  color: var(--muted);
  margin: 0;
}

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