/* Tex design: tex-design/tokens/tokens.css, the same as the apps */
:root {
  --bg: #FFFFFF; --card: #F7F7F9; --border: #E4E4E9; --text: #1D1D1F; --sub: #6E6E73;
  --accent: #CA184A; --accent-soft: #FBE6EC; --success: #14614B; --success-soft: #E3F0EB; --gold: #D49300;
  --track: #EEEEF2; --key: #FFFFFF; --field: #FFFFFF; --desk: #F4F4F4; --sheet: #FFFFFF;
  --font-ui: "Poppins", system-ui, sans-serif; --font-reading: "EB Garamond", Georgia, serif;
  --key-shadow: 0 1px 2px rgba(0,0,0,.16), 0 3px 8px rgba(0,0,0,.10);
}
:root[data-theme="dark"] {
  --bg: #1E1E20; --card: #28282B; --border: #38383C; --text: #F5F5F7; --sub: #98989D;
  --accent: #D93C66; --accent-soft: #4A2230; --success: #4CC79A; --success-soft: #1A342C; --gold: #E6A81E;
  --track: #1E1E21; --key: #444448; --field: #1C1C1E; --desk: #161618; --sheet: #262629;
}
/* light for everyone at first; dark only when chosen (remembered) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--desk); color: var(--text); font-family: var(--font-ui); font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* tex-ui parts */
.sheet { background: var(--sheet); border: 1px solid var(--border); border-radius: 20px; }
/* one height for every button in a row (founder, 2026-11-02: a longer
   label made its button a different height from the one beside it): a
   button is at least 38 high, its words on one even line box, and a row
   stretches every button to the tallest one in it */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 16px; border-radius: 8px; font: 500 14px/1.25 var(--font-ui); border: 1px solid var(--border); background: var(--key); color: var(--text); cursor: pointer; transition: background .15s, box-shadow .15s; text-align: center; }
.cta, .actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.cta .btn, .actions .btn { flex: 0 1 auto; }
.btn:hover { box-shadow: var(--key-shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn .i { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12px; font-weight: 500; }
.pill.soft { background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.wait { background: var(--track); color: var(--sub); }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.toggle { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--track); box-shadow: inset 0 1px 2.5px rgba(0,0,0,.08); }
.toggle button { height: 30px; padding: 0 14px; border-radius: 8px; border: 0; background: none; font: 13px var(--font-ui); color: var(--sub); cursor: pointer; }
.toggle button.on { background: var(--key); color: var(--text); font-weight: 500; box-shadow: var(--key-shadow); }
.mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.mark .i { width: 20px; height: 20px; }

/* ---- the top, as the founder drew it: the main bar, then the menus bar */
header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.bar1 { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand strong { font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.brand strong span { color: var(--accent); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--sub); }
.nav a:hover { background: var(--track); color: var(--text); }
.nav a.on { color: var(--accent); background: var(--accent-soft); }
/* the menus bar: 20 px more room above and below (founder, 2026-11-02) */
.bar2 { display: flex; align-items: center; gap: 4px; height: auto; padding: 27px 0; border-top: 1px solid var(--border); }
.dd { position: relative; }
.dd > button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 13.5px var(--font-ui); color: var(--text); cursor: pointer; }
.dd > button .i { width: 14px; height: 14px; color: var(--sub); transition: transform .2s; }
.dd > button .lead-i { width: 16px; height: 16px; transition: none; }
.dd:hover > button .lead-i, .dd.open > button .lead-i { transform: none; }
.dd:hover > button, .dd.open > button { background: var(--track); }
.dd:hover > button .i, .dd.open > button .i { transform: rotate(180deg); }
.pop { position: absolute; top: 38px; left: 0; width: 300px; padding: 8px; background: var(--sheet); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.09); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.dd:hover .pop, .dd.open .pop { opacity: 1; visibility: visible; transform: none; }
.pop a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; }
.pop a:hover { background: var(--track); }
.pop .mark { width: 34px; height: 34px; border-radius: 9px; }
.pop .mark .i { width: 17px; height: 17px; }
.pop b { display: block; font-weight: 500; font-size: 14px; }
.pop small { color: var(--sub); font-size: 12px; }
.bar2 .side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar2 .side a { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--sub); font-size: 13.5px; }
.bar2 .side a:hover { background: var(--track); color: var(--text); }
.bar2 .side a .i { width: 16px; height: 16px; }
.burger { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--key); cursor: pointer; place-items: center; color: var(--text); }

/* ---- hero: words on the left, a live-looking order on the right */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
h1 { font-family: var(--font-reading); font-weight: 500; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; margin: 14px 0 18px; }
h1 i { color: var(--accent); }
.lead { color: var(--sub); font-size: 16.5px; line-height: 1.7; max-width: 50ch; }
.cta { margin-top: 26px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.order { padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.order .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.order .top b { font-weight: 500; font-size: 15px; }
.order .top small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
.line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.line .what { flex: 1; }
.line .what b { display: block; font-weight: 500; font-size: 13.5px; }
.line .what small { color: var(--sub); font-size: 12px; }
.line .q { color: var(--sub); font-size: 13px; width: 48px; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 2px; }
.total span { color: var(--sub); }
.total b { font-weight: 600; font-size: 18px; }
.steps { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; font-size: 12px; }
.step i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; }
.step.done { background: var(--success-soft); color: var(--success); } .step.done i { background: var(--success); color: #fff; }
.step.now { background: var(--accent-soft); color: var(--accent); } .step.now i { background: var(--accent); color: #fff; }
.step.open { background: var(--track); color: var(--sub); } .step.open i { background: var(--border); color: var(--sub); }

/* ---- sections */
section { padding: 36px 0; }
.sec { padding: 32px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
h2 { font-weight: 500; font-size: 26px; margin-top: 6px; }
.sec-head p { color: var(--sub); max-width: 46ch; line-height: 1.6; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.06); transform: translateY(-2px); }
.cat b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.cat p { color: var(--sub); font-size: 13px; line-height: 1.55; }
.filter { margin-bottom: 18px; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.app .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 17px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.app h3 { font-weight: 500; font-size: 18px; }
.app p { color: var(--sub); line-height: 1.6; font-size: 13.5px; flex: 1; }
.way { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.way div { padding: 18px; border-radius: 14px; border: 1px solid var(--border); }
.way .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.way b { display: block; font-weight: 500; font-size: 15px; margin: 12px 0 6px; }
.way p { color: var(--sub); font-size: 13px; line-height: 1.6; }
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
.quote h2 { font-family: var(--font-reading); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin: 8px 0 12px; }
.quote p { color: var(--sub); line-height: 1.7; }
.quote ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.quote li { display: flex; gap: 10px; align-items: center; color: var(--sub); }
.quote li .i { color: var(--success); }
form { display: grid; gap: 12px; }
label { font-size: 12.5px; font-weight: 500; display: grid; gap: 6px; }
input, select, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--field); color: var(--text); font: 13.5px var(--font-ui); outline: none; }
textarea { height: 110px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { font-size: 12.5px; color: var(--sub); }

/* ---- the bottom band */
footer { background: var(--bg); border-top: 1px solid var(--border); margin-top: 48px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.foot h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); font-weight: 500; margin-bottom: 12px; }
.foot a { display: block; padding: 4px 0; color: var(--text); }
.foot a.brand { display: flex; padding: 0; }
.foot a:hover { color: var(--accent); }
.foot p { color: var(--sub); line-height: 1.6; margin-top: 12px; max-width: 34ch; }
.base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 16px 0 22px; color: var(--sub); font-size: 13px; }

/* ---- phones and tablets */
@media (max-width: 980px) {
  .hero, .quote { grid-template-columns: 1fr; }
  .cats, .apps { grid-template-columns: repeat(2, 1fr); }
  .way { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .bar1 > .btn { display: none; }
  .burger { display: grid; }
  .bar2 { display: none; height: auto; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  header.open .bar2 { display: flex; }
  .pop { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .dd.open .pop { display: block; }
  .bar2 .side { margin: 6px 0 0; }
  .cats, .apps, .way, .foot, .two { grid-template-columns: 1fr; }
  .sec { padding: 22px; }
  .hero { padding-top: 36px; }
}
