@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/tool-assets/fonts/geist-latin.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/tool-assets/fonts/playfair-latin.woff2) format("woff2"); }
/* Styles for the free tool pages (plain static pages; they match the site's dark theme and gold accent). */
:root {
  --background: #0b0b0e; --surface: #16161c; --surface-raised: #1e1e26; --border: #2a2a34;
  --foreground: #f3efe6; --muted: #a8a2b0; --accent: #c9a84c; --accent-light: #dcb450; --accent-foreground: #14140f;
  --good: #6fcf8a; --warn: #e8b04a; --bad: #e27676;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, canvas, svg { max-width: 100%; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 52rem; }

/* header, banner and footer: the same look as the rest of the site (components/SiteHeader.tsx, SiteFooter.tsx, AnnouncementBanner.tsx) */
.bar { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.banner { display: flex; align-items: center; justify-content: center; gap: .75rem; background: var(--accent); color: var(--accent-foreground); padding: .5rem 1rem; text-align: center; font-size: .875rem; font-weight: 500; }
.banner button { background: none; border: 0; color: color-mix(in srgb, var(--accent-foreground) 70%, transparent); cursor: pointer; font: inherit; padding: 0; }
.banner button:hover { color: var(--accent-foreground); }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); background: color-mix(in srgb, var(--background) 85%, transparent); backdrop-filter: blur(8px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 2rem; letter-spacing: -.025em; color: var(--foreground); }
.brand:hover { text-decoration: none; }
.nav { display: none; align-items: center; gap: 1.75rem; font-size: .875rem; color: var(--muted); }
.nav > a { color: var(--muted); transition: color .15s; }
.nav > a:hover { color: var(--foreground); text-decoration: none; }
.actions { display: flex; align-items: center; gap: 1rem; }
.account { display: none; font-size: .875rem; color: var(--muted); }
.account:hover { color: var(--foreground); text-decoration: none; }
.menu { position: relative; }
.menu > button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: .25rem; padding: 0; transition: color .15s; }
.menu > button:hover { color: var(--foreground); }
.menu > button.start { background: var(--accent); color: var(--accent-foreground); border-radius: 999px; padding: .5rem 1.25rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; transition: background .15s; }
.menu > button.start:hover { background: var(--accent-light); color: var(--accent-foreground); }
.chev { width: .875rem; height: .875rem; transition: transform .15s; }
.menu.open .chev { transform: rotate(180deg); }
.dd { display: none; position: absolute; z-index: 30; }
.menu.open .dd { display: block; }
.dd.dd-more { left: 50%; width: 11rem; transform: translateX(-50%); padding-top: .75rem; }
.dd.dd-start { right: 0; width: 14rem; margin-top: .5rem; }
.panel { overflow: hidden; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.dd-more .panel { padding: .25rem 0; }
.dd-more .panel a { display: block; padding: .5rem 1rem; font-size: .875rem; color: var(--muted); }
.dd-more .panel a:hover { background: var(--surface-raised); color: var(--foreground); text-decoration: none; }
.dd-more .panel a.current { color: var(--foreground); }
.dd-start .panel a { display: block; padding: .75rem 1rem; }
.dd-start .panel a:hover { background: var(--surface-raised); text-decoration: none; }
.dd-start .t { display: block; font-size: .875rem; font-weight: 600; color: var(--foreground); }
.dd-start .d { display: block; font-size: .75rem; color: var(--muted); }
.burger { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--foreground); cursor: pointer; padding: 0; }
.burger svg { width: 1rem; height: 1rem; }
.mobile-nav { flex-direction: column; gap: .25rem; border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent); padding: .75rem 1.5rem; font-size: .875rem; }
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a { color: var(--muted); border-radius: .5rem; padding: .5rem; }
.mobile-nav a:hover { background: var(--surface); color: var(--foreground); text-decoration: none; }
@media (min-width: 1024px) { .nav { display: flex; } .account { display: inline; } .burger, .mobile-nav { display: none !important; } }
.site-footer { border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent); margin-top: 3rem; padding: 2.5rem 0; color: var(--muted); font-size: .875rem; }
.site-footer .cols { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .site-footer .cols { flex-direction: row; justify-content: space-between; } }
.site-footer .about { max-width: 24rem; }
.site-footer .about p { margin: 0; line-height: 1.625; }
.site-footer .about .name { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.site-footer .about .name + p { margin-top: .5rem; }
.site-footer .lists { display: flex; gap: 3rem; }
@media (min-width: 640px) { .site-footer .lists { gap: 4rem; } }
.site-footer .head { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--foreground); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .5rem; }
.site-footer a { color: var(--muted); transition: color .15s; }
.site-footer a:hover { color: var(--foreground); text-decoration: none; }
.site-footer .copy { margin: 2rem 0 0; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); padding-top: 1.5rem; font-size: .75rem; }

/* page */
main.page { padding: 2.2rem 0 1rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0.7rem 0 0.6rem; }
h2 { font-family: var(--serif); font-size: 1.5rem; margin: 2.4rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 52rem; margin: 0 0 1.4rem; }
p { margin: 0.6rem 0; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.25rem 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.privacy { display: inline-flex; gap: 0.5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; }
.privacy b { color: var(--good); font-weight: 600; }

/* tool panels */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.3rem; }
.card.raised { background: var(--surface-raised); }
.grid { display: grid; gap: 1.1rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1100px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.field label, .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
input[type="number"], input[type="text"], input[type="search"], select {
  width: 100%; background: var(--background); color: var(--foreground); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.6rem 0.75rem; font: inherit; }
input:focus, select:focus, button:focus-visible, a:focus-visible, .drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.row > .field { flex: 1 1 8rem; margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.check input { accent-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; background: var(--accent); color: var(--accent-foreground); border: 0; border-radius: 999px; padding: 0.6rem 1.3rem; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--accent-light); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }
.btn.small { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 0.35rem 0.9rem; font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-foreground); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; border-radius: 999px; padding: 0.1rem 0.65rem; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border); white-space: nowrap; }
.chip.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 0.7rem 1rem; border-radius: 0 0.6rem 0.6rem 0; color: var(--muted); font-size: 0.92rem; }
.stat { background: var(--background); border: 1px solid var(--border); border-radius: 0.8rem; padding: 0.7rem 0.9rem; }
.stat b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.result { font-size: 1.05rem; }
.result strong { color: var(--accent); }

/* file viewer */
.drop { border: 2px dashed var(--border); border-radius: 1rem; padding: 2rem 1rem; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--surface); }
.drop strong { color: var(--foreground); }
.stage { position: relative; background: #101014; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; touch-action: none; }
.stage canvas { display: block; width: 100%; height: auto; cursor: grab; }
.stage canvas.grabbing { cursor: grabbing; }
.stage .hint { position: absolute; left: 0.7rem; bottom: 0.5rem; font-size: 0.75rem; color: #8d8794; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.swatch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.swatch i { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1px solid #ffffff40; display: inline-block; }
.error { color: var(--bad); }
.hidden { display: none !important; }

/* tool index */
.tool-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem; color: inherit; transition: border-color 0.15s; }
.tool-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); text-decoration: none; }
.tool-card h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--foreground); }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tool-card .tag { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* FAQ and calls to action */
details { border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); }
.cta-box { margin-top: 2.6rem; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 1rem; padding: 1.6rem; text-align: center; }
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--muted); max-width: 40rem; margin-left: auto; margin-right: auto; }

/* printable hoop template */
.sheet-stage { background: var(--surface-raised); border: 1px solid var(--border); border-radius: .8rem; padding: 1.2rem; overflow: auto; text-align: center; }
.sheet-stage #sheet { display: inline-block; text-align: left; }
.sheet { background: #fff; color: #000; display: inline-block; padding: 0; box-shadow: 0 6px 24px rgba(0,0,0,.55); }
@media print {
  @page { margin: 8mm; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .banner, .no-print, .crumbs, h1, .lead, .privacy, .cta-box { display: none !important; }
  main.page { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .sheet { box-shadow: none; }
  .sheet-stage { background: none; border: 0; padding: 0; overflow: visible; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
