/* The public site https://tradesaverhq.com (tradesaver/site/). The suite site of TradeSaver: RingSaver and TicketSaver.
   Same structure as the TicketSaver site (ticketsaver/site/style.css): Barlow Semi Condensed and Inter, light and dark
   from the system setting (prefers-color-scheme). No scripts and no inline styles on any page (the CSP in _headers
   refuses them). The waves are SVG files in brand/ (wave-*.svg), not data URIs: the CSP allows images from this
   origin only (img-src 'self'). All colour tokens are in the two blocks between the PALETTE markers.
   Palette from the TradeSaver logo (2026-11-22): pale mint, deep navy, teal; RingSaver blue and TicketSaver teal only
   on the product card edges. Contrast and the no-brown rule: scripts/test/site.test.mjs. */
/* Fonts: self-hosted from /fonts/ (woff2 from Google Fonts, latin and latin-ext only). SIL Open Font License 1.1:
   /fonts/OFL.txt. No request goes to Google. */
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/barlow-semi-condensed-600-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/barlow-semi-condensed-600-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:"Barlow Semi Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/barlow-semi-condensed-700-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/barlow-semi-condensed-700-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:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-var-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-var-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}
/* PALETTE START */
:root{
  --bg:#E8F4F3; --surface:#FFFFFF; --surface-2:#F0F8F7; --surface-3:#DCEDEB; --hair:#D5E8E6; --line:#B9D6D3; --border:#5F7F86;
  --text:#142B44; --text-2:#2A425A; --muted:#4A6072; --accent:#0F6870; --kicker:#0F6870; --accent-soft:#D3EEEA; --accent-line:#9FD4CC; --chip-ink:#0D5A61;
  --primary:#14304A; --primary-lo:#1E4366; --on-primary:#FFFFFF; --primary-edge:#14304A; --primary-glow:rgba(20,48,74,.30);
  --mark:#178086; --badge:#178086; --on-badge:#FFFFFF;
  --rs:#2563EB; --ts:#3FAEB4;
  --wave-hero:url(/brand/wave-hero.svg); --wave-top:url(/brand/wave-top.svg); --wave-band:url(/brand/wave-band.svg); --wave-lines:url(/brand/wave-lines.svg);
  --ink-bg:linear-gradient(120deg,#0C1B2E 0%,#11263C 100%);
  --ink-fg:#FFFFFF; --ink-muted:#CFE3E8; --ink-edge:rgba(255,255,255,.16);
  --app-bg:linear-gradient(180deg,#D3EEEA 0,#E8F4F3 620px);
  --band-bg:linear-gradient(180deg,#E8F4F3 0%,#D3EEEA 100%);
  --shadow:0 1px 2px rgba(20,43,68,.06),0 8px 24px -12px rgba(20,48,74,.22);
  --shadow-lg:0 1px 2px rgba(20,43,68,.08),0 30px 60px -28px rgba(20,48,74,.40);
  --head:"Barlow Semi Condensed","Roboto Condensed","Arial Narrow",system-ui,sans-serif;
  --body:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --max:1120px; --gut:max(16px,env(safe-area-inset-left,0px)); --sec:88px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){ :root{
  --bg:#0C1B2E; --surface:#13253B; --surface-2:#182D46; --surface-3:#21395A; --hair:#1C3149; --line:#2A4560; --border:#6B87A0;
  --text:#EEF5F7; --text-2:#C9D8E2; --muted:#9DB2C2; --accent:#5FD0C8; --kicker:#5FD0C8; --accent-soft:#123A44; --accent-line:#22616A; --chip-ink:#8FE3DA;
  --primary:#3FB8B0; --primary-lo:#5FCAC2; --on-primary:#0C1B2E; --primary-edge:#3FB8B0; --primary-glow:rgba(63,184,176,.28);
  --mark:#5FD0C8; --badge:#3FB8B0; --on-badge:#0C1B2E;
  --rs:#6F8DF7; --ts:#4FB8BD;
  --wave-hero:url(/brand/wave-hero-dark.svg); --wave-top:url(/brand/wave-top-dark.svg); --wave-band:url(/brand/wave-band-dark.svg);
  --ink-bg:linear-gradient(120deg,#10223A 0%,#163050 100%);
  --ink-fg:#FFFFFF; --ink-muted:#C4D6E2; --ink-edge:rgba(95,208,200,.18);
  --app-bg:linear-gradient(180deg,#10223A 0,#0C1B2E 620px);
  --band-bg:linear-gradient(180deg,#0C1B2E 0%,#10223A 100%);
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg:0 2px 4px rgba(0,0,0,.4),0 30px 60px -24px rgba(0,0,0,.8);
  color-scheme:dark } }
/* PALETTE END */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--app-bg);background-color:var(--bg);color:var(--text);font:16px/1.6 var(--body);-webkit-font-smoothing:antialiased}
a{color:var(--accent);font-weight:600}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
h1,h2,h3{font-family:var(--head);font-weight:700;letter-spacing:-.012em;margin:0;text-wrap:balance}
.wrap{width:100%;max-width:calc(var(--max) + 2 * var(--gut));margin:0 auto;padding-left:var(--gut);padding-right:max(16px,env(safe-area-inset-right,0px))}
.doc .wrap{max-width:calc(70ch + 32px)}
.doc .site-foot .wrap{max-width:calc(80ch + 32px)} /* the footer text is 14px: 80ch at 14px = 70ch at 16px */
.skip{position:absolute;left:-9999px}
.skip:focus{left:16px;top:8px;z-index:10;background:var(--surface);padding:8px 12px;border-radius:8px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.i{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* header. The empty .nav-slot keeps the place for a later "Sign in" / cart link (phase 2, see README). */
.site-head{border-bottom:1px solid var(--hair)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;font:700 24px/1 var(--head);letter-spacing:-.01em;color:var(--text);text-decoration:none}
.brand img{display:block;width:auto;height:32px}
@media (max-width:420px){ .brand img{height:28px} .site-head .nav .nl:not(.idea){display:none} .site-head .nav .nl.idea{padding:0 0 0 12px} }
.nav{display:flex;align-items:center;gap:2px}
.nav .nl{display:none;align-items:center;min-height:44px;padding:0 12px;color:var(--muted);font:500 15px/1 var(--body);text-decoration:none;border-radius:6px}
.nav .nl.keep{display:inline-flex}
.nav .nl{white-space:nowrap}
.nav .nl.idea{color:var(--accent);font-weight:600}
.nav .nl:hover{color:var(--text)}
.nav-slot:empty{display:none}
@media (min-width:760px){ .nav .nl{display:inline-flex} }

/* buttons and small parts */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border:1.5px solid transparent;border-radius:12px;background:var(--primary);color:var(--on-primary);font:700 16px/1.2 var(--body);text-align:center;text-decoration:none;box-shadow:0 0 0 1px var(--primary-edge) inset,0 6px 16px -6px var(--primary-glow);transition:background-color .15s,border-color .15s}
.btn:hover{background:var(--primary-lo)}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--text);box-shadow:none}
.btn.ghost:hover{border-color:var(--border)}
.btn.small{min-height:42px;padding:0 18px;font-size:15px;border-radius:10px}
.btn .i{width:18px;height:18px}
.tag{display:inline-block;padding:1px 9px;border-radius:999px;border:1px solid var(--accent-line);background:var(--accent-soft);font:600 12px/1.6 var(--body);letter-spacing:0;color:var(--chip-ink);white-space:nowrap;vertical-align:3px}
.kicker{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px;color:var(--kicker);font:600 12px/17px var(--body);letter-spacing:.08em;text-transform:uppercase}
.kicker::before{content:"";flex:none;width:20px;height:2px;margin-top:7.5px;background:var(--mark)}

/* home: hero */
main{flex:1}
.hero{padding:48px 0 56px;background:var(--wave-hero) center bottom/100% 200px no-repeat,var(--wave-top) center top/100% 100% no-repeat}
.hero-grid{display:grid;gap:48px;align-items:center}
.hero h1{font-size:clamp(40px,4.2vw + 22px,66px);line-height:1.02;letter-spacing:-.02em;margin:0 0 20px}
.hero h1 .l{display:block}
.lede{max-width:34em;margin:0;color:var(--text-2);font-size:18px;line-height:1.6}
.lede strong{color:var(--text);font-weight:700}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* home: the suite visual (HTML and CSS only) */
.suite{position:relative;margin:0 auto;width:100%;max-width:440px;padding:22px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-lg)}
.suite-head{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding-bottom:14px;border-bottom:1px solid var(--hair);font:700 22px/1 var(--head)}
.suite-head img{display:block;width:auto;height:36px}
.suite-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.suite-list li{position:relative;display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--hair);border-left:4px solid var(--p);border-radius:14px;background:var(--surface-2)}
.suite-list li[data-product="ringsaver"]{--p:var(--rs)}
.suite-list li[data-product="ticketsaver"]{--p:var(--ts)}
.suite-list img{flex:none;width:44px;height:44px;border-radius:22.5%}
.suite-list b{display:block;font:700 19px/1.15 var(--head)}
.suite-list span{display:block;color:var(--muted);font-size:14px;line-height:1.4}
.suite-join{display:flex;align-items:center;gap:10px;margin:14px 0 0;color:var(--text-2);font-size:14px;line-height:1.4}
.suite-join .i{width:18px;height:18px;color:var(--mark)}

/* home: facts under the hero */
.facts{display:grid;grid-template-columns:1fr;gap:12px;margin:56px 0 0;padding:0;list-style:none}
.facts li{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--hair);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.fi{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--accent-soft);color:var(--mark)}
.fi .i{width:19px;height:19px}
.facts p{margin:0;min-width:0}
.facts b{display:block;font:600 15px/1.3 var(--body)}
.facts p span{display:block;margin-top:3px;color:var(--muted);font-size:14px;line-height:1.4}

/* home: sections */
.sec{padding:var(--sec) 0}
.sec h2{font-size:clamp(30px,2vw + 22px,46px);line-height:1.06;max-width:22ch;margin:0 0 16px}
.sec-lede{max-width:40em;margin:0 0 36px;color:var(--text-2);font-size:17px}

/* home: product cards. Each card has the edge colour of its own product (--rs, --ts). data-product is the phase 2 key.
   .product-actions is the action row: a later "Add to cart" button goes next to the "Visit" link. */
.terms-note{margin:18px 0 0;color:var(--muted);font-size:14px}
.products{list-style:none;margin:0;padding:0;display:grid;gap:20px}
.product{display:flex;flex-direction:column;padding:26px 24px 24px;border:1px solid var(--hair);border-top:6px solid var(--p);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.product[data-product="ringsaver"]{--p:var(--rs)}
.product[data-product="ticketsaver"]{--p:var(--ts)}
.product-head{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.product-head img{flex:none;width:56px;height:56px;border-radius:22.5%}
.product h3{font-size:30px;line-height:1.05}
.role{margin:4px 0 0;color:var(--text-2);font-weight:500}
.ticks{list-style:none;margin:0 0 24px;padding:0;flex:1}
.ticks li{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-top:1px solid var(--hair);color:var(--text-2)}
.ticks .i{width:18px;height:18px;margin-top:3px;color:var(--mark);stroke-width:2.4}
.ticks .tag{vertical-align:1px}
.product-actions{display:flex;flex-wrap:wrap;gap:12px}

/* home: the ink band (How they work together) */
.ink{background:var(--wave-lines) right bottom/min(1440px,100%) 100% no-repeat,var(--ink-bg);color:var(--ink-fg)}
.ink .kicker{color:var(--ink-muted)}
.ink .kicker::before{background:var(--badge)}
.ink .sec-lede{color:var(--ink-muted)}
.ink a{color:var(--ink-fg)}
.flow{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.flow li{position:relative;padding:24px;border:1px solid var(--ink-edge);border-radius:18px;background:rgba(255,255,255,.06)}
.flow .n{display:grid;place-items:center;width:40px;height:40px;margin-bottom:16px;border-radius:12px;background:var(--badge);color:var(--on-badge);font:700 20px/1 var(--head)}
.flow h3{font-size:23px;line-height:1.15;margin:0 0 8px}
.flow p{margin:0;color:var(--ink-muted)}
.flow .tag{margin-bottom:12px;background:rgba(255,255,255,.12);border-color:var(--ink-edge);color:var(--ink-fg);vertical-align:0}
.together{display:grid;gap:16px;margin-top:28px}
.together p{margin:0}
.note{padding:22px 24px;border:1px dashed var(--ink-edge);border-radius:18px;background:rgba(255,255,255,.04)}
.note h3{display:flex;align-items:center;gap:10px;font-size:22px;line-height:1.2;margin:0 0 8px}
.note h3 .i{color:var(--badge)}
.note p{color:var(--ink-muted)}
.note p + p{margin-top:6px}
.plain h3{font-size:22px;line-height:1.2;margin:0 0 8px}
.plain p{color:var(--ink-muted)}
.plain p + p{margin-top:6px}

/* home: contact band */
.band{padding-top:56px;background:var(--wave-band) center bottom/100% 160px no-repeat,var(--band-bg)}
.contact{display:grid;gap:24px;align-items:center;padding:36px 28px;border:1px solid var(--hair);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}
.contact h2{margin-bottom:10px}
.contact > div > p{margin:0;color:var(--text-2)}
.support{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.support li{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--hair);border-left:4px solid var(--p);border-radius:14px;background:var(--surface-2)}
.support li[data-product="ringsaver"]{--p:var(--rs)}
.support li[data-product="ticketsaver"]{--p:var(--ts)}
.support li.ts{--p:var(--mark)}
.support .i{color:var(--mark)}
.support p{margin:0;min-width:0}
.support b{display:block;font:600 14px/1.3 var(--body);color:var(--muted)}
.email{font:600 18px/1.4 var(--body);color:var(--text);user-select:all;-webkit-user-select:all;overflow-wrap:anywhere}

@media (min-width:640px){
  .facts{grid-template-columns:repeat(2,1fr)}
  .flow{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:860px){
  .products{grid-template-columns:repeat(2,1fr)}
  .together{grid-template-columns:1fr 1fr}
}
@media (min-width:960px){
  .hero{padding-top:72px;padding-bottom:72px}
  .hero-grid{grid-template-columns:1.1fr .9fr;gap:56px}
  .suite{margin-right:0}
  .facts{grid-template-columns:repeat(4,1fr)}
  .flow{grid-template-columns:repeat(4,1fr)}
  .contact{grid-template-columns:1fr 1fr;padding:44px 48px}
}
@media (max-width:520px){
  :root{--sec:64px}
  .hero{padding-top:32px;background-size:100% 120px,100% 100%}
  .band{background-size:100% 100px,auto}
  .lede{font-size:17px}
  .cta .btn,.product-actions .btn{flex:1 1 100%}
  .suite{padding:16px}
  .product{padding:22px 18px 20px}
  .contact{padding:28px 20px}
  .support li{padding:12px 14px}
  .email{font-size:16px}
}

/* home: custom software */
.custom{display:grid;gap:32px;align-items:start}
.custom .sec-lede{margin-bottom:0}
.custom .cta{margin-top:26px}
.custom-note{margin:16px 0 0;color:var(--muted);font-size:14px}
.work{padding:24px;border:1px solid var(--hair);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.work h3{font-size:23px;line-height:1.15;margin:0 0 6px}
.work > p{margin:0 0 16px;color:var(--text-2)}
.work-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.work-list li{display:grid;grid-template-columns:40px 1fr;column-gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--hair);border-left:4px solid var(--p);border-radius:14px;background:var(--surface-2)}
.work-list li[data-product="ringsaver"]{--p:var(--rs)}
.work-list li[data-product="ticketsaver"]{--p:var(--ts)}
.work-list img,.work-list picture{grid-row:span 2;width:40px;height:40px;border-radius:22.5%}
.work-list a{font:700 19px/1.2 var(--head)}
.work-list span{color:var(--muted);font-size:14px;line-height:1.4}
@media (min-width:860px){ .custom{grid-template-columns:1.15fr .85fr;gap:56px} }

/* the custom page: steps and the idea form */
.doc .kicker{margin-top:8px}
.steps{padding-left:24px}
.steps li{margin:0 0 10px}
.steps b{color:var(--text)}
.doc h3{font-size:20px;line-height:1.2;margin:22px 0 6px}
.form{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;margin:8px 0 12px;padding:24px;border:1px solid var(--hair);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.field{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px;min-width:0}
.field.half{grid-column:auto}
.field label{font-weight:600;color:var(--text)}
.opt{font-weight:400;color:var(--muted)}
.form input,.form select,.form textarea{width:100%;min-height:48px;padding:10px 12px;border:1.5px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:16px/1.4 var(--body)}
.form textarea{resize:vertical;min-height:120px}
.form input:focus-visible,.form select:focus-visible,.form textarea:focus-visible{outline:3px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.doc .form .hint,.doc .send .hint{margin:0;color:var(--muted);font-size:14px}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.send{grid-column:1 / -1;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
@media (max-width:520px){ .form{grid-template-columns:1fr;padding:18px} .field.half{grid-column:1 / -1} .send .btn{width:100%} }

/* the documents (privacy, 404) */
.doc main{padding-top:28px;padding-bottom:40px}
.doc h1{font-size:34px;line-height:1.1;letter-spacing:-.01em;margin:0 0 8px}
.doc h2{font-size:23px;line-height:1.2;margin:36px 0 8px;padding-top:12px;border-top:1px solid var(--hair)}
.doc p,.doc ul,.doc ol{margin:0 0 14px;color:var(--text-2)}
.doc ul,.doc ol{padding-left:24px}
.doc li{margin:0 0 6px}
.doc strong{color:var(--text);font-weight:600}
.date{color:var(--muted);font-size:15px;margin-bottom:22px}

/* footer */
.site-foot{border-top:1px solid var(--hair);font-size:14px;color:var(--muted)}
.site-foot .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px;padding-top:14px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.site-foot nav{display:flex;flex-wrap:wrap;gap:0 20px}
.site-foot nav a{min-height:44px;display:inline-flex;align-items:center;color:var(--muted)}
.site-foot nav a:hover{color:var(--accent)}
.site-foot p{margin:0}
.site-foot .copy{display:flex;align-items:center;gap:8px}
.site-foot .copy img{display:block;width:auto;height:17px}
.site-foot .contact-ts{flex-basis:100%;margin-top:-2px}
.site-foot .owner{flex-basis:100%;padding-bottom:4px}
@media (max-width:520px){ .site-foot .wrap{flex-direction:column;align-items:flex-start} }

@media print{ body{background:white;color:black} .site-head .nav,.site-foot nav{display:none} }
