/* TETRAi skin. Loaded after style.css: same layout and animation, TETRAi brand on top.
   Cobalt #2F54EB is the one colour. Jost Light for display, Public Sans for reading. */
:root {
  --black: #15171C;
  --ink: #22252C;
  --muted: #6A7080;
  --rule: #DDE0E6;
  --tint: #F5F6F8;
  --green: #6F8BFF;        /* fills that sit behind dark text */
  --green-text: #2F54EB;   /* cobalt text and lines on white */
  --f-head: "Jost", Futura, "Century Gothic", system-ui, sans-serif;
  --bw: 2px;
  --sh: 5px;
}

/* Display type: light and open instead of heavy and tight */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.02; }
h3 { font-weight: 500; letter-spacing: -0.005em; line-height: 1.12; }
.hero__title { font-weight: 300; letter-spacing: -0.025em; line-height: .98; }
.poster { font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.slab__title { font-weight: 300; letter-spacing: -0.025em; line-height: .96; }
.total__num, .tally__num strong, .stair__num span { font-weight: 300; letter-spacing: -0.03em; }
.stair__num span { color: var(--green-text); }
.btn, .toggle__btn, .slab__under a, .hrow__val, .rbox__t, .ticket__big, .ticket__task,
.ticket__steps li::before, .receipt__lines dd, .joint, .dig__count b,
.advert__list li.yes span, .qa summary, .ticket__time, .job__task, .thanks__big,
.thanks__stamp, .studio__arrow, .kpi b {
  font-weight: 500; letter-spacing: -0.005em;
}
.qa summary { font-weight: 400; }
.stamp, [class*="stamp"] { font-weight: 600; letter-spacing: .04em; }

/* Highlighter: a soft cobalt band */
.hl { background: linear-gradient(transparent 60%, #C9D4FF 60%, #C9D4FF 94%, transparent 94%); }
.slab .hl, .foot .hl, .callpanel .hl, [class*="--dark"] .hl { background: linear-gradient(transparent 60%, rgba(111,139,255,.55) 60%, rgba(111,139,255,.55) 94%, transparent 94%); }

/* Old green leftovers */
.dot--live, .is-open .dot { box-shadow: 0 0 0 0 rgba(111,139,255,.6); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,139,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(111,139,255,0); } 100% { box-shadow: 0 0 0 0 rgba(111,139,255,0); } }
.joint.lit { box-shadow: 0 0 0 6px rgba(111,139,255,.3); }
.routine.flash { background: #E8EDFE; }
.desk:hover .desk__top { fill: #E8EDFE; }
.hero { background-image: linear-gradient(#EBEDF2 1px, transparent 1px), linear-gradient(90deg, #EBEDF2 1px, transparent 1px); }
.ticket, .advert { background: #FFFFFF; }
.ph { background: #E8EDFE; }
.status__link { color: #6F8BFF; }
.slab__under, .foot__logo-row, .foot__grid { border-color: #2C3038; }
.callpanel__list li { border-color: #2C3038; }
.ticks li::before, .keep__list li::before { color: #fff; background: var(--green-text); border-color: var(--green-text); }
.post .ok { color: #fff; background: var(--green-text); }

/* New bits */
.sec-sub--wide { max-width: 720px; }
.ticks--tools { margin-top: 22px; }
.smallprint { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 22px; }
.strand--sc { color: #0B7F59; }
.strand--rc { color: #D23B2C; }
.sheet__list div { grid-template-columns: 124px 1fr; }
@media (max-width: 640px) { .sheet__list div { grid-template-columns: 1fr; } }
.h2 { font-weight: 300; letter-spacing: -0.015em; }
.stair__num span { color: #6F8BFF; }
.mono-k.strand--sc { color: #0B7F59 !important; }
.mono-k.strand--rc { color: #D23B2C !important; }

.status__home { color: #fff; font-weight: 700; text-decoration: none; margin-right: 6px; }
.status__home:hover { color: #6F8BFF; }

/* ---- Round 2 (17 Nov): tangle button, one-screen office, strand logos ---- */
.tangle__cap { align-items: center; }
.tangle__btn { margin-left: auto; font-family: var(--f-head); }
.tangle__btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: 4px 4px 0 var(--black); }
.tangle.is-ready .tangle__btn { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--black); } }
@media (prefers-reduced-motion: reduce) { .tangle__btn { display: none; } }

.strand-logo { display: block; height: 30px; width: auto; margin-bottom: 14px; }
.slab2 .strand { margin-bottom: 10px; }

/* Office: floor, ticket and tally as one console that fits a laptop screen */
.plan { scroll-margin-top: 84px; }
.plan .sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 40px; align-items: end; margin-bottom: 20px; }
.plan .sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.plan .sec-head .h2 { font-size: clamp(30px, 3.4vw, 46px); white-space: nowrap; }
.plan .sec-head .sec-sub { margin: 0 0 4px; font-size: 17px; max-width: 520px; }
.plan__grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 16px 20px; align-items: stretch; }
.plan__floor { grid-column: 1; grid-row: 1; padding: 8px; display: grid; }
#floor { max-height: min(420px, calc(100svh - 400px)); min-height: 240px; }
.tally { grid-column: 1; grid-row: 2; margin-top: 0; padding: 12px 18px 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.tally__row { grid-column: 1 / -1; }
.tally__num { grid-column: 1; }
.tally__num strong { font-size: 40px; }
.tally__num span { font-size: 14px; }
.tally__bar { grid-column: 2; height: 12px; border-width: 2px; }
.tally__note { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; min-height: 1.4em; }
.ticket { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 0; }
.ticket__empty, .ticket__body { padding: 18px 22px 22px; flex: 1; min-height: 0; }
.ticket__empty { display: grid; align-content: center; }
.ticket__empty[hidden], .ticket__body[hidden] { display: none; }
.ticket__body { display: flex; flex-direction: column; }
.ticket__jobs { display: block; margin: 0 0 12px; flex: 1; }
.ticket__jobs .job { display: none; border: 0 !important; padding: 0 !important; }
.ticket__jobs .job.is-on { display: block; animation: tin .3s ease both; }
.ticket__tabs { display: inline-flex; gap: 6px; }
.ticket__tab { border: 2px solid var(--black); background: var(--white); color: var(--black); padding: 3px 10px; font-size: 11px; cursor: pointer; }
.ticket__tab[aria-pressed="true"] { background: var(--black); color: var(--white); }
.job__top { margin: 4px 0 10px; }
.job__task { font-size: clamp(20px, 1.7vw, 24px); }
.ticket__ba { gap: 8px; margin-bottom: 12px; }
.ticket__ba p { font-size: 14.5px; line-height: 1.4; }
.ticket__after { border-left-color: var(--green-text); }
.ticket__time { padding: 9px 12px; }
.ticket__time s { font-size: 20px; }
.ticket__time strong { font-size: 28px; color: #6F8BFF; }
.ticket__meta { padding-top: 10px; gap: 5px; }
.ticket__meta div { font-size: 14px; }
.plan > .smallprint { margin-top: 12px; }
@media (max-width: 1100px) {
  .plan .sec-head { display: block; }
  .plan .sec-head .h2 { white-space: normal; }
  .plan .sec-head .sec-sub { margin-top: 10px; }
  .plan__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .plan__floor, .ticket, .tally { grid-column: 1; grid-row: auto; }
  #floor { max-height: none; min-height: 0; }
}

/* office: a little tighter so it fits a 768px-high laptop */
.truth .plan { padding-top: 40px; }
#floor { max-height: min(420px, calc(100svh - 450px)); }

/* ---- Theme toggle ---- */
.only-dark { display: none !important; }
.mode { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--black); background: transparent; color: var(--black); padding: 6px 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mode svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode__sun { display: none; }
.mode:hover { background: var(--black); color: var(--white); }
@media (max-width: 560px) { .mode__t { display: none; } .mode { padding: 7px; } .site-head__row { gap: 12px; } }

/* ---- Dark theme (default). Whites and blacks swap; the old black slabs stay as deeper "islands". ---- */
:root[data-mode="dark"] {
  color-scheme: dark;
  --black: #ECEEF2;
  --ink: #D3D6DE;
  --muted: #9BA1AF;
  --rule: #343944;
  --tint: #1D1F25;
  --white: #17171A;
  --green: #2F54EB;        /* fills behind light text */
  --green-text: #8CA2FF;   /* cobalt text and lines on dark */
  --card: #1F2128;
  --edge: #5A6172;
  --shade: #08090B;
}
:root[data-mode="dark"] .only-light { display: none !important; }
:root[data-mode="dark"] .only-dark { display: block !important; }
:root[data-mode="dark"] .mode__sun { display: block; }
:root[data-mode="dark"] .mode__moon { display: none; }
:root[data-mode="dark"] body { background: var(--white); color: var(--ink); }

/* islands: sections that were black on the light page keep their own palette */
:root[data-mode="dark"] .status, :root[data-mode="dark"] .slab, :root[data-mode="dark"] .promises,
:root[data-mode="dark"] .foot, :root[data-mode="dark"] .block--black, :root[data-mode="dark"] .stair__num,
:root[data-mode="dark"] .ticket__head, :root[data-mode="dark"] .ticket__time, :root[data-mode="dark"] .mock__bar,
:root[data-mode="dark"] .rbox {
  --black: #0B0C0F; --white: #F2F3F5; --ink: #22252C; --muted: #6A7080; --rule: #DDE0E6; --tint: #F5F6F8;
  --green: #6F8BFF; --green-text: #2F54EB;
}
:root[data-mode="dark"] .status { border-bottom: 1px solid #2A2E37; }
:root[data-mode="dark"] .promises, :root[data-mode="dark"] .foot { border-top: 1px solid #2A2E37; }
/* the credentials sheet goes dark too */
:root[data-mode="dark"] .sheet {
  --black: #ECEEF2; --white: #1F2128; --ink: #D3D6DE; --muted: #9BA1AF; --rule: #343944; --tint: #262932; --green: #6F8BFF;
  border-color: #5A6172;
}

/* cards: raised surface, quieter edge, deep shadow */
:root[data-mode="dark"] .block:not(.block--black) { background: var(--card); border-color: var(--edge); box-shadow: var(--sh) var(--sh) 0 var(--shade); }
:root[data-mode="dark"] .block--tint { background: var(--tint); }
:root[data-mode="dark"] .tool:hover { box-shadow: 9px 9px 0 var(--shade); }
:root[data-mode="dark"] .site-head { border-bottom-color: var(--edge); }
:root[data-mode="dark"] .toggle { box-shadow: 4px 4px 0 var(--shade); }
:root[data-mode="dark"] .btn { box-shadow: 4px 4px 0 var(--shade); }
:root[data-mode="dark"] .btn:hover { box-shadow: 6px 6px 0 var(--shade); }
:root[data-mode="dark"] .btn--green { background: #6F8BFF; color: #0B0C0F; border-color: #0B0C0F; }
:root[data-mode="dark"] .block--black .btn, :root[data-mode="dark"] .slab .btn { box-shadow: 4px 4px 0 #F2F3F5; }
:root[data-mode="dark"] .ticket, :root[data-mode="dark"] .advert { background: var(--card); }
:root[data-mode="dark"] .ticket__tear { display: none; }
:root[data-mode="dark"] .ticket__before { color: var(--muted); border-left-color: #4A5060; }
:root[data-mode="dark"] .ticket__count { color: var(--muted); }
:root[data-mode="dark"] .ticket__time strong { color: #6F8BFF; }
:root[data-mode="dark"] .stair__num span { color: #6F8BFF; }

/* hard-coded light colours */
:root[data-mode="dark"] .hero { background-image: linear-gradient(#202229 1px, transparent 1px), linear-gradient(90deg, #202229 1px, transparent 1px); }
:root[data-mode="dark"] .hl { background: linear-gradient(transparent 60%, rgba(47,84,235,.75) 60%, rgba(47,84,235,.75) 94%, transparent 94%); }
:root[data-mode="dark"] .routine.flash { background: rgba(47,84,235,.28); }
:root[data-mode="dark"] .desk:hover .desk__top { fill: #2A3052; }
:root[data-mode="dark"] #tiles path { stroke: #262932; }
:root[data-mode="dark"] .ph { background: #2A3052; }
:root[data-mode="dark"] .ticks li::before, :root[data-mode="dark"] .keep__list li::before { background: #2F54EB; border-color: #2F54EB; color: #fff; }
:root[data-mode="dark"] .post .ok { background: #2F54EB; color: #fff; }
:root[data-mode="dark"] .mono-k.strand--sc { color: #2FD39A !important; }
:root[data-mode="dark"] .mono-k.strand--rc { color: #FF7466 !important; }
:root[data-mode="dark"] .form-error { color: #FF8A80; }
:root[data-mode="dark"] .smallprint { color: var(--muted); }
:root[data-mode="dark"] .tangle__btn[disabled] { box-shadow: 4px 4px 0 var(--shade); }
:root[data-mode="dark"] .ticket__tab { background: transparent; }
:root[data-mode="dark"] .ticket__tab[aria-pressed="true"] { background: var(--black); color: var(--white); }
:root[data-mode="dark"] .pill--wait { background-image: repeating-linear-gradient(-45deg, transparent 0 6px, #2A2E38 6px 12px); }
:root[data-mode="dark"] .tools, :root[data-mode="dark"] .also, :root[data-mode="dark"] .contact,
:root[data-mode="dark"] .keep, :root[data-mode="dark"] .faq { border-top-color: #343944; }

/* ---- WhatsApp ---- */
.wa__i { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: .35em; flex: none; }
.slab__or { opacity: .6; margin: 0 .2em; }
.slab__under .wa-link { color: var(--white); font-family: var(--f-head); font-weight: 500; text-decoration: none; border-bottom: 3px solid #25D366; }
.callpanel__list li { grid-template-columns: 84px 1fr; }
.callpanel__list .wa-link { text-decoration-color: #25D366; }
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; background: #25D366; color: #06210F; border: 2px solid #06210F; box-shadow: 4px 4px 0 #06210F; padding: 10px 14px; font-family: var(--f-head); font-weight: 500; font-size: 15px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.wa-fab .wa__i { width: 20px; height: 20px; }
.wa-fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #06210F; }
@media (max-width: 640px) { .wa-fab { right: 12px; bottom: 12px; padding: 11px; } .wa-fab span { display: none; } .wa-fab .wa__i { margin: 0; width: 24px; height: 24px; } }
@media print { .wa-fab { display: none; } }
.wa-link { white-space: nowrap; }
.foot { padding-bottom: 76px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Form fields never wider than their card (phones) */
.contact__grid > *, .field-row > *, .field { min-width: 0; }
.field input, .field textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.formcard { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .field-row { grid-template-columns: minmax(0, 1fr); } }
.callpanel { min-width: 0; }
.callpanel__list li { grid-template-columns: 84px minmax(0, 1fr); }
.callpanel__list a { overflow-wrap: anywhere; }
.callpanel__list .wa-link { white-space: normal; }
@media (max-width: 900px) { .tools__grid, .also__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .callpanel__list li { grid-template-columns: 1fr; gap: 2px; } }
