/* Public marketing pages (landing / pricing / contact) — Studio Paper.
   Print-shop hero with rotated paper "prints", numbered how-it-works cards,
   gathering-type photo cards, a features ledger, FAQ cards and an ink closing
   band. Shares the app's tokens so marketing → product feels like one product.
   Reference: design_handoff_studio_paper (screens 3a / 3b / 3c). */

:root {
  --paper: #f5f1e8;
  --panel: #fffdf8;
  --ink: #211a12;
  --text-muted: #6f6555;
  --text-faint: #9a8f7c;
  --amber: #a86414;
  --amber-bg: #f7efdf;
  --amber-border: #e9dcc0;
  --gold: #d9a648;
  --gold-ink: #241a10;
  --on-ink: #f7f1e5;
  --on-ink-muted: #b5a992;
  --border: #e6ddcb;
  --border-control: #d6cbb4;
  --hairline: #efe8d8;
  --font-ui: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow-print: 0 14px 34px rgba(63, 48, 29, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
.mono { font-family: var(--font-mono); }

h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--border-control);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 140ms ease-out, border-color 140ms ease-out, background 140ms ease-out;
}
.btn:hover { border-color: #b8ab8e; background: #fff; }
.btn-primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink); filter: brightness(.94); }
.btn-ghost { background: var(--panel); }
.btn-gold { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.btn-gold:hover { background: var(--gold); filter: brightness(.94); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-hero { height: 48px; padding: 0 24px; font-size: 15px; }

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-right: auto;
}
.wordmark-name { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .nav-link { font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
.site-nav .nav-link:hover { color: var(--ink); text-decoration: underline; }
.site-nav .nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .nav-link.signin { color: var(--ink); font-weight: 600; }
.lang-switch { display: inline-flex; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.lang-switch a { color: var(--text-faint); text-decoration: none; }
.lang-switch a.on { color: var(--ink); font-weight: 600; }
.lang-switch a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  padding: 64px 40px 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  text-wrap: balance;
}
.hero-sub {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
}
.hero-cta { display: flex; gap: 12px; margin: 30px 0 0; flex-wrap: wrap; }
.sample-link { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; flex-wrap: wrap; }
.sample-link .host { font-size: 11px; color: var(--text-faint); }
.sample-link .slug {
  font-size: 11px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}
.sample-link .note { font-size: 12px; color: var(--text-faint); }

/* rotated paper prints */
.hero-pile { position: relative; height: 440px; }
.print {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 10px 30px;
  box-shadow: var(--shadow-print);
  margin: 0;
}
.print img { display: block; object-fit: cover; border-radius: 3px; }
.print figcaption {
  font-size: 9.5px;
  color: var(--text-faint);
  margin-top: 9px;
  text-align: center;
}
.print-1 { top: 6px; left: 8%; transform: rotate(-3deg); }
.print-1 img { width: 250px; height: 180px; }
.print-2 { top: 120px; right: 2%; transform: rotate(2.4deg); box-shadow: 0 14px 34px rgba(63, 48, 29, .16); }
.print-2 img { width: 265px; height: 190px; }
.print-3 { bottom: 0; left: 16%; transform: rotate(-1.2deg); }
.print-3 img { width: 240px; height: 168px; }
.qr-card {
  bottom: 34px;
  right: 6%;
  transform: rotate(3deg);
  width: 118px;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(63, 48, 29, .18);
}
.qr-fake {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  background: repeating-conic-gradient(var(--ink) 0% 25%, transparent 0% 50%);
  background-size: 11.5px 11.5px;
  position: relative;
}
.qr-fake .eye {
  position: absolute;
  width: 21px;
  height: 21px;
  background: var(--panel);
  display: grid;
  place-items: center;
}
.qr-fake .eye::after { content: ""; width: 14px; height: 14px; border: 3.5px solid var(--ink); }
.eye-tl { top: 0; left: 0; }
.eye-tr { top: 0; right: 0; }
.eye-bl { bottom: 0; left: 0; }
.qr-caption { font-size: 8.5px; letter-spacing: .14em; color: var(--amber); margin-top: 9px; }

/* ---------- section strips ---------- */
.strip { padding: 0 40px 58px; }
.strip-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--border-control);
  padding-bottom: 12px;
}
.strip-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* how it works: numbered cards */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.step-num { font-family: var(--font-display); font-size: 34px; color: var(--amber); display: block; }
.step h3 { font-size: 16.5px; font-weight: 600; margin: 10px 0 0; font-family: var(--font-ui); }
.step p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 8px 0 0; }

/* gathering types: photo cards with serif pill captions */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.type-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.type-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 150ms ease-out;
}
.type-card:hover img { transform: scale(1.02); }
.type-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 15px;
}

/* features ledger */
.feat-ledger { margin: 6px 0 0; padding: 0; list-style: none; }
.feat-row {
  display: grid;
  grid-template-columns: 64px 300px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.feat-row:last-child { border-bottom: none; }
.feat-no { font-family: var(--font-display); font-size: 22px; color: var(--amber); }
.feat-title { font-size: 16px; font-weight: 600; }
.feat-body { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* FAQ cards */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.faq-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.faq-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; margin: 0; }
.faq-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 8px 0 0; }

/* closing band */
.cta-band {
  margin: 0 40px;
  background: var(--ink);
  border-radius: 14px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 {
  font-size: 34px;
  line-height: 1.15;
  color: var(--on-ink);
  max-width: 520px;
  text-wrap: balance;
}
.cta-band h2 em { color: var(--gold); }
.cta-band p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--on-ink-muted);
  max-width: 460px;
  line-height: 1.6;
}
.cta-band .btn-gold { flex: none; height: 50px; padding: 0 26px; font-size: 15px; }

/* ---------- footer ---------- */
.site-foot {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 40px 34px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.foot-brand { margin-right: auto; }
.foot-brand .wordmark { margin-right: 0; }
.foot-brand .wordmark-name { font-size: 16px; }
.foot-tagline { font-size: 12px; color: var(--text-faint); margin: 6px 0 0; }
.foot-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-nav a { font-size: 12.5px; color: var(--text-muted); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-nav .lang-switch { text-transform: uppercase; }

/* =====================================================================
   PRICING (3b)
   ===================================================================== */
.pricing-hero { text-align: center; padding: 52px 40px 8px; }
.pricing-hero h1 { font-size: clamp(34px, 4.5vw, 46px); }
.pricing-hero .hero-sub { margin: 14px auto 0; font-size: 16px; }

.plans { padding: 0 40px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 36px 0 0;
  margin: 0;
  list-style: none;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.plan h2 { font-size: 24px; }
.plan-fit {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 6px 0 0;
  min-height: 60px;
}
.plan-price { margin: 14px 0 0; }
.plan-price .amount { font-family: var(--font-display); font-size: 38px; }
.plan-price .per {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.plan-rule { display: block; height: 1px; background: var(--hairline); margin: 18px 0 14px; }
.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.plan-feats li { display: flex; gap: 9px; }
.plan-feats li::before { content: "✦"; color: var(--amber); flex: none; }
.plan .btn { margin-top: 22px; height: 42px; }
.plan-feats { margin-bottom: auto; }

/* featured: ink card with gold pill overlapping the top edge */
.plan-featured { background: var(--ink); border-color: var(--ink); }
.plan-featured h2, .plan-featured .plan-price .amount { color: var(--on-ink); }
.plan-featured .plan-fit { color: var(--on-ink-muted); }
.plan-featured .plan-price .per { color: #9d9186; }
.plan-featured .plan-rule { background: rgba(240, 233, 220, .14); }
.plan-featured .plan-feats { color: #f0e9dc; }
.plan-featured .plan-feats li::before { color: var(--gold); }
.plan-flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* white label: amber-tint card with dashed border */
.plan-whitelabel { background: var(--amber-bg); border: 1px dashed #c9a86a; }
.plan-whitelabel .plan-rule { background: var(--amber-border); }
.plan-whitelabel .amount-contact {
  font-size: 32px;
  font-style: italic;
  color: var(--amber);
}
.plan-note { text-align: center; padding: 22px 0 40px; font-size: 12px; color: var(--text-faint); margin: 0; }

/* =====================================================================
   CONTACT (3c)
   ===================================================================== */
.contact-hero { padding: 38px 40px 0; max-width: 660px; margin: 0 auto; }
.contact-hero h1 { font-size: 38px; }
.contact-hero .hero-sub { font-size: 14px; max-width: 440px; margin-top: 12px; }
.contact-body { max-width: 660px; margin: 0 auto; padding: 0 40px; }
.contact-form {
  margin: 24px 0 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}
.contact-form .form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 16px;
}
.contact-form .form-cols label { margin-top: 0; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--border-control);
  border-radius: 8px;
  outline: none;
}
.contact-form textarea { height: 120px; padding: 11px 12px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(168, 100, 20, .15);
}
.contact-form button { margin-top: 18px; height: 44px; padding: 0 22px; font-size: 14px; border-color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-thanks { text-align: center; padding: 56px 36px; max-width: 460px; margin: 0 auto; }
.contact-thanks h1 { font-size: 28px; margin-top: 18px; }
.contact-thanks p {
  margin: 12px auto 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.contact-thanks .btn { margin-top: 24px; }

/* =====================================================================
   Responsive — hero stacks under ~900px; grids collapse 4 → 2 → 1
   ===================================================================== */
@media (max-width: 1024px) {
  .type-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: 48px 1fr; }
  .feat-row .feat-body { grid-column: 2; }
}
@media (max-width: 900px) {
  .site-head { padding: 14px 20px; gap: 14px; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding: 44px 20px 40px; }
  .hero-pile { height: 400px; max-width: 560px; }
  .strip, .plans { padding-left: 20px; padding-right: 20px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { margin: 0 20px; flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .site-foot { padding: 26px 20px 30px; }
  .contact-hero, .contact-body { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .type-grid, .plan-grid, .faq-grid { grid-template-columns: 1fr; }
  .contact-form .form-cols { grid-template-columns: 1fr; gap: 0; }
  .contact-form .form-cols label + label { margin-top: 16px; }
  .hero-pile { height: 360px; }
  .print-1 img { width: 190px; height: 136px; }
  .print-2 img { width: 200px; height: 144px; }
  .print-3 img { width: 180px; height: 126px; }
  .print-2 { top: 100px; }
  .qr-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
