/* Fabritool site styles. Black / white / gray trial theme.
   Colors and fonts are the variables below, so a re-theme is mostly a change here. */
@font-face { font-family: "Sora"; src: url("fonts/Sora.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0e0e0e;             /* header, hero and dark bands */
  --ink-raised: #1c1c1c;
  --on-ink: #ffffff;
  --on-ink-muted: #a3a3a3;
  --grid: rgba(255, 255, 255, .055);
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --text: #111111;
  --muted: #5e5e5e;
  --line: #e3e3e3;
  --accent: #111111;          /* buttons on light backgrounds */
  --accent-hover: #333333;
  --radius: 14px;
  --font-head: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --bar: 48px;
  /* logo tones on light backgrounds */
  --logo-k: #111111; --logo-m: #7a7a7a; --logo-l: #c4c4c4; --logo-bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; }
h1, h2, h3, .brand, .btn, .kicker, .section-title { font-family: var(--font-head); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 56px; height: 56px; stroke-width: 1.4; }

/* the logo: its tones follow the background it sits on */
.logo { display: block; width: 32px; height: 32px; flex: none; }
.logo .k { fill: var(--logo-k); }
.logo .m { fill: var(--logo-m); }
.logo .l { fill: var(--logo-l); }
.logo .bg { fill: var(--logo-bg); }
.logo .gap { stroke: var(--logo-bg); }
.logo .ln { stroke: var(--logo-k); }
.on-dark, .site-header, .hero, .cta-band, .app-bar, .tile-dark, .tile-ink {
  --logo-k: #ffffff; --logo-m: #8f8f8f; --logo-l: #4d4d4d; --logo-bg: var(--ink);
}

/* header */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.02em; text-decoration: none; color: inherit; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 auto; }
.nav a { color: var(--on-ink-muted); text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--on-ink); }
.nav a[aria-current="page"] { color: var(--on-ink); background: var(--ink-raised); }
.account { display: flex; gap: 8px; }
[aria-disabled="true"] { cursor: default; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px;
       padding: 10px 20px; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #dcdcdc; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 14px; }

/* hero: dark band with a faint drafting grid, headline beside the video */
.hero { background-color: var(--ink); color: var(--on-ink);
        background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
        background-size: 48px 48px; background-position: center top; padding: 80px 0 88px; }
.hero-small { padding: 56px 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.035em; font-weight: 700; }
.lede { font-size: 19px; color: var(--on-ink-muted); margin: 0 0 30px; max-width: 560px; }
.hero-small .lede { margin-bottom: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kicker { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--on-ink-muted); margin-bottom: 14px; }
.hero-note { color: var(--on-ink-muted); font-size: 14px; margin: 16px 0 0; }

.media-card { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-raised);
              box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.media-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--on-ink-muted);
                     font-size: 14px; background: radial-gradient(circle at 30% 20%, #2e2e2e, #161616 70%); }
.play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.play .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-left: 3px; }

.intro { text-align: center; font-size: 19px; color: var(--muted); max-width: 760px; margin-top: 56px; }

/* three columns of icon + title + text */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 64px; text-align: center; }
.feature .icon-lg { margin: 0 auto 12px; display: block; }
.feature h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.more { font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* product cards */
.products-band { background: var(--bg-soft); margin-top: 80px; padding: 64px 0 72px; }
.products-band-flush { margin-top: 0; padding-top: 48px; }
.section-title { font-size: 30px; letter-spacing: -.02em; margin: 0 0 28px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
           text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.product[href]:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.product-name { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.product-text { color: var(--muted); flex: 1; }
.product-soon { opacity: .75; }
/* the home page's kinds of tools (Studios, Converters, Generators): a titled row each; cards keep one width */
.kind-group + .kind-group { margin-top: 44px; }
.kind-title { font-size: 22px; letter-spacing: -.01em; margin: 0 0 4px; }
.kind-text { color: var(--muted); margin: 0 0 18px; }
.kind-group .products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.badge { display: inline-block; font-family: var(--font-head); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
         background: var(--text); color: #fff; border-radius: 999px; padding: 3px 9px; vertical-align: middle; }

/* free Markdown text */
.prose { margin-top: 56px; max-width: 780px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; letter-spacing: -.02em; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose a { text-decoration: underline; }
.prose img { max-width: 100%; border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); background: var(--bg-soft); margin: 16px 0; }

.cta-band { background: var(--ink); color: var(--on-ink); margin-top: 80px; padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row h2 { margin: 0; font-size: 30px; letter-spacing: -.02em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; color: var(--muted); font-size: 14px; }
.cta-band + .site-footer, main:has(.cta-band:last-child) + .site-footer { margin-top: 0; }
.footer-row { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; margin-right: auto; }
.footer-row nav a { text-decoration: none; }
.footer-row nav a:hover { color: var(--text); }
.brand-small { font-size: 16px; color: var(--text); }
.brand-small .logo { width: 22px; height: 22px; }

/* the app view: slim bar on top, the app fills the rest of the window */
body.app-mode { height: 100vh; overflow: hidden; }
.app-bar { height: var(--bar); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--ink); color: var(--on-ink); font-size: 14px; }
.app-bar .brand { font-size: 17px; }
.app-bar .logo { width: 24px; height: 24px; }
.app-switch { margin-left: 6px; }
.app-switch-top { font: 600 15px/1.6 var(--font-head); color: var(--on-ink); background: var(--ink-raised); padding: 3px 10px 3px 12px; border-radius: 999px; }
.app-switch-top:hover, .app-switch:focus-within .app-switch-top { background: #2a2a2a; }
.nav-menu-head { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--on-ink-muted); }
.nav-menu-head ~ .nav-menu-head, .nav-menu-head ~ .nav-menu-group { border-top: 1px solid #2e2e2e; margin-top: 6px; padding-top: 12px; }   /* (each kind of tool apart) */
.nav-menu a.nav-menu-group { font-weight: 600; }
.nav-menu-current { padding: 8px 12px; border-radius: 8px; white-space: nowrap; background: #2a2a2a; color: var(--on-ink); }   /* (the app that's open) */
.btn-feedback .short { display: none; }
.app-bar-space { flex: 1; }
.app-bar-link { color: var(--on-ink-muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.app-bar-link:hover { color: var(--on-ink); background: var(--ink-raised); }
.app-frame { flex: 1; width: 100%; border: 0; display: block; }

/* the /_brand page (testing only) */
.group-title { margin: 56px 0 -24px; }
.concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.concept { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.concept-head { display: flex; align-items: center; gap: 10px; }
.concept h2 { font-size: 20px; margin: 0; }
.concept-why { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.concept-row { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 10px; }
.tile { border-radius: 10px; padding: 16px; display: grid; place-items: center; }
.tile .logo { width: 100%; height: auto; max-width: 110px; }
.tile-light { border: 1px solid var(--line); }
.tile-dark { background: var(--ink); }
.tile-sizes { gap: 10px; padding: 8px 0; }
.sz .logo { width: auto; height: auto; }
.sz-48 .logo { width: 48px; } .sz-32 .logo { width: 32px; } .sz-16 .logo { width: 16px; }
.lockup { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: -.03em; }
.lockup .logo { width: 40px; height: 40px; }
.fonts { display: grid; gap: 16px; margin-bottom: 24px; }
.font-sample { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; }
.font-1 { font-family: "Sora", sans-serif; } .font-2 { font-family: "Space Grotesk", sans-serif; } .font-3 { font-family: "Outfit", sans-serif; }
.font-name { font-family: var(--font); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.font-word { display: flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.font-word .logo { width: 44px; height: 44px; }
.font-slogan { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.font-body { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav { order: 3; width: 100%; margin: 0; }
  .header-row { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
  .account { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 56px; }
  .lede { font-size: 17px; }
  .nav a { padding: 6px 10px; }
  .concept-row { grid-template-columns: 1fr 1fr; }
  .tile-sizes { grid-column: span 2; display: flex; justify-content: center; }
}

/* header menu: Tools dropdown (opens on hover, and on tap/keyboard via focus) */
.nav-group { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: 500 15px/1.6 var(--font);
           color: var(--on-ink-muted); padding: 6px 10px 6px 14px; border-radius: 999px; }
.nav-top:hover, .nav-group:focus-within .nav-top { color: var(--on-ink); }
.nav-top.is-active { color: var(--on-ink); background: var(--ink-raised); }
.nav-top .chev { width: 16px; height: 16px; stroke-width: 2; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; margin-top: 4px; z-index: 20;
            background: var(--ink-raised); border: 1px solid #2e2e2e; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* keeps hover across the gap */
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; }
.nav-menu a { padding: 8px 12px; border-radius: 8px; white-space: nowrap; text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: #2a2a2a; color: var(--on-ink); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--bg-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* pricing */
.license-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; font-family: var(--font-head);
                font-size: 18px; font-weight: 600; text-align: center; }
.license-note .icon { flex: none; stroke-width: 2.4; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-featured { border: 2px solid var(--text); }
.plan-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.plan h2 { margin: 0; font-size: 22px; }
.plan-price { margin: 0; font-family: var(--font-head); font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan-text { margin: 0; color: var(--muted); flex: 1; }
.plan .btn { align-self: flex-start; margin-top: 6px; }
.compare-wrap { margin-top: 64px; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); font-size: 17px; background: var(--bg-soft); }
.compare th[scope="row"] { text-align: left; font-weight: 500; }
.compare th[scope="row"], .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 170px; }
.compare thead th:first-child { background: var(--bg-soft); }
.compare td { color: var(--muted); }
.compare .compare-group th { text-align: left; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
                             color: var(--muted); background: var(--bg-soft); padding-top: 10px; padding-bottom: 10px; }
.compare .compare-group span { position: sticky; left: 16px; }
.compare .icon { width: 22px; height: 22px; stroke-width: 2.4; vertical-align: middle; }
.compare .yes { color: var(--text); }
.compare .no { color: #b0b0b0; }

/* schools: inquiry form */
.form-band { background: var(--bg-soft); margin-top: 80px; padding: 64px 0 72px; scroll-margin-top: 64px; }
main:has(.form-band:last-child) + .site-footer { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.form-intro { color: var(--muted); margin: 0; }
.inquiry, .form-done { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.inquiry input, .inquiry select, .inquiry textarea { font: 16px/1.4 var(--font); padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 10px;
                                                   background: var(--bg); color: var(--text); width: 100%; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--text); outline-offset: 1px; border-color: var(--text); }
.inquiry textarea { resize: vertical; }
.optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-privacy { color: var(--muted); font-size: 13px; flex: 1; min-width: 200px; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #f6e3e3; color: #7a1d1d; font-weight: 600; }
.form-done { justify-items: start; }
.form-done h3 { margin: 0; font-size: 22px; }
.form-done p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .license-note { font-size: 16px; } }

/* printing (e.g. saving the /_brand page as a PDF) */
@media print {
  @page { size: letter; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { min-height: 0; display: block; }
  .site-header, .site-footer { display: none !important; }
  .hero { padding: 28px 0 24px; }
  .hero .wrap { padding: 0 24px; }
  .wrap { max-width: none; padding: 0; }
  .concepts { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
  .group-title { margin: 28px 0 -10px; break-after: avoid; }
  .group-title:first-child { margin-top: 0; }
  .concept, .font-sample { break-inside: avoid; }
  .brand-sheet > section:not(.hero) + section .section-title { break-before: auto; }
}

/* "Provide Beta Feedback" (header and app bar): opens the feedback form in a new tab */
.btn-feedback { background: transparent; color: var(--on-ink); border-color: #5a5a5a; white-space: nowrap; }
.btn-feedback:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, .08); }
.btn-feedback .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.app-bar .btn-feedback { padding: 4px 12px; font-size: 13px; }
@media (max-width: 640px) {
  .account [aria-disabled="true"] { display: none; }        /* (Log in / Sign up: placeholders until Phase 3) */
  .app-bar .brand span, .app-bar-link { display: none; }
  .btn-feedback .long { display: none; }
  .btn-feedback .short { display: inline; }
}

/* the main address while in beta (splash.html) */
.splash { display: flex; flex-direction: column; }
.splash-hero { flex: 1; display: flex; align-items: center; padding: 96px 0 104px; }
.splash-inner { max-width: 820px; }
.splash-inner h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 20px; }
.badge-dark { background: var(--ink-raised); color: var(--on-ink); border: 1px solid #3a3a3a; padding: 5px 12px; border-radius: 999px; font-size: 12px; }
.splash-tools { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
                border-top: 1px solid #2a2a2a; padding-top: 32px; }
.splash-tools li { display: flex; gap: 12px; color: var(--on-ink-muted); font-size: 15px; line-height: 1.5; }
.splash-tools .icon { flex: none; color: var(--on-ink); }
.splash-tools b { display: block; color: var(--on-ink); font-family: var(--font-head); font-size: 17px; margin-bottom: 2px; }
@media (max-width: 760px) { .splash-tools { grid-template-columns: 1fr; } .splash-hero { padding: 56px 0 64px; } }

/* features shown with screenshots of the app (a feature whose picture is a file in static/shots/) */
.features-shots { gap: 32px; }
.feature-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px;
                border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); margin-bottom: 18px; background: var(--bg-soft); }
.features-shots { text-align: left; }

/* product cards with a screenshot across the top (a product whose picture is a file in static/shots/) */
.product-shot { display: block; width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
                margin: -28px -28px 8px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-soft); }
.product-shot-icon { display: grid; place-items: center; color: var(--muted); }
.product { overflow: hidden; }

/* "Provide Beta Feedback": the form that opens over the page (templates/_beta_feedback.html) */
button.btn { font-family: var(--font-head); }
.fbk { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px;
       background: var(--bg); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); font: 15px/1.5 var(--font); }
.fbk::backdrop { background: rgba(0, 0, 0, .5); }
.fbk [hidden] { display: none !important; }
.fbk-form, .fbk-done { padding: 24px 26px 22px; }
.fbk-head { display: flex; align-items: center; justify-content: space-between; }
.fbk h2 { font-family: var(--font-head); font-size: 24px; letter-spacing: -.02em; margin: 0; }
.fbk-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.fbk-x:hover { color: var(--text); }
.fbk-head-btns { display: flex; align-items: center; gap: 6px; }
.fbk-min { font-size: 24px; }
/* the form, minimized: a small dark bar at the bottom right (the apps' warnings sit at the bottom left) */
.fbk-mini { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px;
            background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 6px 6px 6px 14px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-family: var(--font-head); font-size: 14px; }
.fbk-mini[hidden] { display: none; }
.fbk-mini-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; white-space: nowrap; }
.fbk-mini-label .icon { width: 16px; height: 16px; stroke-width: 1.8; }
@media (max-width: 480px) { .fbk-mini-label { display: none; } }
.fbk-lede { color: var(--muted); margin: 4px 0 18px; }
.fbk-field { display: block; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fbk-field legend, .fbk-label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; padding: 0; }
.fbk-field em { font-family: var(--font); font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.fbk textarea, .fbk input[type="email"] { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; background: var(--bg); }
.fbk textarea:focus, .fbk input[type="email"]:focus { outline: none; border-color: var(--text); }
.fbk-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbk-rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fbk-choice { position: relative; }
.fbk-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fbk-choice span { display: block; text-align: center; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; }
.fbk-choice input:checked + span { border-color: var(--text); background: var(--text); color: #fff; }
.fbk-choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.fbk-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.fbk-shot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fbk-hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.fbk-preview { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.fbk-preview img { width: 220px; max-width: 60%; border: 1px solid var(--line); border-radius: 8px; }
.fbk-error { color: #b42318; background: #fef3f2; border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; font-size: 14px; }
.fbk-actions { display: flex; justify-content: flex-end; gap: 10px; }
.fbk-done { text-align: center; padding: 40px 26px 30px; }
.fbk-done p { color: var(--muted); margin: 8px 0 22px; }
@media (max-width: 480px) { .fbk-kinds { grid-template-columns: 1fr; } .fbk-form { padding: 20px 18px 18px; } }

/* the one-time note about cookies and browser storage (bottom of every page) */
.storage-notice { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; width: min(680px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; background: var(--ink); color: var(--on-ink, #fff);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.45; }
.storage-notice[hidden] { display: none; }
.storage-notice p { margin: 0; flex: 1; }
.storage-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.storage-notice .btn { flex: none; }
@media (max-width: 520px) { .storage-notice { flex-direction: column; align-items: stretch; text-align: left; } }
