/* ---------- tokens ----------
   The Simulator: an alebrije alligator. Jade-green gator for structure,
   rosa mexicano for actions, marigold for the numbers that matter,
   turquoise for focus. Papel picado banner under the header. */
:root {
  --bg: #f1f5f0;
  --surface: #ffffff;
  --surface-2: #f6f9f4;
  --ink: #13261d;
  --ink-2: #3c5045;
  --muted: #687b70;
  --line: #dbe4dc;
  --line-strong: #c1cfc4;
  --accent: #d1006b;
  --accent-hover: #a80056;
  --accent-ink: #ffffff;
  --accent-soft: #fce6f1;
  --gator: #1f7a55;
  --gator-deep: #10402d;
  --gator-ink: #ffffff;
  --marigold: #ffc94d;
  --turquoise: #0e9f9a;
  --warn-bg: #fdf1d6;
  --warn-ink: #7a5205;
  --error-bg: #fbe5e4;
  --error-ink: #a1221a;
  --danger: #b42318;
  --focus: #0e9f9a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(19, 38, 29, .06), 0 6px 18px rgba(19, 38, 29, .06);
  --shadow-pop: 0 12px 40px rgba(19, 38, 29, .2);
  --font: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bungee", "Arial Black", Impact, ui-sans-serif, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1611; --surface: #142019; --surface-2: #1a2920; --ink: #e9f2ec; --ink-2: #c0d1c6; --muted: #8ba293;
    --line: #253529; --line-strong: #35493c; --accent: #ff4fa3; --accent-hover: #ff7ab9; --accent-ink: #2a0016; --accent-soft: #3a1428;
    --gator: #1d6e4d; --gator-deep: #0a2a1d; --gator-ink: #ffffff; --marigold: #ffc94d; --turquoise: #2bc4be;
    --warn-bg: #3a2f17; --warn-ink: #f0cf8a; --error-bg: #3d1f1d; --error-ink: #f5a59c; --danger: #f07a6c; --focus: #2bc4be;
    --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-pop: 0 12px 40px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1611; --surface: #142019; --surface-2: #1a2920; --ink: #e9f2ec; --ink-2: #c0d1c6; --muted: #8ba293;
  --line: #253529; --line-strong: #35493c; --accent: #ff4fa3; --accent-hover: #ff7ab9; --accent-ink: #2a0016; --accent-soft: #3a1428;
  --gator: #1d6e4d; --gator-deep: #0a2a1d; --gator-ink: #ffffff; --marigold: #ffc94d; --turquoise: #2bc4be;
  --warn-bg: #3a2f17; --warn-ink: #f0cf8a; --error-bg: #3d1f1d; --error-ink: #f5a59c; --danger: #f07a6c; --focus: #2bc4be;
  --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-pop: 0 12px 40px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .01em; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pad { padding: .5rem .75rem; }
.text-danger { color: var(--danger) !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 2rem; padding-block: 0; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); height: 62px; background: var(--gator-deep); color: var(--gator-ink); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--gator-ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--gator-ink); }
.brand-mark { display: grid; place-items: center; width: 54px; height: 38px; border-radius: 12px; background: #f6efd9; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .2s ease; }
.brand-mark svg { width: 46px; height: 26px; }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .02em; line-height: 1; }
.brand-the { color: var(--marigold); }
#nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
#nav a { padding: .45rem .8rem; border-radius: 999px; color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
#nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
#nav a.active { background: var(--marigold); color: #13261d; font-weight: 700; }
#nav a:focus-visible { outline-color: var(--marigold); }
.papel { height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26' viewBox='0 0 160 26'%3E%3Cpath d='M0 2.5H160' stroke='%2313261D' stroke-opacity='.35' stroke-width='1'/%3E%3Cpath fill-rule='evenodd' fill='%23E4007C' d='M3 3H37V20 L35.3 23.5 L33.6 20 L31.9 23.5 L30.2 20 L28.5 23.5 L26.8 20 L25.1 23.5 L23.4 20 L21.7 23.5 L20.0 20 L18.3 23.5 L16.6 20 L14.9 23.5 L13.2 20 L11.5 23.5 L9.8 20 L8.1 23.5 L6.4 20 L4.7 23.5 L3.0 20Z M20 7L24 11L20 15L16 11Z M10 9L12 11L10 13L8 11Z M30 9L32 11L30 13L28 11Z M10 15.5a1 1 0 1 0 0.01 0Z M30 15.5a1 1 0 1 0 0.01 0Z'/%3E%3Cpath fill-rule='evenodd' fill='%23FFB627' d='M43 3H77V20 L75.3 23.5 L73.6 20 L71.9 23.5 L70.2 20 L68.5 23.5 L66.8 20 L65.1 23.5 L63.4 20 L61.7 23.5 L60.0 20 L58.3 23.5 L56.6 20 L54.9 23.5 L53.2 20 L51.5 23.5 L49.8 20 L48.1 23.5 L46.4 20 L44.7 23.5 L43.0 20Z M60 7L64 11L60 15L56 11Z M50 9L52 11L50 13L48 11Z M70 9L72 11L70 13L68 11Z M50 15.5a1 1 0 1 0 0.01 0Z M70 15.5a1 1 0 1 0 0.01 0Z'/%3E%3Cpath fill-rule='evenodd' fill='%232EC4B6' d='M83 3H117V20 L115.3 23.5 L113.6 20 L111.9 23.5 L110.2 20 L108.5 23.5 L106.8 20 L105.1 23.5 L103.4 20 L101.7 23.5 L100.0 20 L98.3 23.5 L96.6 20 L94.9 23.5 L93.2 20 L91.5 23.5 L89.8 20 L88.1 23.5 L86.4 20 L84.7 23.5 L83.0 20Z M100 7L104 11L100 15L96 11Z M90 9L92 11L90 13L88 11Z M110 9L112 11L110 13L108 11Z M90 15.5a1 1 0 1 0 0.01 0Z M110 15.5a1 1 0 1 0 0.01 0Z'/%3E%3Cpath fill-rule='evenodd' fill='%238CC63F' d='M123 3H157V20 L155.3 23.5 L153.6 20 L151.9 23.5 L150.2 20 L148.5 23.5 L146.8 20 L145.1 23.5 L143.4 20 L141.7 23.5 L140.0 20 L138.3 23.5 L136.6 20 L134.9 23.5 L133.2 20 L131.5 23.5 L129.8 20 L128.1 23.5 L126.4 20 L124.7 23.5 L123.0 20Z M140 7L144 11L140 15L136 11Z M130 9L132 11L130 13L128 11Z M150 9L152 11L150 13L148 11Z M130 15.5a1 1 0 1 0 0.01 0Z M150 15.5a1 1 0 1 0 0.01 0Z'/%3E%3C/svg%3E") repeat-x left top / 160px 26px; }

#view { padding-block: 14px 32px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--gator-deep); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 38px; padding: 0 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; background: none; color: var(--ink); white-space: nowrap; }
.btn-sm { height: 32px; padding: 0 .75rem; font-size: .85rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--danger); }
.link-btn { border: 0; background: none; padding: .25rem 0; color: var(--accent); cursor: pointer; font: inherit; text-align: left; }
.link-btn:disabled { color: var(--muted); cursor: not-allowed; }

/* ---------- help "?" ---------- */
.help { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 17px; height: 17px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: 600 11px/1 var(--font); cursor: help; vertical-align: middle; }
.help:hover, .help:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.help.static { cursor: default; pointer-events: none; }
#tooltip { position: fixed; z-index: 100; max-width: 300px; padding: .75rem .85rem; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-pop); font-size: .84rem; line-height: 1.45; pointer-events: none; }
.tip-title { font-weight: 700; margin-bottom: .25rem; }
.tip-def { margin: 0 0 .5rem; opacity: .9; }
.tip-type { display: flex; flex-direction: column; gap: .1rem; padding-top: .5rem; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.tip-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field-label { display: flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 38px; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
textarea.input { height: auto; padding: .55rem .7rem; resize: vertical; }
select.input { padding-right: 2rem; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.input::placeholder { color: var(--muted); opacity: .7; }
.input-wrap { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.input-wrap:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.input-wrap .input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.affix { display: flex; align-items: center; padding: 0 .6rem; background: var(--surface-2); color: var(--muted); font-size: .88rem; }
.input[type=number] { -moz-appearance: textfield; }
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.readonly { display: flex; align-items: center; height: 38px; padding: 0 .7rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.field .hint { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .9rem; }

/* ---------- simulator layout ---------- */
.sim-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; gap: 24px; align-items: start; max-width: 1480px; margin: 0 auto; }
.sim-layout.no-results { grid-template-columns: 230px minmax(0, 1fr); }
.prod-list { position: sticky; top: 80px; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.list-head h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prod-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.prod-items a { display: flex; flex-direction: column; padding: .55rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.prod-items a:hover { background: var(--surface); }
.prod-items a.active { background: var(--surface); border-left-color: var(--accent); box-shadow: var(--shadow); }
.prod-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-price { font-size: .8rem; color: var(--muted); }

.editor-head { margin-bottom: 1.1rem; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .15rem; }
.title-row { display: flex; align-items: center; gap: 1rem; }
.title-input { flex: 1; min-width: 0; padding: .15rem 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink); font: 400 1.6rem/1.25 var(--font-display); letter-spacing: .01em; }
.title-input:hover { border-bottom-color: var(--line); }
.title-input:focus { outline: none; border-bottom-color: var(--accent); }
.editor-actions { display: flex; gap: .25rem; }
.editor-head > p { margin: .5rem 0 0; }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.card-title { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.card-title h3 { font-size: 1rem; font-weight: 650; }
.card-head-right { display: flex; align-items: center; gap: .5rem; }
.subtotal { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.empty-note { color: var(--muted); padding: 1rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.segmented { display: inline-flex; padding: 3px; margin-bottom: .9rem; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.segmented button { border: 0; background: none; padding: .35rem .85rem; border-radius: 6px; font: inherit; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.venue > .field.wide { max-width: 420px; }
.facts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem; margin-top: .9rem; }
.fact { display: flex; flex-direction: column; gap: .1rem; }
.fact-label { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.fact-value { font-size: 1.1rem; font-weight: 600; }

.room-row.custom { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) repeat(3, minmax(0, .9fr)) auto; }
.room-rows { display: flex; flex-direction: column; gap: .75rem; }
.room-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; padding: .75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.venue-usage { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.sub-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin: 0 0 .6rem; }
.spacer { height: .9rem; }
.room-row-end { display: flex; justify-content: flex-end; align-items: center; gap: .25rem; height: 38px; }
.room-row-end .subtotal { min-width: 4.5rem; text-align: right; }

.add-field { position: relative; margin-top: 14px; }
.menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 340px; max-height: 420px; overflow-y: auto; padding: .4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.menu-group { padding: .5rem .6rem .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.menu-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: .45rem .6rem; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--accent-soft); }
.menu-item-label { font-weight: 600; font-size: .92rem; }
.menu-item-type { font-size: .78rem; color: var(--muted); }
.menu-new { color: var(--accent); font-weight: 600; }
.menu-sep { height: 1px; margin: .35rem 0; background: var(--line); }
.menu-empty { padding: .5rem .6rem; color: var(--muted); font-size: .86rem; }

/* ---------- results ---------- */
.results { position: sticky; top: 80px; }
.results-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero { position: relative; padding: 1.3rem 1.25rem 1.1rem; background: radial-gradient(circle at 12px 12px, rgba(255,255,255,.07) 3px, transparent 3.5px) 0 0 / 22px 22px, var(--gator); color: var(--gator-ink); }
.hero::after { content: ""; position: absolute; right: 12px; top: 12px; width: 64px; height: 36px; opacity: .9; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 80 44%22%3E   %3C%21-- ticket held in the jaws --%3E   %3Cg transform=%22rotate%28-9 64 24%29%22%3E     %3Cpath d=%22M50 19 H77 a2 2 0 0 1 0 4 a2 2 0 0 0 0 3 a2 2 0 0 1 0 4 H50 Z%22 fill=%22%23E4007C%22/%3E     %3Cpath d=%22M56 20.5 V28.5%22 stroke=%22%23FFF%22 stroke-width=%22.9%22 stroke-dasharray=%221.2 1.2%22/%3E     %3Crect x=%2260%22 y=%2222.3%22 width=%2212%22 height=%221.4%22 rx=%22.7%22 fill=%22%23FFD166%22/%3E     %3Crect x=%2260%22 y=%2225%22 width=%228%22 height=%221.4%22 rx=%22.7%22 fill=%22%23FFD166%22/%3E   %3C/g%3E   %3C%21-- lower jaw --%3E   %3Cpath d=%22M5 25 L14 25 L58 29 C63 29.5 65.5 31.5 64.5 33.6 C63.5 35.6 60 36.2 56 35.8 L16 34.2 C9 34 5 31 5 25 Z%22 fill=%22%23145C3F%22/%3E   %3Cg fill=%22%23FFFFFF%22%3E     %3Cpath d=%22M22 25.7 L23.5 22.6 L25 26 Z%22/%3E%3Cpath d=%22M30 26.4 L31.5 23.3 L33 26.7 Z%22/%3E%3Cpath d=%22M38 27.1 L39.5 24 L41 27.4 Z%22/%3E%3Cpath d=%22M46 27.8 L47.5 24.7 L49 28.1 Z%22/%3E   %3C/g%3E   %3Cg fill=%22%232EC4B6%22%3E%3Ccircle cx=%2222%22 cy=%2230.6%22 r=%221.2%22/%3E%3Ccircle cx=%2230%22 cy=%2231.2%22 r=%221.2%22/%3E%3Ccircle cx=%2238%22 cy=%2231.8%22 r=%221.2%22/%3E%3Ccircle cx=%2246%22 cy=%2232.4%22 r=%221.2%22/%3E%3Ccircle cx=%2254%22 cy=%2233%22 r=%221.1%22/%3E%3C/g%3E   %3C%21-- head %2B upper jaw --%3E   %3Cpath d=%22M3 22 C3 12 9 7 16 7 C18 3 25 3 27 7 L57 9 C64 10 69 12 69 16 C69 19 66 20.4 62 20.4 L14 22.4 C8 22.6 4 23.4 3 22 Z%22 fill=%22%231F7A55%22/%3E   %3Cg fill=%22%23FFFFFF%22%3E     %3Cpath d=%22M24 21.9 L25.5 25 L27 21.8 Z%22/%3E%3Cpath d=%22M32 21.6 L33.5 24.7 L35 21.5 Z%22/%3E%3Cpath d=%22M40 21.3 L41.5 24.4 L43 21.2 Z%22/%3E%3Cpath d=%22M48 21 L49.5 24.1 L51 20.9 Z%22/%3E%3Cpath d=%22M56 20.7 L57.5 23.6 L59 20.6 Z%22/%3E   %3C/g%3E   %3C%21-- alebrije patterns --%3E   %3Cpath d=%22M30 13 l3 -2.4 l3 2.4 l3 -2.4 l3 2.4 l3 -2.4 l3 2.4 l3 -2.4 l3 2.4%22 fill=%22none%22 stroke=%22%23FFD166%22 stroke-width=%221.3%22 stroke-linejoin=%22round%22 stroke-linecap=%22round%22/%3E   %3Cg fill=%22%23E4007C%22%3E%3Ccircle cx=%2233%22 cy=%2217%22 r=%221.1%22/%3E%3Ccircle cx=%2239%22 cy=%2217%22 r=%221.1%22/%3E%3Ccircle cx=%2245%22 cy=%2217%22 r=%221.1%22/%3E%3Ccircle cx=%2251%22 cy=%2216.8%22 r=%221.1%22/%3E%3Ccircle cx=%2257%22 cy=%2216.4%22 r=%221%22/%3E%3C/g%3E   %3Cg%3E%3Cpath d=%22M6 14 L8 9.5 L10.5 13 Z%22 fill=%22%23FFD166%22/%3E%3Cpath d=%22M10.5 11 L12.8 6.8 L15 10.6 Z%22 fill=%22%23E4007C%22/%3E%3Cpath d=%22M4.4 19 L5.6 14.8 L8.4 17.6 Z%22 fill=%22%232EC4B6%22/%3E%3C/g%3E   %3C%21-- eye %2B nostril --%3E   %3Ccircle cx=%2221.5%22 cy=%228.6%22 r=%223.7%22 fill=%22%23FFFFFF%22/%3E   %3Cellipse cx=%2222.4%22 cy=%228.8%22 rx=%221.05%22 ry=%222.5%22 fill=%22%2313261D%22/%3E   %3Ccircle cx=%2265.5%22 cy=%2213%22 r=%22.95%22 fill=%22%23145C3F%22/%3E %3C/svg%3E ") no-repeat center / contain; transform: scaleX(-1) rotate(-4deg); pointer-events: none; }
.hero-label { display: flex; align-items: center; gap: .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.hero .help { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.hero-value { font: 400 2.5rem/1.1 var(--font-display); margin: .35rem 0 .25rem; color: var(--marigold); letter-spacing: .01em; }
.hero-sub { font-size: .84rem; opacity: .85; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-bottom: 1px solid var(--line); }
.stat { padding: .85rem 1.25rem; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { display: flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--muted); }
.stat dd { margin: .15rem 0 0; font-size: 1.25rem; font-weight: 650; overflow-wrap: anywhere; }
.stat-detail { font-size: .76rem; color: var(--muted); }
.assumptions { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.section-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .6rem; }
.results-inner > div:last-child { padding: 1rem 1.25rem 1.25rem; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .86rem; }
.breakdown th { text-align: left; font-weight: 600; color: var(--muted); font-size: .74rem; padding: 0 0 .4rem; border-bottom: 1px solid var(--line); }
.breakdown td { padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.breakdown .num { text-align: right; padding-left: .75rem; white-space: nowrap; }
.td-detail { font-size: .76rem; color: var(--muted); }
.breakdown tr.profit td { color: var(--accent); }
.breakdown tfoot td { padding-top: .6rem; border-bottom: 0; font-weight: 700; font-size: .92rem; }

.alert { margin: .9rem 0 0; padding: .65rem .85rem; border-radius: var(--radius-sm); font-size: .84rem; }
.results-inner > div:first-child .alert { margin: .9rem 1.25rem; }
ul.alert { padding-left: 1.9rem; }
ul.alert li + li { margin-top: .25rem; }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert-error { background: var(--error-bg); color: var(--error-ink); }

/* ---------- pages ---------- */
.page { max-width: 1100px; margin: 0 auto; }
.page.narrow { max-width: 720px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.lede { margin: .4rem 0 0; color: var(--muted); max-width: 640px; }
.section-title { font-size: 1rem; margin: 1.75rem 0 .6rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; padding: .65rem 1rem; font-size: .76rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.data-table .actions { text-align: right; white-space: nowrap; }
.cell-title { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.empty-state { max-width: 560px; margin: 4rem auto; text-align: center; }
.empty-state p { color: var(--muted); }
.empty-state.small { margin: 0; max-width: none; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.panel h2 { font-size: 1.05rem; }
.panel p { margin: .3rem 0 .9rem; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }

/* ---------- forms / modal ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row > label, .form-row .field-label label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.form-error { margin: 0; color: var(--danger); font-size: .86rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 18, 16, .45); }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 1.4rem; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); }
.modal-title { font-size: 1.2rem; margin-bottom: 1rem; }
.modal-text { margin: 0; color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.4rem; }

#toasts { position: fixed; z-index: 120; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.toast { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .88rem; box-shadow: var(--shadow-pop); }
.toast-error { background: var(--danger); color: #fff; }
.toast-action { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sim-layout, .sim-layout.no-results { grid-template-columns: minmax(0, 1fr) 340px; }
  .prod-list { position: static; grid-column: 1 / -1; }
  .prod-items { flex-direction: row; overflow-x: auto; gap: .5rem; padding-bottom: 4px; }
  .prod-items li { flex: none; max-width: 220px; }
  .prod-items a { background: var(--surface); border: 1px solid var(--line); border-left-width: 3px; }
}
@media (max-width: 860px) {
  #view { padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 1rem; }
  .sim-layout, .sim-layout.no-results { grid-template-columns: minmax(0, 1fr); }
  .results { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-row, .room-row.custom { grid-template-columns: 1fr 1fr; }
  .room-row-end { grid-column: 1 / -1; }

  .page-head { flex-direction: column; align-items: flex-start; }
  .title-row { flex-wrap: wrap; }
  .title-input { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .menu { width: min(340px, calc(100vw - 32px)); }
}

/* ---------- room row save line ---------- */
.room-row-foot { grid-column: 1 / -1; margin-top: -.35rem; }

/* ---------- sales scenarios ---------- */
.scenarios { margin-bottom: 1.4rem; }
.scn-table td { vertical-align: middle; }
.scn-table tr.current td { background: var(--accent-soft); }
.scn-table tr.current td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: .5rem; }
.scn-pct { font-weight: 600; }
.scn-tag { margin-left: .4rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.scn-x { width: 28px; text-align: right; }
.icon-btn.sm { width: 24px; height: 24px; font-size: 1.05rem; }
.scn-add { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.scn-add .input-wrap { width: 7.5rem; }
.scn-add .input { height: 32px; }

/* ---------- row lists: discounts, campaigns ---------- */
.item-rows { display: flex; flex-direction: column; gap: .75rem; }
.item-row { display: grid; gap: .75rem; align-items: end; padding: .75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.discount-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .8fr) auto; }
.list-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.item-row-end { display: flex; justify-content: flex-end; align-items: center; gap: .25rem; height: 38px; }
.item-row-end .subtotal { min-width: 5.5rem; text-align: right; font-size: .85rem; }
@media (max-width: 860px) {
  .discount-row, .list-row { grid-template-columns: 1fr 1fr; }
  .item-row-end { grid-column: 1 / -1; }
}

/* ---------- results additions ---------- */
.ticket-types { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.scn-empty { margin: 0; }

/* ---------- sale + tiered pricing ---------- */
.sale-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1fr) auto; }
.tier-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin-bottom: 1rem; }
.tier-controls .field { flex: 0 1 auto; }
.tier-controls select.input { min-width: 12rem; }
.tier-controls .segmented { margin-bottom: 0; }
.tier-row { grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.tier-row.auto { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tier-auto { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; padding-bottom: .55rem; font-size: .72rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tier-auto input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tier-row.auto .tier-auto { color: var(--accent); }
.auto-tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.auto-out { background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-summary { margin-top: .8rem; font-size: .86rem; color: var(--ink-2); }
.tier-summary:empty { display: none; }
.tier-summary.bad { color: var(--error-ink); background: var(--error-bg); padding: .55rem .75rem; border-radius: var(--radius-sm); }
.breakdown tr.auto td { background: var(--accent-soft); }
@media (max-width: 860px) {
  .sale-row { grid-template-columns: 1fr 1fr; }
  .tier-row { grid-template-columns: auto 1fr 1fr; }
  .tier-row > .field:first-of-type { grid-column: 2 / -1; }
}

/* ---------- counted tickets ---------- */
.scope { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: .75rem; }
.scope-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.segmented.compact { margin-bottom: 0; }
.segmented.compact button { padding: .25rem .7rem; font-size: .8rem; }
.scope-out { font-size: .84rem; color: var(--ink-2); }
.scope-out:empty { display: none; }

/* ---------- group tags ---------- */
.tag[data-group] { --hue: var(--muted); background: color-mix(in srgb, var(--hue) 14%, var(--surface)); border-color: color-mix(in srgb, var(--hue) 35%, var(--surface)); color: color-mix(in srgb, var(--hue) 80%, var(--ink)); font-weight: 600; }
.tag[data-group="Core"] { --hue: var(--gator); }
.tag[data-group="Tickets"] { --hue: var(--accent); }
.tag[data-group="Marketing"] { --hue: var(--turquoise); }
.tag[data-group="Art"] { --hue: #c98a00; }
.tag[data-group="Technical"] { --hue: #6a4fd1; }
.tag[data-group="Rehearsals"] { --hue: #3f8f2f; }
.tag[data-group="Financial"] { --hue: #c2410c; }

/* ---------- mascot ---------- */
.mascot { display: block; width: min(260px, 70vw); height: auto; margin: 0 auto 1rem; animation: chomp 4s ease-in-out infinite; transform-origin: 30% 60%; }
@keyframes chomp { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .mascot, .brand-mark { animation: none; transition: none; } }
.empty-state h1 { font-size: 1.9rem; margin-bottom: .5rem; }
.empty-state h1 .accent { color: var(--accent); }

/* ---------- plans ---------- */
.plan-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: 1rem; border-bottom: 2px solid var(--line); }
.plan-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: -2px; min-width: 0; }
.plan-tab { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .5rem .9rem .45rem; border: 2px solid transparent; border-bottom-color: var(--line); border-radius: 10px 10px 0 0; color: var(--ink-2); text-decoration: none; background: transparent; font: inherit; cursor: pointer; }
.plan-tab:hover { background: var(--surface); color: var(--ink); }
.plan-tab.on { background: var(--surface); border-color: var(--line); border-bottom-color: var(--surface); color: var(--ink); }
.plan-tab.on .plan-tab-name { color: var(--gator); }
.plan-tab-name { font-weight: 700; font-size: .92rem; }
.plan-tab-price { font-size: .78rem; color: var(--muted); }
.plan-tab.add { flex-direction: row; align-items: center; align-self: center; color: var(--accent); font-weight: 600; font-size: .88rem; border: 0; }
.plan-bar > .btn { margin-bottom: .45rem; }
.plan-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.plan-name-row > label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.plan-name-input { width: 12rem; height: 34px; font-weight: 600; }

.prod-group .group-head { padding-bottom: .3rem; }
.plan-items { list-style: none; margin: 0 0 .3rem .9rem; padding: 0 0 0 .5rem; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.plan-items a { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem .6rem; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: .86rem; border-left: 3px solid transparent; }
.plan-items a:hover { background: var(--surface); }
.plan-items a.active { background: var(--surface); color: var(--ink); font-weight: 600; border-left-color: var(--accent); box-shadow: var(--shadow); }
.plan-items .prod-price { display: inline-flex; align-items: center; gap: .35rem; }
.best-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gator); display: inline-block; }

/* ---------- switch + shared resource ---------- */
.switch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); transition: background .15s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--turquoise); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.shared { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: .75rem; }
.shared.on { margin-left: -1.1rem; margin-right: -1.1rem; margin-bottom: -1.1rem; padding: .85rem 1.1rem 1.1rem; border-top: 1px solid color-mix(in srgb, var(--turquoise) 35%, var(--line)); background: color-mix(in srgb, var(--turquoise) 7%, var(--surface)); border-radius: 0 0 var(--radius) var(--radius); }
.shared-head { display: flex; align-items: center; gap: .4rem; }
.shared-with { font-size: .9rem; }
.shared-out { font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.shared-out:empty { display: none; }
.day-rate .sub-label { margin: .2rem 0 .5rem; }
.day-rate .grid-3 + .sub-label { margin-top: 1rem; }

/* ---------- tiered pricing: the calculated tier ---------- */
.tier-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .45rem; margin-bottom: 1rem; padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); font-size: .9rem; line-height: 1.6; }
.calc-chip, .tier-row.auto .field-label > span:first-child::after { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.calc-chip { padding: .15rem .5rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.input-sm { height: 32px; width: auto; padding: 0 1.8rem 0 .55rem; font-weight: 600; font-size: .88rem; }
.tier-sentence .input-sm { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.tier-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.tier-unit { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; }
.tier-row.auto .auto-out { border-style: solid; border-color: var(--accent); background: var(--surface); color: var(--accent); }

/* ---------- compare ---------- */
.compare .eyebrow { margin-bottom: .2rem; }
.verdict { display: grid; gap: .35rem; margin-bottom: 1.6rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); color: var(--gator-ink); background: radial-gradient(circle at 12px 12px, rgba(255,255,255,.07) 3px, transparent 3.5px) 0 0 / 22px 22px, var(--gator); }
.verdict-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.verdict-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.verdict-plan { font-family: var(--font-display); font-size: 1.6rem; }
.verdict-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--marigold); }
.verdict-price small { font-family: var(--font); font-size: .85rem; color: var(--gator-ink); opacity: .8; }
.verdict-list { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.verdict .muted { color: rgba(255,255,255,.75); }
.verdict .diff.up { color: #ffd0e6; }
.cmp-section { margin-bottom: 1.6rem; }
.cmp-section > p { margin: -.3rem 0 .6rem; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; min-width: 34rem; }
.cmp-table th, .cmp-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-table thead th { background: var(--surface-2); vertical-align: bottom; }
.cmp-table .cmp-label { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 600; color: var(--ink-2); width: 15rem; }
.cmp-table thead .cmp-label { background: var(--surface-2); }
.cmp-col { width: auto; }
.cmp-plan { font-weight: 700; font-size: .95rem; color: var(--ink); }
.cmp-col .small { display: inline-block; margin-top: .2rem; }
.cmp-chip { display: inline-block; margin: .2rem .4rem 0 0; padding: .05rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: color-mix(in srgb, var(--gator) 15%, var(--surface)); color: var(--gator); }
.cmp-chip.muted { background: var(--surface-2); color: var(--muted); }
.cmp-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-table tr.key td { font-weight: 700; font-size: 1rem; }
.cmp-table td.best { background: color-mix(in srgb, var(--gator) 10%, var(--surface)); color: var(--gator); }
.cmp-table .diff { font-size: .76rem; font-weight: 600; color: var(--muted); }
.cmp-table .diff.good { color: var(--gator); }
.cmp-table .diff.up { color: var(--accent); }
.cmp-text { color: var(--ink-2); }
.cmp-text.changed { background: color-mix(in srgb, var(--marigold) 22%, var(--surface)); color: var(--ink); font-weight: 600; }
.cmp-section:not(.show-same) tr.same { display: none; }
.cmp-section .link-btn { margin-left: .3rem; }

/* ---------- intro ---------- */
body.intro-open { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(ellipse at 50% 60%, #1d6e4d 0%, #10402d 70%); color: #fff; cursor: pointer; animation: intro-in .3s ease-out both; }
.intro .papel { position: absolute; top: 0; left: 0; right: 0; animation: papel-sway 2.4s ease-in-out infinite alternate; transform-origin: top; }
.intro.out { animation: intro-out .42s ease-in forwards; }
.intro-stage { position: relative; width: min(330px, 78vw); }
.intro-gator { display: block; width: 100%; height: auto; animation: gator-up .6s cubic-bezier(.2,1.4,.4,1) both, gator-bob .64s ease-in-out .6s infinite alternate; transform-origin: 50% 100%; }
.note { position: absolute; font-size: 2rem; font-weight: 700; opacity: 0; animation: note-float 1.6s ease-out infinite; }
.note.n1 { left: 70%; top: 52%; color: #ffc94d; animation-delay: .5s; }
.note.n2 { left: 80%; top: 40%; color: #ff4fa3; animation-delay: 1s; }
.note.n3 { left: 62%; top: 38%; color: #2ec4b6; animation-delay: 1.5s; }
.intro-title { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05; text-align: center; color: #ffc94d; text-shadow: 0 3px 0 #d1006b; }
.intro-title span { display: inline-block; opacity: 0; animation: letter-pop .42s cubic-bezier(.2,1.6,.4,1) forwards; animation-delay: calc(.55s + var(--i) * .045s); }
.intro-foot { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-height: 4.5rem; margin-top: .6rem; }
.intro-sound { height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: #ffc94d; color: #13261d; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #b88a10; }
.intro-sound:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.intro-skip { font-size: .82rem; opacity: .7; }
@keyframes intro-in { from { opacity: 0; } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@keyframes gator-up { from { transform: translateY(40px) scale(.85); opacity: 0; } }
@keyframes gator-bob { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes note-float { 0% { opacity: 0; transform: translateY(0) rotate(-10deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) rotate(14deg); } }
@keyframes letter-pop { from { opacity: 0; transform: translateY(18px) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes papel-sway { from { transform: skewX(-2deg); } to { transform: skewX(2deg); } }
.intro.still *, .intro.still { animation: none !important; }
.intro.still .intro-title span, .intro.still .note { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .intro *, .intro { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

@media (max-width: 860px) {
  .tier-row { grid-template-columns: 1fr 1fr; }
  .tier-row > .field:first-child { grid-column: 1 / -1; }
  .tier-unit { margin-left: 0; }
  .plan-tab { padding: .4rem .7rem; }
}

a.btn { text-decoration: none; }

/* intro step 1: start screen */
.intro.gate { gap: 1rem; }
.intro-start { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.6rem; border: 0; border-radius: 999px; background: #ffc94d; color: #13261d; font: 400 clamp(1.1rem, 4vw, 1.6rem)/1.1 var(--font-display); letter-spacing: .02em; cursor: pointer; box-shadow: 0 5px 0 #b88a10; animation: pulse-hint 1.3s ease-in-out infinite; }
.intro-start:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.intro-start-note { font-size: 1.4em; color: #d1006b; }
.intro-esc { font-size: .8rem; opacity: .6; }
@keyframes pulse-hint { 50% { transform: scale(1.05); } }

/* ---------- saving status ---------- */
.sync-pill { margin-left: auto; flex: none; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.sync-pill::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: #8fd3a6; vertical-align: 1px; }
.sync-pill.saving::before { background: var(--marigold); }
.sync-pill.error { background: #a1221a; color: #fff; }
.sync-pill.error::before { background: #fff; }
.sync-pill.local::before { background: rgba(255,255,255,.5); }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .sync-pill { display: none; } }
