/* Budsmith site. All values are PROVISIONAL (no design system yet); see DESIGN.md at the project root. */
:root {
  /* color */
  --bg: #0b0907;
  --surface: #17130e;
  --surface-2: #211b13;
  --line: rgba(255, 244, 220, 0.10);
  --text: #f4eee4;
  --muted: #b3aa9a;
  --gold: #f5d17a;
  --gold-deep: #e0a93c;
  --on-gold: #1a1307;
  --focus: #ffe7a8;
  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h1: clamp(2.5rem, 6vw, 4.25rem);
  /* space (8px base, 4px mini unit) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf8f2;
    --surface: #ffffff;
    --surface-2: #f3ede1;
    --line: rgba(40, 28, 8, 0.12);
    --text: #1c1710;
    --muted: #625847;
    --gold: #8a5a00;      /* text-safe gold on light */
    --gold-deep: #6d4700;
    --focus: #8a5a00;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: var(--s-1); background: var(--gold); color: var(--on-gold); padding: var(--s-1) var(--s-2); border-radius: 8px; z-index: 10; }
.skip:focus { left: var(--s-2); }

.wrap { width: min(100% - 2 * var(--s-3), var(--max)); margin-inline: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.accent { background: linear-gradient(100deg, var(--gold) 10%, var(--gold-deep) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: light) { .accent { background: none; color: var(--gold); } }

/* header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: var(--s-3); margin-left: var(--s-3); }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.lang { font-size: var(--fs-sm); color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.lang [aria-current] { color: var(--text); font-weight: 700; }

/* buttons */
.btn { --btn-bg: var(--gold); --btn-text: var(--on-gold); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; min-height: 48px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, filter .15s ease; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--gold) 60%, transparent); }
.btn-primary:hover { color: var(--btn-text); filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.95rem; }

/* hero */
.hero { position: relative; padding: var(--s-6) 0 var(--s-6); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-5); align-items: center; position: relative; }
.hero .lead { font-size: var(--fs-lg); color: var(--muted); max-width: 34rem; margin-top: var(--s-3); }
.hero h1 { margin-top: var(--s-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.fine { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); max-width: 34rem; }
.frame { border-radius: 22px; padding: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 30%, var(--surface-2)), var(--surface)); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); }
.frame img { border-radius: 14px; }
.hero .frame { max-width: 340px; margin-inline: auto; transform: rotate(1.5deg); }

/* sections */
section { padding: var(--s-6) 0; }
.sec-head { max-width: 42rem; margin-bottom: var(--s-5); display: grid; gap: var(--s-2); }
.sec-head p { color: var(--muted); font-size: var(--fs-lg); }

/* features: asymmetric bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: grid; gap: var(--s-1); align-content: start; }
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.card p { color: var(--muted); }
.b-a { grid-column: span 4; } .b-b { grid-column: span 2; }
.b-c { grid-column: span 2; } .b-d { grid-column: span 2; } .b-e { grid-column: span 2; }
.b-f { grid-column: span 6; }

/* spotlight */
.spot { background: linear-gradient(180deg, var(--surface), var(--bg)); border-block: 1px solid var(--line); }
.spot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
.spot h2 { margin: var(--s-1) 0 var(--s-3); }
.spot ul { margin: var(--s-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.spot ul li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.spot ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--gold); }
.spot ul li strong { color: var(--text); }

/* flow (pause when removed) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); counter-reset: none; }
.flow li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-2); align-items: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); }
.flow .step { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--gold); color: var(--on-gold); }
@media (prefers-color-scheme: light) { .flow .step { background: #f5d17a; color: #1a1307; } }
.flow p { color: var(--muted); margin-top: 2px; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.shot figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-1); padding-inline: 4px; }

/* facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.facts h3 { margin-bottom: var(--s-2); }
.facts ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s-1); color: var(--muted); }
.facts li strong { color: var(--text); }

/* pricing */
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: var(--s-5); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-4); align-items: center; }
.badge { display: inline-block; font-size: var(--fs-sm); font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.price h2 { margin: var(--s-2) 0; }
.price .alt { border-left: 1px solid var(--line); padding-left: var(--s-4); display: grid; gap: var(--s-2); }

/* faq */
.faq { max-width: 46rem; display: grid; gap: var(--s-1); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-2); }
summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); margin-top: var(--s-1); }

/* footer */
footer { border-top: 1px solid var(--line); padding: var(--s-5) 0; color: var(--muted); font-size: var(--fs-sm); }
footer .wrap { display: grid; gap: var(--s-2); }
footer .links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* legal pages */
.legal { padding: var(--s-6) 0; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.375rem; margin: var(--s-4) 0 var(--s-1); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; display: grid; gap: var(--s-1); margin: var(--s-1) 0; }
.legal strong { color: var(--text); }

@media (max-width: 960px) {
  .hero .wrap, .spot .wrap, .price, .facts, .gallery { grid-template-columns: 1fr; }
  .hero .frame { max-width: 300px; transform: none; }
  .bento > * { grid-column: span 6 !important; }
  .price .alt { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-3); }
  .nav { display: none; }
  .hero, section { padding: var(--s-5) 0; }
}
@media (max-width: 480px) {
  .top .btn { display: none; }
}

/* light mode: a gold button with dark text (the text-safe gold above is too dark to fill a button) */
@media (prefers-color-scheme: light) {
  .btn-primary { --btn-bg: #f5d17a; --btn-text: #1a1307; box-shadow: 0 8px 24px -10px rgba(138, 90, 0, .55); }
}

/* ---------------- motion (progressive enhancement: everything is visible without JavaScript) ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shimmer { to { background-position: 200% 0; } }

.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.hero::before { animation: glow 7s ease-in-out infinite; }
.hero-frame { animation: float 7s ease-in-out infinite; transition: transform .25s ease; will-change: transform; }
.accent { background-size: 200% 100%; background-image: linear-gradient(100deg, var(--gold) 0%, #fff3cf 25%, var(--gold-deep) 50%, var(--gold) 100%); animation: shimmer 9s linear infinite; }
@media (prefers-color-scheme: light) { .accent { animation: none; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.card { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.js .reveal.in.card:hover { transform: translateY(-3px); }

/* the three steps light up one after the other */
.flow li { transition: border-color .4s ease, background .4s ease, transform .4s ease, opacity .7s ease; }
.flow li.on { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 9%, var(--surface-2)); }
.flow li.on .step { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 24%, transparent); }

.top { transition: box-shadow .25s ease; }
.top.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.btn-primary:active { transform: translateY(0) scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .rise, .hero-frame, .hero::before, .accent { animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
