/* =====================================================================
   The Unknown by Nivi Uzan — the-unknown.css  (v1.1, 2026-12-02)
   One stylesheet for the marketing site (plain HTML + CSS) and the admin
   app (single-page app). Values mirror tokens.json. RTL, mobile first.

   <html lang="he" dir="rtl">  +  in <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700&family=Assistant:wght@400;600;700&display=swap">

   Scopes: .tu-site (website root)  ·  .tu-app (admin root)  ·  .tu-scope (anything else)
   Themes: data-theme="light" | "dark" on any element. .tu-invert = navy band on the site.
   Responsive: container queries on the scope roots (site: 720 / 1024, app: 1024).
   ===================================================================== */

/* ---------- 1. Colour tokens: light (default) ---------- */
:root, [data-theme="light"] {
  --paper: #FBF6EF;            /* page background (the title-page cream) */
  --paper-raised: #FFFCF7;     /* cards, inputs, sheets */
  --paper-sunk: #F3ECE0;       /* alternate sections, photo placeholders, hover */
  --ink: #0B2242;              /* text + primary button (the logo navy) */
  --ink-soft: #3F4A63;         /* secondary text */
  --ink-muted: #5C6477;        /* meta, hints, placeholders (5.0:1 on paper-sunk) */
  --line: #E4DACB;             /* hairlines, dividers (decorative only) */
  --line-strong: #8E8676;      /* input + control borders (3.3:1) */
  --navy: #0B2242;             /* brand navy band */
  --navy-deep: #071A33;        /* night navy (footer, dark theme ground) */
  --navy-raised: #163661;      /* hover on navy */
  --on-navy: #FBF6EF;
  --on-navy-soft: #C2C8D4;
  --gold: #7A5C24;             /* gold TEXT on light grounds (5.8:1) */
  --gold-brand: #8A6C36;       /* the symbol's gold: marks, big type, indicators */
  --gold-line: #B08D4E;        /* the gold path: decorative lines only (never text) */
  --gold-on-navy: #D6B87C;     /* gold on navy (8.3:1) */
  --mist: #A8BACC;             /* watercolour mist: decoration only */
  --primary: #0B2242;
  --primary-hover: #163661;
  --on-primary: #FBF6EF;
  --focus: #0B2242;
  --highlight-new: #FBF1DC;    /* row background of a NEW lead */
  --status-new-bg: #F6EBD3;   --status-new-fg: #6B4C12;   --status-new-dot: #B08433;
  --status-progress-bg: #E4EBF5; --status-progress-fg: #1D3D6E;
  --status-client-bg: #E1EFE6; --status-client-fg: #1F5135;
  --status-muted-bg: #ECE9E4;  --status-muted-fg: #575B64;
  --danger-bg: #F8E5E1;  --danger-fg: #8C2B1E;  --danger-line: #C2533F;
  --warning-bg: #FBF0D6; --warning-fg: #6E4A0A; --warning-line: #A87A1E;
  --success-bg: #E1EFE6; --success-fg: #1F5135;
  --info-bg: #E4EBF5;    --info-fg: #1D3D6E;
  --scrim: rgba(7, 26, 51, 0.48);
  --shadow-1: 0 1px 2px rgba(11, 34, 66, 0.06), 0 1px 1px rgba(11, 34, 66, 0.04);
  --shadow-2: 0 10px 28px -12px rgba(11, 34, 66, 0.22);
  --shadow-3: 0 18px 44px -14px rgba(11, 34, 66, 0.34);
  color-scheme: light;
}

/* ---------- 2. Colour tokens: dark (admin dark mode) ---------- */
[data-theme="dark"] {
  --paper: #071A33;
  --paper-raised: #0E2443;
  --paper-sunk: #05142A;
  --ink: #F3ECDF;
  --ink-soft: #C2C8D4;
  --ink-muted: #97A2B6;
  --line: #1E3658;
  --line-strong: #5D7398;
  --primary: #D6B87C;
  --primary-hover: #E2C891;
  --on-primary: #071A33;
  --focus: #D6B87C;
  --gold: #D6B87C;
  --gold-brand: #D6B87C;
  --gold-line: #B89A5E;
  --highlight-new: #1C2B44;
  --status-new-bg: #3A2E14;   --status-new-fg: #EBCB86;   --status-new-dot: #D6B87C;
  --status-progress-bg: #1B3558; --status-progress-fg: #B9CFF0;
  --status-client-bg: #173A2A; --status-client-fg: #A9DDBD;
  --status-muted-bg: #2A2F3A;  --status-muted-fg: #B7BCC6;
  --danger-bg: #44201C;  --danger-fg: #F2B3A6;  --danger-line: #E07A66;
  --warning-bg: #3E3010; --warning-fg: #F1CE7E; --warning-line: #D9AE52;
  --success-bg: #173A2A; --success-fg: #A9DDBD;
  --info-bg: #1B3558;    --info-fg: #B9CFF0;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-2: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-3: 0 18px 44px -14px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

/* Navy band on the light site (who-it's-for, footer): dark text tokens on brand navy */
.tu-invert {
  --paper: #0B2242;
  --paper-raised: #12294D;
  --paper-sunk: #071A33;
  --ink: #FBF6EF;
  --ink-soft: #C2C8D4;
  --ink-muted: #A3AEC1;
  --line: #2A4670;
  --line-strong: #5D7398;
  --primary: #D6B87C;
  --primary-hover: #E2C891;
  --on-primary: #071A33;
  --focus: #D6B87C;
  --gold: #D6B87C;
  --gold-brand: #D6B87C;
  --gold-line: #C9A866;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 3. Scale tokens ---------- */
:root {
  --font-display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-body: "Assistant", "Heebo", "Segoe UI", Arial, sans-serif;
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-xs: 2px;     /* site cards, photo frames (book-like) */
  --radius-sm: 6px;     /* buttons, inputs, chips */
  --radius-md: 12px;    /* admin cards and lists */
  --radius-lg: 20px;    /* sheets, phone frames */
  --radius-pill: 999px; /* badges, avatar, FAB */
  --tap-min: 44px;      /* every interactive target */
  --tap-site: 48px;     /* site buttons and inputs */
  --container-max: 1120px;
  --measure: 640px;
  --header-h: 64px;
  --tabbar-h: 72px;
  --sidebar-w: 264px;
}

/* ---------- 4. Base ---------- */
.tu-site, .tu-app, .tu-scope {
  direction: rtl;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.tu-site, .tu-app, .tu-scope) *,
:where(.tu-site, .tu-app, .tu-scope) *::before,
:where(.tu-site, .tu-app, .tu-scope) *::after { box-sizing: border-box; }
:where(.tu-site, .tu-app, .tu-scope) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.tu-site, .tu-app, .tu-scope) :where(ul, ol) { padding: 0; list-style: none; }
:where(.tu-site, .tu-app, .tu-scope) img { display: block; max-width: 100%; height: auto; }
:where(.tu-site, .tu-app, .tu-scope) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.tu-site, .tu-app, .tu-scope) :focus-visible,
.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.tu-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tu-ltr { direction: ltr; unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) {
  :where(.tu-site, .tu-app, .tu-scope) * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 5. Type ---------- */
.tu-display  { font: 400 34px/1.3 var(--font-display); letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.tu-h1       { font: 500 30px/1.33 var(--font-display); color: var(--ink); text-wrap: balance; }
.tu-h2       { font: 500 24px/1.33 var(--font-display); color: var(--ink); text-wrap: balance; }
.tu-h3       { font: 500 21px/1.36 var(--font-display); color: var(--ink); }
.tu-lead     { font: 400 19px/1.6 var(--font-body); color: var(--ink-soft); }
.tu-body     { font: 400 17px/1.65 var(--font-body); color: var(--ink-soft); }
.tu-small    { font: 400 15px/1.5 var(--font-body); color: var(--ink-muted); }
.tu-label    { font: 600 15px/1.35 var(--font-body); color: var(--ink); }
.tu-meta     { font: 400 14px/1.45 var(--font-body); color: var(--ink-muted); }
.tu-eyebrow  { font: 600 14px/1.4 var(--font-body); color: var(--gold); letter-spacing: 0.02em; }
.tu-latin    { font: 500 13px/1.4 var(--font-display); letter-spacing: 0.32em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; }
.tu-quote    { font: 400 22px/1.55 var(--font-display); color: var(--ink); }
.tu-num      { font-variant-numeric: tabular-nums lining-nums; }
.tu-link     { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tu-link:hover { text-decoration-color: var(--ink); }

@container site (min-width: 1024px) {
  .tu-display { font-size: 58px; line-height: 1.22; }
  .tu-h1 { font-size: 44px; line-height: 1.27; }
  .tu-h2 { font-size: 30px; line-height: 1.33; }
  .tu-h3 { font-size: 23px; }
  .tu-lead { font-size: 21px; }
  .tu-quote { font-size: 24px; }
}

/* ---------- 6. Layout ---------- */
.tu-site { container: site / inline-size; }
.tu-container { width: 100%; max-width: var(--container-max); margin-inline: auto; }
.tu-measure { max-width: var(--measure); }
.tu-section { padding: 72px 20px; }
.tu-section--sunk { background: var(--paper-sunk); }
.tu-section--navy { background: var(--navy); }
.tu-stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.tu-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.tu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap, 24px); }
@container site (min-width: 720px) {
  .tu-section { padding: 96px 40px; }
  .tu-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tu-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container site (min-width: 1024px) {
  .tu-section { padding: 128px 48px; }
  .tu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 7. Brand marks ---------- */
.tu-symbol { width: auto; height: 40px; }                   /* symbol png 137×296 */
.tu-symbol--sm { height: 28px; }
.tu-symbol--xs { height: 20px; }
.tu-wordmark { height: 14px; width: auto; }                  /* wordmark png 1592×111 */
.tu-logo-stack { width: 220px; height: auto; }               /* stacked logo 1255×540 */
.tu-ornament { display: flex; align-items: center; gap: 14px; color: var(--gold-line); }
.tu-ornament::before, .tu-ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.tu-ornament--short::before, .tu-ornament--short::after { flex: 0 0 56px; }
.tu-path { display: block; width: 100%; height: auto; fill: none; stroke: var(--gold-line); stroke-width: 1.25; stroke-linecap: round; }
.tu-mountains { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }

/* ---------- 8. Icons ---------- */
.tu-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tu-icon--sm { width: 20px; height: 20px; }
.tu-icon--xs { width: 16px; height: 16px; }

/* ---------- 9. Buttons ---------- */
.tu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap-site); padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 17px/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tu-btn--primary { background: var(--primary); color: var(--on-primary); }
.tu-btn--primary:hover, .tu-btn--primary.is-hover { background: var(--primary-hover); }
.tu-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.tu-btn--secondary:hover, .tu-btn--secondary.is-hover { background: var(--paper-sunk); }
.tu-btn--quiet { background: transparent; color: var(--ink); padding: 0 8px; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 6px; }
.tu-btn--quiet:hover { text-decoration-color: var(--ink); }
.tu-btn--danger { background: var(--danger-fg); color: var(--paper-raised); }
.tu-btn--warning { background: transparent; color: var(--warning-fg); border-color: var(--warning-fg); }
.tu-btn--sm { min-height: var(--tap-min); padding: 0 16px; font-size: 15px; }
.tu-btn--block { width: 100%; }
.tu-btn:disabled, .tu-btn.is-disabled { background: var(--line); color: var(--ink-muted); border-color: transparent; cursor: not-allowed; }
.tu-btn.is-loading { cursor: progress; }
.tu-iconbtn {
  display: inline-grid; place-items: center; flex: none;
  width: var(--tap-min); height: var(--tap-min); padding: 0;
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.tu-iconbtn:hover { background: var(--paper-sunk); }
.tu-iconbtn--outline { border: 1px solid var(--line-strong); }

/* ---------- 10. Form fields ---------- */
.tu-field { display: flex; flex-direction: column; gap: 8px; }
.tu-field__label { font: 600 15px/1.35 var(--font-body); color: var(--ink); }
.tu-field__opt { font-weight: 400; color: var(--ink-muted); }
.tu-input, .tu-select, .tu-textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: 400 17px/24px var(--font-body); color: var(--ink);
  background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
.tu-input::placeholder, .tu-textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.tu-input:hover, .tu-select:hover, .tu-textarea:hover { border-color: var(--ink-soft); }
.tu-input:focus-visible, .tu-select:focus-visible, .tu-textarea:focus-visible,
.tu-input.is-focus, .tu-textarea.is-focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.tu-input:disabled, .tu-select:disabled, .tu-textarea:disabled { background: var(--paper-sunk); color: var(--ink-muted); border-color: var(--line); }
.tu-input--ltr { direction: ltr; text-align: right; }
.tu-textarea { min-height: 128px; resize: vertical; }
.tu-select-wrap { position: relative; }
.tu-select { appearance: none; -webkit-appearance: none; padding-inline-end: 48px; cursor: pointer; }
.tu-select-wrap > .tu-icon { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-soft); }
.tu-hint { font: 400 14px/1.45 var(--font-body); color: var(--ink-muted); }
.tu-error { display: flex; align-items: flex-start; gap: 6px; font: 600 15px/1.45 var(--font-body); color: var(--danger-fg); }
.tu-field.is-error .tu-input, .tu-field.is-error .tu-select, .tu-field.is-error .tu-textarea { border: 2px solid var(--danger-line); padding: 12px 15px; }
.tu-prefix { position: relative; }
.tu-prefix > span { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-weight: 600; }
.tu-prefix > .tu-input { padding-right: 40px; } /* physical: the input is LTR, the ₪ sits on the right */

/* choice chips (radio / checkbox) — real inputs, styled sibling */
.tu-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tu-choice { position: relative; display: block; }
.tu-choice > input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tu-choice > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap-min); padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised);
  font: 600 15px/1.2 var(--font-body); color: var(--ink); text-align: center;
}
.tu-choice > input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tu-choice > input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* filter chips (toggle buttons, aria-pressed) */
.tu-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.tu-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: var(--tap-min); padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper-raised);
  font: 600 14px/1 var(--font-body); color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.tu-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tu-chip__count { font-weight: 400; opacity: .85; }

/* switch — <label class="tu-switch"><span>…</span><input type="checkbox" role="switch"><span class="tu-switch__track"></span></label> */
.tu-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; }
.tu-switch > input { position: absolute; opacity: 0; width: 52px; height: 32px; inset-inline-end: 0; margin: 0; cursor: pointer; }
.tu-switch__track { position: relative; flex: none; width: 52px; height: 32px; border-radius: var(--radius-pill); background: var(--paper-sunk); border: 1px solid var(--line-strong); transition: background-color .18s ease; }
.tu-switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-muted); transition: inset-inline-start .18s ease, background-color .18s ease; }
.tu-switch > input:checked + .tu-switch__track { background: var(--primary); border-color: var(--primary); }
.tu-switch > input:checked + .tu-switch__track::after { inset-inline-start: 23px; background: var(--on-primary); }
.tu-switch > input:focus-visible + .tu-switch__track { outline: 2px solid var(--focus); outline-offset: 3px; }

/* segmented control (year, theme) */
.tu-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm); background: var(--paper-sunk); border: 1px solid var(--line); }
.tu-seg > button { min-height: 40px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); font: 600 15px/1 var(--font-body); cursor: pointer; }
.tu-seg > button[aria-pressed="true"] { background: var(--paper-raised); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- 11. Feedback ---------- */
.tu-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font: 600 13px/1 var(--font-body); white-space: nowrap; }
.tu-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tu-badge--new { background: var(--status-new-bg); color: var(--status-new-fg); }
.tu-badge--progress { background: var(--status-progress-bg); color: var(--status-progress-fg); }
.tu-badge--client { background: var(--status-client-bg); color: var(--status-client-fg); }
.tu-badge--muted { background: var(--status-muted-bg); color: var(--status-muted-fg); }
.tu-badge--danger { background: var(--danger-bg); color: var(--danger-fg); }
.tu-badge--soon { background: transparent; color: var(--gold); border: 1px solid var(--gold-line); }
.tu-badge--soon::before { background: var(--gold-line); }
.tu-badge--plain::before { display: none; }

.tu-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font: 400 15px/1.5 var(--font-body); }
.tu-alert__title { font-weight: 700; }
.tu-alert--danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-line); }
.tu-alert--warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-line); }
.tu-alert--success { background: var(--success-bg); color: var(--success-fg); border-color: transparent; }
.tu-alert--info { background: var(--info-bg); color: var(--info-fg); border-color: transparent; }

.tu-spinner { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: tu-spin .9s linear infinite; }
@keyframes tu-spin { to { transform: rotate(360deg); } }
.tu-skel { display: block; border-radius: 6px; background: var(--paper-sunk); animation: tu-pulse 1.6s ease-in-out infinite; }
@keyframes tu-pulse { 50% { opacity: .55; } }

.tu-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; }
.tu-empty__title { font: 500 20px/1.4 var(--font-display); color: var(--ink); }
.tu-empty__text { font: 400 15px/1.55 var(--font-body); color: var(--ink-soft); max-width: 300px; }

/* ---------- 12. Site: header, hero, sections ---------- */
.tu-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); padding: 0 12px 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tu-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: var(--tap-min); }
.tu-nav { display: none; }
.tu-nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); font: 600 15px/1 var(--font-body); color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.tu-nav a:hover, .tu-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold-line); }
.tu-header__cta { display: none; }
@container site (min-width: 1024px) {
  .tu-header { height: 80px; padding: 0 48px; }
  .tu-nav { display: flex; gap: 32px; }
  .tu-header__cta { display: inline-flex; }
  .tu-menu-btn { display: none; }
}
.tu-mobile-menu { display: flex; flex-direction: column; padding: 8px 20px 32px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
.tu-mobile-menu a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font: 500 20px/1.3 var(--font-display); color: var(--ink); text-decoration: none; }

.tu-hero { position: relative; overflow: hidden; padding: 40px 20px 0; }
.tu-hero__grid { display: grid; gap: 40px; align-items: center; }
.tu-hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.tu-hero__media { position: relative; }
.tu-hero__mountains { margin-top: -28px; position: relative; z-index: 1; }
@container site (min-width: 1024px) {
  .tu-hero { padding: 72px 48px 0; }
  .tu-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; }
  .tu-hero__text { align-items: flex-start; text-align: start; gap: 28px; }
  .tu-hero__mountains { margin-top: -64px; }
}

/* photo placeholder — replace the inside with <img src alt> (object-fit: cover) */
.tu-photo { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--paper-sunk); border-radius: var(--radius-xs); color: var(--ink-muted); }
.tu-photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold-line); opacity: .7; pointer-events: none; }
.tu-photo > img { width: 100%; height: 100%; object-fit: cover; }
.tu-photo__label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; font: 600 14px/1.45 var(--font-body); }
.tu-photo__label small { font-weight: 400; font-size: 13px; }
.tu-ratio-4x5 { aspect-ratio: 4 / 5; }
.tu-ratio-3x4 { aspect-ratio: 3 / 4; }
.tu-ratio-3x2 { aspect-ratio: 3 / 2; }
.tu-ratio-1x1 { aspect-ratio: 1 / 1; }
.tu-ratio-2x3 { aspect-ratio: 2 / 3; }

/* who-it's-for: two states */
.tu-states { display: grid; gap: 0; }
.tu-state { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.tu-state__no { font: 500 13px/1 var(--font-display); letter-spacing: .32em; color: var(--gold); direction: ltr; text-align: right; }
@container site (min-width: 1024px) {
  .tu-states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .tu-state { padding: 40px 0 0; }
}

/* offering cards */
.tu-offer { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-xs); }
.tu-offer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tu-offer__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 15px/1.4 var(--font-body); color: var(--ink); }
.tu-offer__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.tu-offer__meta .tu-icon { color: var(--gold-brand); }
.tu-offer__foot { margin-top: auto; padding-top: 8px; }
.tu-offer--feature { border-color: var(--gold-line); box-shadow: var(--shadow-2); }
.tu-offer--soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.tu-offer--soon .tu-h3 { color: var(--ink-soft); }
@container site (min-width: 1024px) {
  .tu-offer { padding: 36px 32px; }
  .tu-offer--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
}
.tu-gates { position: relative; display: flex; flex-direction: column; gap: 14px; padding-inline-start: 26px; }
.tu-gates::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 6px; width: 1px; background: var(--gold-line); }
.tu-gates > li { position: relative; font: 500 17px/1.45 var(--font-display); color: var(--ink); }
.tu-gates > li::before { content: ""; position: absolute; inset-inline-start: -26px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper-raised); border: 1.5px solid var(--gold-brand); }
.tu-gates small { display: block; font: 400 14px/1.4 var(--font-body); color: var(--ink-muted); }

/* about + books */
.tu-about { display: grid; gap: 40px; }
@container site (min-width: 1024px) { .tu-about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; } }
.tu-pull { padding: 24px 0; border-block: 1px solid var(--line); font: 400 26px/1.4 var(--font-display); color: var(--ink); text-align: center; }
.tu-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tu-book { display: flex; flex-direction: column; gap: 10px; }

/* testimonials */
.tu-tquote { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--gold-line); }
.tu-tquote__by { font: 600 15px/1.4 var(--font-body); color: var(--ink-soft); }
.tu-tquote__by span { font-weight: 400; color: var(--ink-muted); }

/* lead form */
.tu-form { display: flex; flex-direction: column; gap: 22px; padding: 28px 20px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-xs); box-shadow: var(--shadow-1); }
@container site (min-width: 720px) { .tu-form { padding: 40px; } }
.tu-form__row { display: grid; gap: 22px; }
@container site (min-width: 720px) { .tu-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tu-form__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 48px 20px; }

/* footer */
.tu-footer { position: relative; background: var(--navy-deep); color: var(--on-navy); }
.tu-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 40px 20px 32px; text-align: center; }
.tu-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.tu-footer__links a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); padding: 0 10px; color: var(--on-navy); text-decoration: none; font: 600 15px/1 var(--font-body); }
.tu-footer__links a:hover { color: var(--gold-on-navy); }
.tu-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font: 400 14px/1.5 var(--font-body); color: var(--on-navy-soft); }
.tu-footer__legal a { color: var(--on-navy-soft); min-height: var(--tap-min); display: inline-flex; align-items: center; text-underline-offset: 4px; }

/* floating WhatsApp (mobile only) — bottom-left in RTL */
.tu-fab { position: fixed; bottom: 20px; inset-inline-end: 16px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--navy); color: var(--on-navy); border: 1px solid #D6B87C; box-shadow: var(--shadow-3); text-decoration: none; }
.tu-fab:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@container site (min-width: 1024px) { .tu-fab { display: none; } }

/* ---------- 13. Admin app shell ---------- */
.tu-app { container: app / inline-size; font-size: 16px; line-height: 1.5; }
.tu-app__frame { display: flex; flex-direction: column; min-height: inherit; }
.tu-app__sidebar { display: none; }
.tu-app__main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: inherit; }
.tu-topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 4px; min-height: 60px; padding: 8px 20px 8px 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tu-topbar__title { flex: 1; min-width: 0; font: 500 22px/1.3 var(--font-display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-topbar__back { margin-inline-start: -12px; }
.tu-content { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 28px; }
.tu-tabbar { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--tabbar-h); padding: 4px 4px calc(8px + env(safe-area-inset-bottom)); background: var(--paper-raised); border-top: 1px solid var(--line); }
.tu-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: var(--ink-muted); text-decoration: none; font: 600 13px/1.2 var(--font-body); }
.tu-tab[aria-current="page"] { color: var(--ink); }
.tu-tab[aria-current="page"]::before { content: ""; position: absolute; top: -4px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-brand); }
.tu-sidenav { display: flex; flex-direction: column; gap: 4px; }
.tu-sidenav__item { display: flex; align-items: center; gap: 12px; min-height: var(--tap-min); padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink-soft); text-decoration: none; font: 600 15px/1 var(--font-body); }
.tu-sidenav__item:hover { background: var(--paper-sunk); color: var(--ink); }
.tu-sidenav__item[aria-current="page"] { background: var(--paper-sunk); color: var(--ink); }
.tu-sidenav__item[aria-current="page"] .tu-icon { color: var(--gold-brand); }
@container app (min-width: 1024px) {
  .tu-app__frame { flex-direction: row; }
  .tu-app__sidebar { display: flex; flex-direction: column; gap: 28px; flex: none; width: var(--sidebar-w); padding: 28px 16px; background: var(--paper-raised); border-inline-end: 1px solid var(--line); }
  .tu-tabbar { display: none; }
  .tu-topbar { min-height: 80px; padding: 12px 40px; }
  .tu-topbar__title { font-size: 28px; }
  .tu-content { padding: 32px 40px 48px; gap: 24px; max-width: 1180px; width: 100%; }
  .tu-only-mobile { display: none !important; }
}
@container app (max-width: 1023px) { .tu-only-desktop { display: none !important; } }

/* search */
.tu-search { position: relative; }
.tu-search > .tu-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.tu-search > .tu-input { min-height: 48px; padding-inline-start: 46px; font-size: 16px; }

/* lists */
.tu-list { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.tu-row { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 72px; padding: 14px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.tu-row:last-child { border-bottom: 0; }
.tu-row:hover { background: var(--paper-sunk); }
.tu-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tu-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tu-row__title { font: 600 16px/1.4 var(--font-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-row__meta { font: 400 14px/1.45 var(--font-body); color: var(--ink-muted); }
.tu-row__text { font: 400 14px/1.45 var(--font-body); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-row.is-new { background: var(--highlight-new); }
.tu-row[aria-current="true"] { background: var(--paper-sunk); box-shadow: inset 0 0 0 2px var(--ink); } /* selected row in master-detail */
.tu-row.is-new .tu-row__title { font-weight: 700; }
.tu-row.is-new::after { content: ""; position: absolute; inset-inline-start: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--status-new-dot); }
.tu-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--paper-sunk); color: var(--ink-soft); font: 700 15px/1 var(--font-body); }
.is-new .tu-avatar { background: var(--status-new-bg); color: var(--status-new-fg); }
.tu-amount { font: 700 16px/1.3 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

/* cards (admin panels) */
.tu-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.tu-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tu-card__title { font: 500 19px/1.35 var(--font-display); color: var(--ink); }
.tu-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.tu-dl dt { color: var(--ink-muted); }
.tu-dl dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* timeline of inquiries */
.tu-timeline { position: relative; display: flex; flex-direction: column; gap: 20px; padding-inline-start: 22px; }
.tu-timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 5px; width: 1px; background: var(--gold-line); }
.tu-tl { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tu-tl::before { content: ""; position: absolute; inset-inline-start: -22px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-raised); border: 1.5px solid var(--gold-brand); }
.tu-tl__msg { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper-sunk); font-size: 15px; color: var(--ink); }
.tu-qa { display: grid; gap: 6px; font-size: 14px; }
.tu-qa dt { color: var(--ink-muted); }
.tu-qa dd { color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* payments + document states */
.tu-pay { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.tu-pay:last-child { border-bottom: 0; }
.tu-doc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); font: 400 14px/1.45 var(--font-body); border: 1px solid transparent; }
.tu-doc__text { flex: 1; min-width: 150px; }
.tu-doc__text b { font-weight: 700; }
.tu-doc__actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.tu-doc--none { background: var(--paper-sunk); color: var(--ink-soft); }
.tu-doc--pending { background: var(--info-bg); color: var(--info-fg); }
.tu-doc--done { background: var(--success-bg); color: var(--success-fg); }
.tu-doc--done a { color: inherit; font-weight: 700; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }
.tu-doc--failed { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-line); }
.tu-doc--unknown { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-line); }
.tu-doc .tu-btn--sm { min-height: 40px; }
@container app (min-width: 1024px) { .tu-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 32px; align-items: center; padding: 18px 24px; } }

/* stats + table (yearly summary) */
.tu-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tu-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.tu-stat__label { font: 600 13px/1.3 var(--font-body); color: var(--ink-muted); }
.tu-stat__value { font: 700 22px/1.25 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink); }
.tu-stat__note { font: 400 13px/1.35 var(--font-body); color: var(--ink-muted); }
.tu-stat--wide { grid-column: 1 / -1; }
@container app (min-width: 1024px) { .tu-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tu-stat--wide { grid-column: auto; } .tu-stat__value { font-size: 28px; } }
.tu-tablewrap { overflow-x: auto; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.tu-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.tu-table th { padding: 12px 10px; font: 600 13px/1.3 var(--font-body); color: var(--ink-muted); text-align: start; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.tu-table td { padding: 12px 10px; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tu-table .is-num { text-align: end; }
.tu-table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; background: var(--paper-sunk); }
.tu-table .is-gap { color: var(--warning-fg); font-weight: 700; }
.tu-table .is-empty { color: var(--ink-muted); }
@container app (min-width: 1024px) { .tu-table { font-size: 16px; } .tu-table td, .tu-table th { padding: 14px 20px; } }

/* settings: connection rows */
.tu-conn { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tu-conn:last-child { border-bottom: 0; }
.tu-conn__name { flex: 1; font-weight: 600; }

/* sticky action bar at the bottom of a form screen */
.tu-actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper-raised); border-top: 1px solid var(--line); }

/* ---------- 14. Canvas-only helpers (mockup boards, not for production) ---------- */
.tu-board { display: flex; gap: 48px; align-items: flex-start; padding: 48px; background: #E9E2D6; direction: rtl; font-family: var(--font-body); }
.tu-board__col { display: flex; flex-direction: column; gap: 14px; flex: none; }
.tu-board__label { font: 600 15px/1.3 var(--font-body); color: #3F4A63; }
.tu-phone { width: 375px; overflow: hidden; border-radius: 28px; border: 1px solid rgba(11, 34, 66, 0.16); box-shadow: 0 24px 60px -24px rgba(11, 34, 66, 0.35); }
.tu-fab--demo { position: absolute; top: 736px; bottom: auto; }
