/* Foldyn landing — light luxury, warm paper + ink + gold. Max 3 hues. */

/* Latin subsets of the variable fonts this site already used from Google Fonts.
   Inter covers weight 400–700; Fraunces covers optical size plus weight 500–600
   (CSS uses 550). swap paints fallback text immediately. Same-origin files are
   preloaded from the page head. Licenses: /assets/fonts/OFL-Inter.txt and
   /assets/fonts/OFL-Fraunces.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F7F4EF;
  --paper-2: #EFEBE4;
  --ink: #0A0A0A;
  --ink-soft: #3D3630;
  --muted: #6B635A;
  --line: rgba(10, 10, 10, 0.10);
  /* Text golds are darkened so body-size type clears 4.5:1 on the light
     papers. --gold is 4.62:1 on #EFEBE4 and 5.01:1 on #F7F4EF.
     --gold-deep is 5.36:1 on #EFEBE4, 5.81:1 on #F7F4EF, and 4.59:1
     on the foil-layer tan #E8D9C0. --gold-bright is the original
     champagne, kept for fills and for type set on ink (where the
     deepened bronze would fall under 4.5:1). */
  --gold: #826435;
  --gold-deep: #755B30;
  --gold-bright: #C5A572;
  --gold-soft: rgba(197, 165, 114, 0.16);
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.10);
  --radius: 20px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.02em; color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand em {
  font-style: normal; color: var(--gold);
}
.brand-mark {
  height: 32px; width: auto; display: block; flex-shrink: 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink) !important; color: var(--paper) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ink-soft) !important; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); font-size: 1.15rem;
  padding: 6px 12px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(197,165,114,0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 40px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--gold);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 550;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .line2 { color: var(--gold-deep); }
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 0 32px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer; border: none; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 28px rgba(10,10,10,0.18);
}
.btn-primary:hover { background: #2a2420; color: var(--paper); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); }
.trust-row {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  color: var(--muted); font-size: 0.85rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* Hero visual — product shot + layer stack */
.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-shot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-shot img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 900px) {
  .hero-shot { margin: 0 auto; max-width: 380px; }
  .hero-visual { min-height: 0; }
}

/* ---------- section chrome ---------- */
.section { padding: 88px 0; }
.section.band {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { text-align: left; margin-left: 0; }
.kicker {
  color: var(--gold-deep);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 12px;
}
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em; font-weight: 550;
  margin: 0 0 14px; line-height: 1.15;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ---------- process layers (animation 2) ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
}
.layer-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  background:
    linear-gradient(145deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.layer-stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(197,165,114,0.12), transparent 45%);
  pointer-events: none;
}
.stack {
  position: absolute;
  inset: 14% 12% 18% 12%;
  perspective: 900px;
}
.stack-layer {
  position: absolute; inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(10,10,10,0.08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(10,10,10,0.08);
  display: flex; align-items: flex-end;
  padding: 14px 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
  transform: translateY(28px) rotateX(8deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.7s ease;
}
.stack-layer .swatch {
  width: 10px; height: 10px; border-radius: 2px; margin-right: 8px;
}
.stack-layer.l1 { z-index: 1; }
.stack-layer.l2 { z-index: 2; background: linear-gradient(180deg, #faf8f4, #f3eee6); }
.stack-layer.l3 { z-index: 3; background: linear-gradient(135deg, #f5efe4, #e8d9c0); color: var(--gold-deep); }
.stack-layer.l4 { z-index: 4; background: linear-gradient(135deg, #efe8dc, #e0d2bb); }
.stack-layer.l5 { z-index: 5; background: #fff; border: 1px dashed rgba(70,120,180,0.55); color: #3a6ea5; }

/* foil pattern hint */
.stack-layer.l3::before {
  content: "";
  position: absolute; top: 18%; left: 22%; right: 22%; bottom: 36%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(197,165,114,0.55) 40%, rgba(197,165,114,0.55) 60%, transparent 60%),
    linear-gradient(45deg, transparent 40%, rgba(212,175,119,0.35) 40%, rgba(212,175,119,0.35) 55%, transparent 55%);
  background-size: 18px 18px;
  border-radius: 4px;
  opacity: 0.85;
}

.stack.in-view .stack-layer.l1 { transition-delay: 0.05s; transform: translateY(48px) translateZ(0); opacity: 1; }
.stack.in-view .stack-layer.l2 { transition-delay: 0.18s; transform: translateY(36px) translateZ(12px); opacity: 1; }
.stack.in-view .stack-layer.l3 { transition-delay: 0.32s; transform: translateY(24px) translateZ(24px); opacity: 1; }
.stack.in-view .stack-layer.l4 { transition-delay: 0.46s; transform: translateY(12px) translateZ(36px); opacity: 1; }
.stack.in-view .stack-layer.l5 { transition-delay: 0.60s; transform: translateY(0) translateZ(48px); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stack-layer { opacity: 1; transform: none !important; transition: none !important; }
  .stack .stack-layer.l1 { transform: translateY(40px) !important; }
  .stack .stack-layer.l2 { transform: translateY(30px) !important; }
  .stack .stack-layer.l3 { transform: translateY(20px) !important; }
  .stack .stack-layer.l4 { transform: translateY(10px) !important; }
  .stack .stack-layer.l5 { transform: translateY(0) !important; }
}

.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.check-list li::after {
  content: "";
  position: absolute; left: 5px; top: 20px;
  width: 6px; height: 4px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

/* ---------- three ways ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
}
.way-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: 0 8px 28px rgba(10,10,10,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.way-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.way-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(197,165,114,0.45);
}
.way-card:hover::before { opacity: 1; }
.way-num {
  font-family: var(--display);
  font-size: 0.95rem; color: var(--gold);
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.way-card h3 {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 550;
  margin: 0 0 12px; letter-spacing: -0.02em;
}
.way-card p {
  color: var(--muted); margin: 0 0 10px; font-size: 0.95rem;
}
.way-card ul {
  margin: 14px 0 0; padding: 0 0 0 18px; color: var(--ink-soft);
  font-size: 0.9rem;
}
.way-card li { margin-bottom: 6px; }
.badge {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.badge-live { background: var(--gold-soft); color: var(--gold-deep); }
.badge-soon { background: rgba(10,10,10,0.06); color: var(--muted); }

/* ---------- pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(10,10,10,0.04);
}
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  box-shadow: 0 28px 60px rgba(10,10,10,0.28);
}
.price-card.featured .muted,
.price-card.featured .note { color: rgba(247,244,239,0.62); }
.price-card h3 {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 550; margin: 0 0 6px;
}
.price-card .muted { color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  gap: 16px; flex-wrap: wrap;
}
.price-card.featured .price-row {
  border-bottom-color: rgba(247,244,239,0.12);
}
.price-row:last-of-type { border-bottom: none; }
.price-row .label { font-weight: 500; }
.price-row .amount {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 550; white-space: nowrap;
}
.price-buy {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.buy {
  padding: 8px 16px; font-size: 0.82rem; font-family: inherit;
}
.buy:disabled { opacity: 0.55; cursor: progress; transform: none; }
.session-ref {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
}
.buy-status {
  margin: 8px 0 0; min-height: 1.2em; font-size: 0.85rem; color: var(--muted);
}
.price-card.featured .amount { color: var(--gold-bright); }
.note {
  margin: 18px 0 0; font-size: 0.85rem; color: var(--muted);
  line-height: 1.5;
}
.launch-tag {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.price-card.featured .launch-tag {
  background: rgba(197,165,114,0.22); color: #e8d5b3;
}

/* waitlist form */
.waitlist {
  margin-top: 8px;
}
.waitlist label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 8px; color: inherit;
}
.waitlist .field-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.waitlist input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247,244,239,0.18);
  background: rgba(247,244,239,0.06);
  color: var(--paper);
  font: inherit; font-size: 0.95rem;
  outline: none;
}
.waitlist input::placeholder { color: rgba(247,244,239,0.45); }
.waitlist input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,165,114,0.25);
}
.waitlist .btn { flex: 0 0 auto; }
.waitlist .form-status {
  margin-top: 12px; font-size: 0.88rem;
  color: rgba(247,244,239,0.7); min-height: 1.3em;
}
.waitlist .form-status.ok { color: #c8b48a; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-body p {
  color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 16px;
}
.about-meta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.about-meta dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: 14px;
}
.about-meta dt:first-child { margin-top: 0; }
.about-meta dd {
  margin: 4px 0 0; color: var(--ink); font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 72px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(197,165,114,0.18), transparent 55%),
    var(--ink);
  color: var(--paper);
  border-radius: 28px;
  margin: 0 24px 88px;
  max-width: calc(var(--max) + 48px);
  margin-left: auto; margin-right: auto;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 550; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-band p { color: rgba(247,244,239,0.65); margin: 0 0 28px; }
.cta-band .btn-primary {
  background: var(--gold-bright); color: var(--ink);
  box-shadow: 0 10px 28px rgba(197,165,114,0.3);
}
.cta-band .btn-primary:hover { background: #D4B888; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: var(--paper-2);
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 550; color: var(--ink);
  margin-bottom: 6px;
}
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-brand .brand-mark { height: 28px; width: auto; }
.footer-copy { color: var(--muted); font-size: 0.88rem; max-width: 320px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.88rem;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.88rem;
}
.footer-social a { color: var(--ink-soft); }
.footer-social a:hover { color: var(--ink); }
.footer-badge { display: inline-block; margin-top: 14px; }
.footer-badge img { display: block; height: auto; border: 0; }

/* ---------- scroll reveal (animation 1) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 600ppi upload ---------- */
.upscale-wrap { max-width: 40rem; }
.upscale-title {
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}
.upscale-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.upscale-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px 0 8px;
}
.upscale-card label:first-child { margin-top: 0; }
.upscale-card input[type="password"],
.upscale-card input[type="number"],
.upscale-card input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.upscale-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.upscale-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .upscale-size { grid-template-columns: 1fr; }
}
.upscale-card .btn { margin-top: 18px; }
.upscale-card .form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 1.3em;
}
.upscale-card .form-status.ok { color: var(--gold-deep); }
.upscale-card .form-status.bad { color: #8a3d2f; }
#upscale-result { margin-top: 16px; }
.upscale-wrap > .note { margin-top: 16px; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- blog ---------- */
.blog-page { padding: 56px 0 88px; }
.blog-page .wrap { max-width: 760px; }
.blog-page h1 {
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.blog-page .lede { max-width: 38rem; }
.blog-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--ink);
  text-decoration: none;
}
.blog-card:hover { border-color: var(--gold); text-decoration: none; }
.blog-card h2 {
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
.blog-card p { margin: 0; color: var(--muted); }
.blog-card-date {
  margin: 0 0 8px !important;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
}
.blog-crumbs a { color: var(--ink-soft); }
.blog-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 22px; }
.blog-hero { margin: 0 0 28px; }
.blog-hero img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.blog-body h2 {
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 36px 0 10px;
}
.blog-body h3 {
  font-family: var(--display);
  font-weight: 550;
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
.blog-body p, .blog-body li { color: var(--ink-soft); }
.blog-body ul, .blog-body ol { padding-left: 1.2em; margin: 0 0 16px; }
.blog-body li { margin: 6px 0; }
.blog-body pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
.blog-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.blog-body p code, .blog-body li code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.blog-body blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 8px;
}
.blog-body blockquote p { margin: 0; }
.blog-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
}
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.blog-body th, .blog-body td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.blog-body th {
  color: var(--ink);
  font-weight: 550;
}
.blog-cta {
  margin: 36px 0;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.blog-cta h2 {
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
.blog-cta p { color: var(--muted); margin: 0 0 16px; }
.blog-cta-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0 !important;
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .blog-page { padding: 32px 0 64px; }
  .blog-card, .blog-cta { padding: 18px; }
  .blog-cta .btn { width: 100%; }
}

/* ---------- account ---------- */
.account-page { padding: 48px 0 80px; }
.account-page h1 {
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}
.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 36rem;
}
.account-card label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}
.account-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.account-note { color: var(--muted); margin: 12px 0 0; }
.account-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; }
.account-table th, .account-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.account-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.account-section { margin-top: 36px; }
.account-section h2 {
  font-family: var(--display);
  font-weight: 550;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
