:root {
  color-scheme: light;
  --ink: #172037;
  --muted: #4e5a73;
  --accent: #4437d1;
  --accent-dark: #3529a2;
  --line: #dce1ef;
  --surface: #fff;
  --canvas: #f5f6fc;
  --navy: #151936;
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #6d61df; outline-offset: 3px; }
.public-wrap { width: min(1260px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 52px); }
.public-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 72px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 23px; font-weight: 780; letter-spacing: -.06em; }
.mark { display: flex; width: 35px; height: 35px; align-items: center; justify-content: center; gap: 3px; border-radius: 9px; background: var(--accent); }
.mark i { display: block; width: 4px; height: 10px; border-radius: 3px; background: white; transform: skewY(-20deg); }
.mark i:nth-child(2) { height: 15px; }
.mark i:nth-child(3) { height: 22px; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
nav a, .public-footer a { color: var(--muted); font-size: 14px; font-weight: 660; text-decoration: none; }
nav a:hover, .public-footer a:hover { color: var(--accent); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.action { display: inline-flex; gap: 8px; justify-content: center; align-items: center; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; min-height: 44px; text-decoration: none; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; transition: background-color .15s; }
.action.primary { background: var(--accent); color: white; }
.action.primary:hover { background: var(--accent-dark); }
.action.secondary { border-color: #a5adca; background: var(--surface); }
.action.secondary:hover, .action.ghost:hover { background: #ecebfb; }
.hero { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 4vw, 62px); padding-block: clamp(42px, 7vw, 92px) clamp(40px, 6vw, 78px); }
.product-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--accent-dark); font-weight: 750; }
.product-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(38px, 5.2vw, 67px); line-height: 1.015; letter-spacing: -.066em; font-weight: 760; text-wrap: balance; }
.hero h1 { margin-block: 13px 16px; }
.hero-copy > p { font-size: clamp(16px, 1.65vw, 20px); color: var(--muted); max-width: 42ch; }
.hero .actions { margin-top: 24px; }
.product-preview { border-radius: 16px; border: 1px solid #c4cae8; overflow: hidden; background: var(--navy); padding: 0 11px 11px; box-shadow: 0 22px 64px #2d23772a; }
.preview-top { display: flex; gap: 13px; align-items: center; min-height: 40px; color: #e4e7ff; font-size: 12px; font-weight: 700; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #a49af4; }
.product-preview img { display: block; border-radius: 7px; width: 100%; height: auto; }
.feature-section h2, .security-section h2 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.feature { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 21px; }
.feature svg { display: block; width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 13px; }
.feature h3 { letter-spacing: -.025em; font-size: 18px; margin-bottom: 6px; }
.feature p, .security-section p { color: var(--muted); font-size: 14px; }
.security-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 39px; margin-top: 22px; }
.security-section p { margin-top: 8px; max-width: 64ch; }
.security-section .action { flex-shrink: 0; }
.public-footer { padding-block: 21px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 6vw, 80px); align-items: center; padding-block: clamp(30px, 8vw, 100px); }
.login-aside { background: var(--navy); border-radius: 18px; color: #f4f4fe; padding: clamp(26px, 5vw, 65px); }
.login-aside h2 { font-size: clamp(29px, 3.9vw, 51px); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.login-aside p { color: #ced0ee; margin: 15px 0 19px; }
.login-panel { padding: clamp(18px, 3.4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 12px 27px #1519360e; }
.login-panel h1 { font-size: clamp(29px, 4vw, 41px); letter-spacing: -.055em; }
.login-panel p { color: var(--muted); margin-top: 9px; font-size: 14px; }
.providers { display: grid; gap: 9px; margin-top: 20px; }
.providers button { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; text-align: start; align-items: center; gap: 8px; border: 1px solid #aeb6cc; border-radius: 8px; min-height: 52px; background: var(--surface); color: var(--ink); font-weight: 690; font-size: 14px; padding: 8px 11px; }
.providers button:hover { background: #efedfa; }
.providers svg { height: 20px; width: 20px; fill: #16699e; }
.google-mark { font-size: 18px; color: #2452bd; font-weight: 820; }
.login-switch a { font-weight: 700; }
.login-panel .access-note { margin-top: 21px; border-top: 1px solid var(--line); padding-top: 12px; }
.login-panel label { display: block; font-size: 14px; font-weight: 690; margin-top: 15px; }
.login-panel input { margin-top: 6px; min-height: 46px; width: 100%; padding: 7px 10px; border: 1px solid #aeb6cc; border-radius: 8px; background: var(--surface); color: var(--ink); }
.login-panel form .actions { margin-top: 16px; }
.login-panel .access-error { color: #9a233a; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .login-layout { grid-template-columns: 1fr; } .login-panel { grid-row: 1; } }
@media (max-width: 580px) { .header-row { flex-wrap: wrap; padding-block: 8px; } nav { order: 3; width: 100%; justify-content: start; gap: 14px; padding-bottom: 5px; } .feature-grid { grid-template-columns: 1fr; } .security-section { flex-wrap: wrap; padding-block: 26px; } .hero { gap: 25px; } .action { padding-inline: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.landing { background: #fafaff; }
.hero-surface {
  color: #faf9ff;
  background: radial-gradient(ellipse at 78% 10%, #353079 0%, transparent 54%), linear-gradient(125deg, #12152d, #211d48);
}
.hero-surface .product-label, .hero-surface h1 span { color: #c6baff; }
.hero-surface .product-label i { background: #aa97fc; }
.hero-surface .hero-copy > p { color: #dddaf4; }
.hero-surface .action.primary { color: #23194b; background: #c6baff; }
.hero-surface .action.primary:hover { background: #e0d8ff; }
.hero-surface .action.secondary { color: #faf9ff; border-color: #8d83bf; background: #252044; }
.hero-surface .action.secondary:hover { background: #393263; }

.dispatch-visual {
  min-width: 0;
  background: #1a1937;
  border: 1px solid #69609b;
  border-radius: 20px;
  padding: clamp(14px, 2.6vw, 29px);
  box-shadow: 0 24px 54px #0c0a2580;
}
.dispatch-visual figcaption { color: #d8d2f6; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 650; }
.pattern-dot { width: 8px; height: 8px; background: #baa8ff; border-radius: 50%; box-shadow: 0 0 0 4px #aa97fc29; margin-left: 4px; }
.dispatch-source, .dispatch-account { background: #262248; border: 1px solid #504875; border-radius: 11px; }
.dispatch-source { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px; margin-top: 15px; }
.dispatch-source small, .dispatch-source strong { display: block; }
.dispatch-source small, .dispatch-account > span, .dispatch-foot { color: #d5ceee; font-size: 12px; }
.dispatch-count { color: #e4d9ff; background: #42346c; border-radius: 6px; padding: 4px 7px; font-size: 12px; white-space: nowrap; }
.dispatch-branches { position: relative; height: 26px; width: 50%; margin-inline: auto; }
.dispatch-branches::before { content: ""; position: absolute; left: 50%; height: 50%; border-left: 1px solid #9e8cdb; }
.dispatch-branches i { position: absolute; top: 50%; bottom: 0; width: 50%; border-top: 1px solid #9e8cdb; }
.dispatch-branches i:first-child { left: 0; border-left: 1px solid #9e8cdb; border-top-left-radius: 6px; }
.dispatch-branches i:last-child { right: 0; border-right: 1px solid #9e8cdb; border-top-right-radius: 6px; }
.dispatch-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dispatch-account { padding: 11px; }
.dispatch-account > strong { display: block; font-size: 14px; margin-bottom: 6px; }
.dispatch-account > span { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; justify-content: space-between; padding-block: 4px; }
.dispatch-account code { color: #f3eaff; overflow-wrap: anywhere; }
.dispatch-foot { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 13px; }

.landing .feature-section, .showcase-section, .faq-section { padding-block: clamp(38px, 6vw, 76px); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 22px 0 0; gap: 16px; }
.workflow-grid li { background: #fff; border: 1px solid var(--line); padding: clamp(16px, 2vw, 25px); border-radius: 14px; }
.workflow-icon { display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 13px; border-radius: 10px; background: #efebff; }
.workflow-icon svg { width: 23px; height: 23px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workflow-grid h3 { font-size: 18px; margin-bottom: 5px; }
.workflow-grid p, .showcase-copy p { color: var(--muted); font-size: 15px; }

.showcase-section { background: #efeffa; border-block: 1px solid #e1e3f2; }
.showcase-section h2, .faq-section h2, .closing h2 { font-size: clamp(25px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 17px; }
.showcase-tabs button {
  background: #fff; color: var(--muted); border: 1px solid #d5d8eb; border-radius: 8px;
  min-height: 44px; font-size: 14px; font-weight: 700; padding: 7px 13px; transition: background-color .15s;
}
.showcase-tabs button:hover { background: #e3defa; }
.showcase-tabs button[aria-selected="true"] { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.showcase-panel { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(18px, 4vw, 54px); min-height: 250px; padding: clamp(17px, 3.5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.showcase-copy h3 { line-height: 1.16; letter-spacing: -.032em; font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 10px; }
.showcase-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 750; gap: 8px; margin-top: 7px; }
.showcase-link:hover { text-decoration: underline; }
.example-art { min-width: 0; border: 1px solid #d9ddef; border-radius: 11px; background: #f7f8ff; overflow: hidden; }
.example-title, .example-foot, .sample-rows li { padding: 10px 14px; }
.example-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.example-title span, .example-foot { color: var(--muted); font-size: 12px; }
.sample-rows { list-style: none; margin: 0; padding: 0; }
.sample-rows li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid #dfe2f1; background: #fff; font-size: 14px; }
.sample-rows small { color: var(--muted); margin-inline-start: 4px; }
.sample-rows code { color: var(--accent-dark); overflow-wrap: anywhere; }
.example-foot { border-top: 1px solid #dfe2f1; }
.packs-example li { justify-content: start; flex-wrap: nowrap; }
.packs-example small { display: block; margin-inline-start: 0; }
.file-art { display: grid; place-items: center; min-width: 47px; height: 40px; color: #42319b; background: #eee9ff; border-radius: 7px; font-size: 11px; font-weight: 800; }
.playable-art { color: #195e6b; background: #e1f3f7; }
.example-status { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.example-status.done { color: #176144; background: #e2f5eb; }
.example-status.waiting { color: #75450a; background: #fff1d7; }

.landing .security-section { padding-block: clamp(32px, 5vw, 61px); margin-top: 0; }
.faq-section { padding-top: 0; }
.faq-list { border-top: 1px solid var(--line); margin-top: 17px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq-list p { color: var(--muted); max-width: 66ch; margin: 0 0 16px; }
.closing-wrap { margin-bottom: clamp(30px, 5vw, 64px); }
.closing { background: #eae6fb; border: 1px solid #dbd4f5; padding: clamp(21px, 4vw, 44px); border-radius: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.closing p { color: var(--muted); margin-top: 8px; }
.public-footer .footer-brand { color: var(--ink); }

@media (max-width: 820px) {
  .showcase-panel { grid-template-columns: 1fr; }
  .closing { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .workflow-grid { grid-template-columns: 1fr; gap: 9px; }
}
.identity form{display:grid;gap:12px}.identity input:not([type=checkbox]){width:100%;padding:11px;border:1px solid #acb5ca;border-radius:8px;font:inherit}.identity button{padding:10px 16px;background:#4437d1;color:white;border:0;border-radius:8px;font:inherit;cursor:pointer}.identity img{max-width:100%;height:auto}.identity .errorlist{color:#a23344}

.identity h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.identity .action { font: inherit; font-size: 14px; font-weight: 650; line-height: 1.35; text-align: center; }
.identity .action.secondary { color: var(--ink); border: 1px solid #a5adca; }
.identity-actions { margin-top: 18px; gap: 10px; }
.identity-footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; align-items: center; }
.identity-footer .ghost { margin-inline-start: auto; }
.recovery-set { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8fc; }
.recovery-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.recovery-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.recovery-heading span { color: var(--muted); font-size: 14px; }
.recovery-grid { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 8px; }
.recovery-grid li { padding: 8px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.recovery-grid code { font: 600 15px/1.5 ui-monospace, monospace; letter-spacing: .08em; user-select: all; }
.identity input[type=checkbox] { width: 18px; min-height: 18px; vertical-align: middle; }
@media (max-width: 520px) {
  .identity-actions .action { width: 100%; }
}
.recovery-replace { margin-top: 16px; color: var(--muted); font-size: 14px; }
.recovery-replace summary { padding-block: 12px; cursor: pointer; font-weight: 650; }
.recovery-replace .action { margin-top: 10px; }
.identity .recovery-next { margin-top: 22px; color: var(--ink); }
.identity:has(.recovery-next) .identity-footer { margin-top: 12px; }

.landing .dispatch-accounts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.landing .dispatch-branches { width: 66.67%; }
.landing .dispatch-branches::before { height: 100%; }
.dispatch-account { min-width: 0; }
.dispatch-budget { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 10px; background: #30294e; }
.dispatch-budget label, .dispatch-budget small { display: block; font-size: 12px; color: #ded7f2; }
.dispatch-budget select { display: block; margin-top: 5px; padding: 6px 12px; min-height: 44px; border: 1px solid #9185b4; border-radius: 7px; background: #231f39; color: white; font: inherit; font-size: 16px; cursor: pointer; }
.dispatch-budget output { display: block; color: #d6caff; font-size: clamp(24px, 3vw, 36px); font-weight: 750; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes dispatch-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes dispatch-route { from { transform: scaleX(.05); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
  .dispatch-source { animation: dispatch-enter .4s both; }
  .dispatch-branches { animation: dispatch-route .45s .32s both; }
  .dispatch-account { animation: dispatch-enter .4s .65s both; }
  .dispatch-account:nth-child(2) { animation-delay: .82s; }
  .dispatch-account:nth-child(3) { animation-delay: .99s; }
  .dispatch-budget, .dispatch-foot { animation: dispatch-enter .4s 1.25s both; }
}
@media (max-width: 440px) {
  .dispatch-visual { margin-inline: 0; }
  .landing .dispatch-account { padding: 7px; }
  .dispatch-account > strong { font-size: 12px; }
}
.plan-controls, .plan-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.plan-controls label, .plan-summary small { color: #d5ceee; font-size: 12px; }
.plan-controls label { flex: 1 1 80px; }
.plan-controls select { width: 100%; display: block; margin-top: 4px; min-height: 44px; padding-inline: 8px; border: 1px solid #736993; border-radius: 8px; color: #fff; background: #25213f; font: inherit; font-size: 15px; }
.matrix-wrap { background: #201d38; border-radius: 10px; padding: 8px; }
.copy-matrix { width: 100%; border-spacing: 3px; font-size: 12px; color: #d5ceee; }
.copy-matrix th { text-align: center; }
.copy-matrix th:first-child { text-align: left; }
.copy-matrix td { background: #342f50; color: #c8bcee; text-align: center; border-radius: 4px; font-weight: 700; }
.copy-matrix.prepared td { background: #334c46; color: #cbf5db; }
@media (prefers-reduced-motion: no-preference) {
  .copy-matrix.prepared td { animation: dispatch-enter .35s var(--delay) both; }
}
.plan-summary { justify-content: space-between; border-top: 1px solid #514967; padding-top: 12px; }
.plan-summary strong, .plan-summary output { display: block; color: #dccfff; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
#sample-status { margin-top: 8px; color: #d5ceee; font-size: 12px; }
#sample-prepare:disabled { cursor: default; background: #34483f; color: #d1e8dc; }

.identity-provider-title { padding-top: 18px; margin: 24px 0 8px; border-top: 1px solid var(--line); font-size: 16px; }
.identity-providers { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.identity-provider { display: inline-flex; align-items: center; gap: 9px; padding: 8px; min-height: 44px; border-radius: 8px; font-weight: 650; text-underline-offset: 3px; }
.identity-provider:hover, .identity-provider:focus-visible { background: #f1effc; }

#quote select { width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 8px; font: inherit; }
#quote label { margin-top: 0; }
#quote-total, .credit-balance strong { font-size: 26px; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.credit-balance { display: flex; align-items: center; justify-content: space-between; margin-block: 14px; padding: 12px; border-radius: 8px; background: #efedff; }
.credit-balance h2 { font-size: 16px; }

.term-field { min-width: 0; font-weight: 650; font-size: 14px; }
#term-picker { position: relative; margin-top: 6px; }
#term-picker summary, #quote .term-option { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 9px 14px; cursor: pointer; }
#term-picker summary { background: white; color: var(--ink); border: 1px solid #adb5cc; border-radius: 9px; list-style: none; font-size: 16px; }
#term-picker summary::-webkit-details-marker { display: none; }
#term-picker summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
#term-picker[open] summary { border-color: var(--accent); }
#term-picker[open] summary::after { transform: rotate(225deg); }
.term-saving { border-radius: 6px; padding: 2px 7px; color: #42319b; background: #ebe7ff; font-size: 12px; font-weight: 700; }
.term-list { position: absolute; z-index: 3; inset: calc(100% + 5px) 0 auto; margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 5px; background: white; box-shadow: 0 8px 26px #24204226; }
#quote .term-option { margin: 0; border-radius: 7px; color: var(--ink); }
.term-option:hover, .term-option:has(:checked) { background: #f3f1fc; }
.term-option:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.term-option .term-saving { margin-inline-start: auto; }
#quote .term-option input, .term-sr { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; clip-path: inset(50%); overflow: hidden; }
.term-option::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #969fb5; }
.term-option:has(:checked)::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
