/* Utteria site layout — built on the design tokens in tokens.css */
:root {
  --site-max: 1160px;
  --site-gutter: 24px;
  --product-bipora: oklch(84% 0.16 92);
  --product-poppets: oklch(62% 0.16 300);
  --hero-glow: oklch(94% 0.045 150 / 0.8);
  --ink-on-accent: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-subtle); color: var(--fg-strong); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.narrow { max-width: 780px; }
.eyebrow { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); color: var(--fg-strong); margin: 0; letter-spacing: var(--tracking-tight); }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; font-weight: 820; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 18px; font-weight: 750; }
p { margin: 0; }
.lede { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); max-width: 620px; }
.section-sub { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 620px; }
.text-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-weight: 700; color: var(--accent); }
.text-link:hover { color: var(--accent-hover); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-strong); font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: inline-flex; flex: none; }
.brand-word { line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-inline-start: auto; font-size: 14px; color: var(--muted); }
.site-nav a:hover { color: var(--fg-strong); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--fg-strong); background: var(--surface-2); }
.nav-toggle { display: none; margin-inline-start: auto; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--radius-md); background: var(--accent); color: var(--ink-on-accent); border: 1px solid transparent; font-size: 14px; font-weight: 700; line-height: 1.2; transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast), box-shadow var(--duration-fast); }
.btn:hover { background: var(--accent-hover); color: var(--ink-on-accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--fg-strong); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg-strong); box-shadow: none; }
.btn-light { background: #fff; color: #173025; }
.btn-light:hover { background: #f3fbf6; color: #173025; }
.btn-small { min-height: 36px; padding: 7px 14px; font-size: 13px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero::before { content: ""; position: absolute; inset: -30% 35% 30% -10%; background: radial-gradient(closest-side, var(--hero-glow), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-art { position: relative; min-height: 430px; }
.art-card { position: absolute; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.art-card img { width: 100%; height: 100%; object-fit: cover; }
.art-card span { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: color-mix(in oklch, var(--fg-strong) 70%, transparent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.art-bipora { bottom: 0; left: 2%; top: auto; right: auto; width: 50%; aspect-ratio: 1 / 1; transform: rotate(-3deg); background: #172230; z-index: 2; }
.art-bipora img { object-fit: contain; padding: 10%; }
.art-poppets { top: 6%; right: 2%; bottom: auto; left: auto; width: 50%; aspect-ratio: 1 / 1; transform: rotate(4deg); z-index: 1; }
.art-bipora span { top: 12px; bottom: auto; }
.art-poppets span { top: 12px; left: auto; right: 14px; bottom: auto; }
.art-poppets img { object-position: center; }
.art-note { position: absolute; right: 0; bottom: 4%; z-index: 2; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted); }

.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs); transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-emphasized); }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-body { padding: 22px 22px 24px; }
.product-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-head h3, .product-head h2 { margin: 0; }
.product-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #151515; font-family: var(--font-display); font-weight: 850; font-size: 14px; }
.product-mark.bipora { background: var(--product-bipora); }
.product-mark.poppets { background: var(--product-poppets); color: #fff; }
.product-kind { margin-inline-start: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.product-body > p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 650; }
.product-body .text-link { margin-top: 18px; }

/* values */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.value-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 10px; background: var(--accent-subtle); color: var(--accent); font-size: 18px; }
.value-card p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* about teaser */
.about-teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.studio-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.studio-stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.studio-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.studio-stat b { min-width: 64px; font-family: var(--font-display); font-size: 28px; font-weight: 820; color: var(--accent); }
.studio-stat span { color: var(--muted); font-size: 13px; }

/* contact band */
.contact-band { padding: clamp(48px, 6vw, 72px) 0; background: var(--fg-strong); color: var(--bg); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-band .eyebrow { color: var(--accent); }
.contact-band h2 { color: var(--bg); }
.contact-band p:not(.eyebrow) { margin-top: 10px; color: color-mix(in oklch, var(--bg) 72%, transparent); max-width: 540px; }
.contact-band .btn { flex: none; }
[data-theme="dark"] .contact-band { background: var(--surface-2); color: var(--fg); }
[data-theme="dark"] .contact-band h2 { color: var(--fg-strong); }
[data-theme="dark"] .contact-band p:not(.eyebrow) { color: var(--muted); }
[data-theme="dark"] .contact-band .btn-light { background: var(--accent); color: var(--ink-on-accent); }

/* page hero */
.page-hero { padding: clamp(52px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.page-hero .lede { max-width: 700px; }

/* product detail */
.product-stack { display: grid; gap: 28px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.detail-media { min-height: 420px; background: var(--surface-2); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.detail-copy .lede { margin-top: 16px; max-width: none; }
.feature-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; }
.feature-list li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 800; }
.detail-copy .btn { margin-top: 22px; align-self: flex-start; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-copy h2 { margin-top: 30px; font-size: 26px; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin-top: 12px; color: var(--muted); max-width: 620px; }
.about-note { position: sticky; top: 92px; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.about-fact { display: flex; flex-direction: column; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.about-fact:last-child { border-bottom: 0; }
.about-fact b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.about-fact span { font-size: 14px; color: var(--fg-strong); font-weight: 650; }
.fact-table { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.fact-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact-row dt { font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .03em; }
.fact-row dd { margin: 0; color: var(--fg-strong); font-size: 14px; overflow-wrap: anywhere; }

/* contact / support */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.contact-email { display: block; margin-top: 10px; font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--fg-strong); overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent); }
.contact-card p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.contact-copy h2 { margin-top: 28px; font-size: 22px; }
.contact-copy h2:first-child { margin-top: 0; }
.contact-copy p { margin-top: 8px; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support-card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.support-card h2 { font-size: 20px; }
.support-card p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.support-card a { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 14px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--fg-strong); }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 680px; }

/* legal */
.legal-hero { background: var(--bg); border-bottom: 0; }
.legal-date { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.legal-doc { max-width: 760px; }
.legal-intro { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.legal-block { margin-top: 34px; }
.legal-block h2 { font-size: 21px; }
.legal-block p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, .6fr); gap: 28px; }
.footer-brand .brand-word { font-size: 20px; }
.footer-tagline { margin-top: 12px; color: var(--muted); font-size: 13px; max-width: 260px; }
.footer-col h2 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-col a { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--fg-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; }

/* 404 */
.notfound { min-height: 52vh; }

@media (max-width: 940px) {
  .hero-grid, .about-teaser, .about-grid, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 560px; width: 100%; margin-inline: auto; }
  .product-detail .detail-media { min-height: 320px; }
  .value-grid, .support-grid { grid-template-columns: 1fr 1fr; }
  .about-note { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --site-gutter: 18px; }
  h1 { font-size: clamp(34px, 11vw, 46px); }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 60px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--fg-strong); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-actions .btn { display: none; }
  .product-grid, .value-grid, .support-grid { grid-template-columns: 1fr; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .contact-inner .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
  .hero-art { min-height: 300px; }
  .art-note { display: none; }
  .detail-media { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

[data-theme="dark"] .hero::before { opacity: .28; }
[data-theme="dark"] .page-hero { background: var(--bg); }
