/* Tartan - Website (SITE3): the public site, three versions on voice A (decision 333), drawn from the console's
   locked look (236) and the splash (326). One page structure; the version is a class on .w-page:
     .w-I   Sign-in, turned outward: the console sign-in as the hero (cloth left, panel on its gold edge). Light + dark.
     .w-II  Night hall: dark only; the cloth as a full-width banner, very large Cardo, gold hairlines, firm corners.
     .w-III Console chrome: the navy menu band with the cloth crest; the product is the picture. Light + dark.
   Layout answers to the page's own width (container queries), so it reads the same in a browser and a phone frame.
   The moving cloth honours prefers-reduced-motion. No third-party requests. */

.w-page { container-type: inline-size; position: relative; flex: 1; min-height: 0; overflow: auto;
  background: var(--t-surface); color: var(--t-ink); font: 400 17px/27px var(--t-font-product); }
.w-page * { box-sizing: border-box; }
.w-page h1, .w-page h2, .w-page h3 { font-family: var(--t-font-brand); font-weight: 700; margin: 0; text-wrap: balance; }
.w-page p { margin: 0; }
.w-page a { color: var(--t-link); text-decoration: none; font-weight: 600; cursor: pointer; }
.w-page a:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-page code, .w-mono { font: 500 .88em/1.4 var(--t-font-mono); }
.w-wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.w-thread { height: 2px; background: var(--t-gold); }
.w-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/16px var(--t-font-product);
  letter-spacing: .1em; text-transform: uppercase; color: var(--t-muted); }
.w-ph { font: 500 13px/18px var(--t-font-mono); color: var(--t-ink); background: color-mix(in srgb, var(--t-gold) 22%, transparent);
  border-radius: 4px; padding: 1px 6px; }

/* ---- the marks (as the console draws them: decisions 311, the seal) ---- */
.w-xstick { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; }
.w-xstick .bg { fill: var(--t-loch); } .w-xstick .ln { stroke: var(--t-gold); } .w-xstick .cm { fill: var(--t-light); }
.w-seal { width: 26px; height: 26px; flex-shrink: 0; }
.w-seal .fr, .w-seal .ln { stroke: var(--t-gold); } .w-seal .cm { fill: currentColor; }
.w-sealbox { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--t-loch);
  color: var(--t-light); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--t-gold) 55%, transparent); }

/* ---- top bar ---- */
.w-nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 48px; }
.w-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 24px/1 var(--t-font-brand); color: inherit !important; }
.w-brand:hover { text-decoration: none !important; }
.w-links { display: flex; gap: 24px; margin-left: auto; font: 500 15px/20px var(--t-font-product); }
.w-links a { color: inherit; font-weight: 500; opacity: .9; }
.w-links a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--t-gold); padding-bottom: 4px; text-decoration: none; }
.w-burger { display: none; margin-left: auto; width: 40px; height: 40px; place-items: center; }
.w-burger svg { width: 22px; height: 22px; }

/* ---- buttons ---- */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px;
  border-radius: 999px; font: 700 17px/1 var(--t-font-product); cursor: pointer; border: 0; text-decoration: none !important;
  background: var(--t-button-fill); color: var(--t-button-label) !important; box-shadow: inset 0 0 0 1px var(--t-button-edge); }
.w-btn svg { width: 18px; height: 18px; }
.w-btn--gold { background: var(--t-gold); color: #1A1C20 !important; box-shadow: none; }
.w-btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.w-btn--ghost { background: transparent; color: var(--t-ink) !important; box-shadow: inset 0 0 0 1.5px var(--t-outline); }
.w-side { font: 600 15px/22px var(--t-font-product); }
.w-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.w-free { font-size: 14px; line-height: 20px; color: var(--t-muted); }

/* ---- the cloth ---- */
.w-cloth { position: relative; overflow: hidden; background: var(--t-loch); }
.w-cloth tartan-cloth svg { width: var(--cw) !important; height: var(--ch) !important; }
.w-veil { position: absolute; inset: 0; pointer-events: none; }
.w-wordmark { font: 700 72px/1 var(--t-font-brand); color: var(--t-cream); text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.w-tagline { margin-top: 14px !important; font: 500 20px/28px var(--t-font-product); color: var(--t-cream); text-shadow: 0 1px 12px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: reduce) { .w-cloth .anim, .w-cloth svg > circle { display: none; } }

/* ---- sections ---- */
.w-sec { padding: 88px 0; }
.w-sec--card { background: var(--t-card); }
.w-h2 { font-size: 44px; line-height: 50px; }
.w-lede { font-size: 20px; line-height: 31px; color: var(--t-muted); max-width: 680px; margin-top: 16px !important; }
.w-head { margin-bottom: 44px; }
.w-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.w-pillar { padding: 30px 28px 32px; border-radius: 10px; background: var(--t-surface); box-shadow: inset 0 0 0 1px var(--t-line); }
.w-sec:not(.w-sec--card) .w-pillar { background: var(--t-card); }
.w-pillar h3 { font-size: 26px; line-height: 32px; margin: 22px 0 10px; }
.w-pillar p { color: var(--t-muted); }
.w-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.w-steps li { counter-increment: s; display: grid; gap: 12px; align-content: start; }
.w-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 700 15px/1 var(--t-font-product); color: var(--t-ink); box-shadow: inset 0 0 0 1.5px var(--t-gold); }
.w-steps b { font: 700 22px/28px var(--t-font-brand); }
.w-steps span { color: var(--t-muted); }
.w-shot { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 24px 60px rgba(6,12,22,.35); line-height: 0; }
.w-shot img { width: 100%; display: block; }
[data-theme="dark"] .w-shot .lt, .w-shot .dk { display: none; } [data-theme="dark"] .w-shot .dk { display: block; }
.w-close { text-align: center; }
.w-close h2 { font-size: 52px; line-height: 58px; }
.w-close .w-cta { justify-content: center; margin-top: 30px; }

/* ---- inner pages ---- */
.w-pagehead { padding: 72px 0 40px; }
.w-pagehead h1 { font-size: 56px; line-height: 62px; margin-top: 14px; }
.w-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 56px; }
.w-item { padding: 26px 0; border-top: 1px solid var(--t-line); }
.w-item h3 { font-size: 24px; line-height: 30px; margin-bottom: 8px; }
.w-item p { color: var(--t-muted); }
.w-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.w-facts li { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--t-line); }
.w-facts b { font: 700 20px/27px var(--t-font-brand); }
.w-facts span { color: var(--t-muted); }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.w-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 10px; background: var(--t-card); }
.w-card h3 { font-size: 26px; line-height: 32px; }
.w-card p { color: var(--t-muted); flex: 1; }
.w-card .w-mono { color: var(--t-muted); font-size: 13px; }
.w-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 26px 30px; border-radius: 10px;
  background: var(--t-header); color: var(--t-on-header); margin-bottom: 40px; box-shadow: inset 4px 0 0 var(--t-gold); }
.w-banner h3 { font-size: 26px; line-height: 32px; }
.w-banner p { opacity: .85; }
.w-banner > div { flex: 1; min-width: 240px; }
.w-term { background: var(--t-terminal-ground); color: var(--t-terminal-text); border-radius: 10px; padding: 22px 24px;
  font: 400 14px/24px var(--t-font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.w-term i { color: var(--t-terminal-muted); font-style: normal; } .w-term b { color: var(--t-terminal-accent); font-weight: 500; }
.w-note { border-radius: 8px; padding: 14px 18px; font-size: 15px; line-height: 23px; color: var(--t-ink);
  background: color-mix(in srgb, var(--t-gold) 16%, transparent); box-shadow: inset 3px 0 0 var(--t-gold); }
.w-quote { font: 700 64px/70px var(--t-font-brand); }
.w-quote span { color: var(--t-gold); }
.w-placeholder { border: 2px dashed color-mix(in srgb, var(--t-gold) 70%, transparent); border-radius: 10px; padding: 28px 30px;
  color: var(--t-muted); font-size: 17px; }

/* ---- the stand-up panel (opens from the main action) ---- */
.w-scrim { position: absolute; inset: 0; z-index: 10; background: rgba(6,12,22,.62); display: grid; place-items: start center; padding: 96px 24px; }
.w-dlg { width: min(620px, 100%); background: var(--t-surface); color: var(--t-ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.w-dlg__top { position: relative; height: 72px; }
.w-dlg__top .w-veil { background: linear-gradient(90deg, rgba(6,12,22,.82), rgba(6,12,22,.25)); }
.w-dlg__top h2 { position: absolute; left: 28px; bottom: 16px; color: var(--t-cream); font-size: 28px; line-height: 32px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.w-dlg__x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--t-cream); background: rgba(6,12,22,.45); font: 18px/1 var(--t-font-product); }
.w-dlg__body { padding: 24px 28px 26px; display: grid; gap: 16px; border-top: 2px solid var(--t-gold); }
.w-dlg__body > p { color: var(--t-muted); }
.w-prompt { position: relative; background: var(--t-card); border-radius: 10px; padding: 16px 18px 16px; font: 400 14px/22px var(--t-font-mono); }
.w-prompt__copy { position: absolute; right: 10px; bottom: 10px; }
.w-prompt p { padding-bottom: 46px; }
.w-dlg__where { display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--t-muted); }
.w-dlg__where div { display: flex; gap: 10px; flex-wrap: wrap; }
.w-dlg__where b { color: var(--t-ink); min-width: 92px; font-weight: 600; }
.w-or { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--t-line); font-size: 15px; }
.w-or span { color: var(--t-muted); flex: 1; }

/* ---- legal (text unchanged, from the legal repo; only the frame is the site's) ---- */
.w-legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 56px 0 88px; }
.w-legal nav { display: grid; gap: 2px; align-content: start; position: sticky; top: 20px; }
.w-legal nav a { color: var(--t-ink); font-weight: 500; padding: 7px 12px; border-radius: 6px; font-size: 15px; }
.w-legal nav a[aria-current="page"] { background: var(--t-card); font-weight: 700; box-shadow: inset 3px 0 0 var(--t-gold); }
.w-legal article { max-width: 720px; }
.w-legal h1 { font-size: 44px; line-height: 50px; }
.w-legal .w-meta { font-size: 14px; color: var(--t-muted); margin: 10px 0 26px; }
.w-legal .w-sum { background: var(--t-card); border-radius: 10px; padding: 24px 26px; display: grid; gap: 10px; font-size: 16px; line-height: 25px; }
.w-legal .w-sum h2 { font-size: 22px; }
.w-legal article > h2 { font-size: 26px; margin: 34px 0 10px; }

/* ---- footer ---- */
.w-foot { background: var(--t-header); color: var(--t-on-header); }
.w-foot .w-wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 52px; padding-bottom: 44px; }
.w-foot h4 { margin: 0 0 12px; font: 600 12px/16px var(--t-font-product); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.w-foot a { display: block; color: var(--t-on-header); font-weight: 500; font-size: 15px; line-height: 30px; }
.w-foot p { font-size: 14px; line-height: 21px; opacity: .75; margin-top: 12px; }
.w-foot .w-brand { font-size: 26px; }

/* =============== Version I · Sign-in, turned outward =============== */
.w-I .w-nav { background: var(--t-surface); box-shadow: inset 0 -1px 0 var(--t-line); }
.w-hero--split { display: grid; grid-template-columns: 1fr minmax(460px, 44%); min-height: 640px; }
.w-hero--split .w-cloth { min-height: 100%; }
.w-hero--split .w-veil { background: linear-gradient(165deg, rgba(10,16,30,.08) 0%, rgba(10,16,30,.40) 55%, rgba(10,16,30,.80) 100%); }
.w-hero--split .w-words { position: absolute; left: 56px; right: 56px; bottom: 56px; }
.w-hero--split .w-panel { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 56px;
  background: var(--t-surface); border-left: 2px solid var(--t-gold); }
.w-hero--split .w-panel h1 { font-size: 54px; line-height: 58px; }
.w-hero--split .w-panel .w-lede { margin-top: 0 !important; font-size: 19px; line-height: 29px; }

/* =============== Version II · Night hall (dark only) =============== */
.w-II { --t-surface: #0A1120; --t-card: #0E1B30; --t-ink: #EBE8DE; --t-muted: #A9B3C4; --t-line: #22324F; --t-outline: #4D6A9A;
  --t-link: #E0B03A; --t-button-fill: #1F3A63; --t-button-label: #FFFFFF; --t-button-edge: #4D6A9A; color-scheme: dark; }
.w-II .w-nav { position: absolute; left: 0; right: 0; top: 0; color: var(--t-cream); }
.w-II .w-hero { position: relative; min-height: 720px; display: grid; place-items: end start; }
.w-II .w-hero .w-cloth { position: absolute; inset: 0; }
.w-II .w-hero .w-veil { background: linear-gradient(180deg, rgba(8,13,26,.55) 0%, rgba(8,13,26,.20) 30%, rgba(8,13,26,.72) 70%, #0A1120 100%); }
.w-II .w-words { position: relative; z-index: 2; padding: 0 48px 80px; max-width: 980px; }
.w-II .w-words .w-tag { font: 500 18px/24px var(--t-font-product); color: var(--t-gold); letter-spacing: .02em; }
.w-II .w-words h1 { font-size: 92px; line-height: 92px; color: var(--t-cream); margin: 18px 0 24px; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.w-II .w-words .w-lede { color: #D8D4C8; max-width: 640px; margin: 0 0 34px !important; }
.w-II .w-sec { border-top: 1px solid color-mix(in srgb, var(--t-gold) 45%, transparent); }
.w-II .w-sec--card { background: #0E1B30; }
.w-II .w-pillar, .w-II .w-card, .w-II .w-banner, .w-II .w-shot, .w-II .w-term, .w-II .w-prompt, .w-II .w-dlg, .w-II .w-legal .w-sum { border-radius: 0; }
.w-II .w-btn { border-radius: 2px; }
.w-II .w-pillar { background: transparent !important; box-shadow: inset 0 1px 0 var(--t-gold); border-radius: 0; padding-left: 0; padding-right: 0; }
.w-II .w-h2 { font-size: 56px; line-height: 60px; }
.w-II .w-head { text-align: left; }
.w-II .w-sealbox { background: transparent; box-shadow: none; width: auto; height: auto; color: var(--t-cream); }
.w-II .w-sealbox .w-seal { width: 44px; height: 44px; }
.w-II .w-close { padding: 120px 0; }
.w-II .w-close h2 { font-size: 72px; line-height: 76px; }
.w-II .w-foot { background: #070C17; border-top: 1px solid var(--t-gold); }
.w-II .w-pagehead { padding-top: 140px; }
.w-II .w-pagehead h1 { font-size: 72px; line-height: 76px; }
.w-II .w-inner-top { position: relative; height: 0; }

/* =============== Version III · Console chrome =============== */
.w-III .w-nav { background: var(--t-header); color: var(--t-on-header); padding-left: 0; }
.w-III .w-nav .w-crest { position: relative; align-self: stretch; width: 248px; overflow: hidden; }
.w-III .w-nav .w-crest .w-veil { background: linear-gradient(90deg, rgba(6,12,22,.82) 0%, rgba(6,12,22,.55) 58%, rgba(6,12,22,.18) 100%); }
.w-III .w-nav .w-crest .w-brand { position: absolute; left: 24px; top: 0; bottom: 0; color: var(--t-cream) !important; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.w-III .w-hero { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; gap: 48px; align-items: center; padding: 72px 48px 88px;
  max-width: 1360px; margin: 0 auto; }
.w-III .w-hero h1 { font-size: 56px; line-height: 60px; margin: 16px 0 18px; }
.w-III .w-hero .w-lede { margin: 0 0 30px !important; font-size: 19px; line-height: 29px; }
.w-III .w-stage { position: relative; padding: 34px; border-radius: 14px; overflow: hidden; }
.w-III .w-stage .w-cloth { position: absolute; inset: 0; }
.w-III .w-stage .w-veil { background: rgba(8,13,26,.35); }
.w-III .w-stage .w-shot { position: relative; }
.w-III .w-pillar { box-shadow: inset 0 0 0 1px var(--t-outline); }
.w-III .w-h2 { font-size: 36px; line-height: 42px; }
.w-III .w-pagehead h1 { font-size: 44px; line-height: 50px; }
.w-III .w-strip { position: relative; height: 10px; overflow: hidden; }

/* =============== phone =============== */
@container (max-width: 760px) {
  .w-wrap { padding: 0 20px; }
  .w-nav { padding: 0 16px; height: 60px; gap: 12px; }
  .w-links, .w-nav .w-btn { display: none; }
  .w-burger { display: grid; }
  .w-sec { padding: 56px 0; }
  .w-h2 { font-size: 32px !important; line-height: 38px !important; }
  .w-pillars, .w-steps, .w-cards, .w-cols { grid-template-columns: 1fr; }
  .w-facts li { grid-template-columns: 1fr; gap: 6px; }
  .w-pagehead { padding: 40px 0 24px; } .w-pagehead h1 { font-size: 38px !important; line-height: 44px !important; }
  .w-close h2 { font-size: 36px !important; line-height: 42px !important; }
  .w-quote { font-size: 42px; line-height: 48px; }
  .w-legal { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; } .w-legal nav { position: static; }
  .w-foot .w-wrap { grid-template-columns: 1fr 1fr; } .w-foot .w-wrap > :first-child { grid-column: 1 / -1; }
  .w-scrim { padding: 20px 12px; } .w-dlg__body { padding: 20px; }
  .w-hero--split { grid-template-columns: 1fr; grid-template-rows: 320px auto; }
  .w-hero--split .w-words { left: 24px; right: 24px; bottom: 26px; } .w-hero--split .w-wordmark { font-size: 56px; }
  .w-hero--split .w-panel { border-left: 0; border-top: 2px solid var(--t-gold); padding: 32px 20px 40px; }
  .w-hero--split .w-panel h1 { font-size: 40px; line-height: 44px; }
  .w-II .w-hero { min-height: 660px; } .w-II .w-words { padding: 0 20px 48px; }
  .w-II .w-words h1 { font-size: 54px; line-height: 56px; }
  .w-II .w-pagehead { padding-top: 96px; }
  .w-III .w-nav .w-crest { width: 170px; } .w-III .w-nav .w-crest .w-brand { left: 16px; }
  .w-III .w-hero { grid-template-columns: 1fr; padding: 40px 20px 56px; gap: 32px; }
  .w-III .w-hero h1 { font-size: 40px; line-height: 44px; }
  .w-III .w-stage { padding: 16px; }
}

/* cloth that fills a fixed box (menu crest, panel top, inner-page band) */
.w-crest .w-cloth, .w-dlg__top .w-cloth, .w-band .w-cloth { position: absolute; inset: 0; }
.w-foot .w-brand { display: inline-flex; }
