:root {
  color-scheme: light;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --ink: #142033;
  --muted: #5f6c7d;
  --line: #dce2e8;
  --line-strong: #cbd4dd;
  --brand: #1f56c7;
  --brand-dark: #163f97;
  --brand-soft: #eaf0ff;
  --teal: #08786f;
  --teal-soft: #e7f6f3;
  --danger: #b42318;
  --danger-soft: #fff2f0;
  --shadow-sm: 0 1px 2px rgba(20, 32, 51, .05);
  --shadow-lg: 0 18px 50px rgba(20, 32, 51, .09);
  --radius: 12px;
  --radius-lg: 18px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden], .hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-nav {
  width: min(var(--content), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 7px 16px rgba(31, 86, 199, .22);
}
.nav-group { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-subtle); }
.nav-links a.active { color: var(--brand); }
.nav-auth {
  appearance: none;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 750;
}
.nav-auth:hover { border-color: #aeb9c5; }
.nav-auth.signed-in { color: var(--danger); border-color: #e8c1bd; background: var(--danger-soft); }
.nav-toggle { display: none; }

.page-main { flex: 1; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  color: var(--brand);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -.052em; }
h2 { letter-spacing: -.032em; }
p { color: var(--muted); line-height: 1.65; }

.hero {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 560px;
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 72px;
}
.hero-copy > p { max-width: 650px; margin-bottom: 0; font-size: 1.08rem; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-actions, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions { margin-top: 28px; }
.button, button.primary, button.secondary, button.text-button {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 18px rgba(31, 86, 199, .18);
  cursor: pointer;
  font-weight: 780;
  text-decoration: none;
}
.button:hover, button.primary:hover { background: var(--brand-dark); }
.button.secondary, button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
button.text-button { min-height: auto; padding-inline: 6px; color: var(--brand); background: transparent; box-shadow: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
.text-link { color: var(--brand); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero-board {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.board-label { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.board-status { padding: 5px 8px; border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-size: .72rem; font-weight: 800; }
.signal-list { display: grid; gap: 9px; }
.signal-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; }
.signal-date { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: .7rem; font-weight: 850; text-align: center; line-height: 1.05; }
.signal-copy strong, .signal-copy span { display: block; }
.signal-copy strong { font-size: .88rem; }
.signal-copy span { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.signal-channel { padding: 5px 8px; border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-size: .7rem; font-weight: 800; }

.logo-strip { padding: 22px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logo-strip-inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; font-weight: 750; }
.logo-strip-label { color: #8994a3; font-weight: 650; }
.channel { display: inline-flex; align-items: center; gap: 7px; }
.channel-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.channel:nth-child(3) .channel-dot { background: #6554c0; }
.channel:nth-child(4) .channel-dot { background: #5865f2; }
.channel:nth-child(5) .channel-dot { background: var(--teal); }

.section-block { padding: 80px 0; }
.section-block.white { background: #fff; border-block: 1px solid var(--line); }
.section-heading { max-width: 670px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-heading p { margin-bottom: 0; }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-number { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: .8rem; font-weight: 850; }
.feature-card h3 { margin-bottom: 9px; font-size: 1.02rem; }
.feature-card p { margin-bottom: 0; font-size: .9rem; }
.steps-grid { counter-reset: step; }
.step { position: relative; padding: 0 24px 0 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand); background: #fff; font-size: .78rem; font-weight: 850; }
.step h3 { margin-bottom: 7px; font-size: 1rem; }
.step p { margin-bottom: 0; font-size: .88rem; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 36px; border-radius: var(--radius-lg); color: #fff; background: #17243a; box-shadow: var(--shadow-lg); }
.cta-panel h2 { margin-bottom: 8px; }
.cta-panel p { margin-bottom: 0; color: #bec8d7; }
.cta-panel .button { flex: 0 0 auto; background: #fff; color: #17243a; box-shadow: none; }

.page-hero { padding: 50px 0 36px; border-bottom: 1px solid var(--line); background: #fff; }
.page-hero-inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.page-hero-copy { max-width: 720px; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.15rem); }
.page-hero p { margin-bottom: 0; }
.page-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b9ded8; border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-size: .78rem; font-weight: 800; }
.workspace { padding: 34px 0 64px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: 22px; align-items: start; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card.sticky { position: sticky; top: 90px; }
.card-header { padding: 24px 24px 0; }
.card-header h2 { margin-bottom: 7px; font-size: 1.25rem; }
.card-header p { margin-bottom: 20px; font-size: .9rem; }
.card-body, form.card-form { padding: 0 24px 24px; }
.form-section { padding: 22px 0; border-top: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; border-top: 0; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-weight: 800; }
.section-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--brand); background: var(--brand-soft); font-size: .76rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields.stack { grid-template-columns: 1fr; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 750; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: rgba(31, 86, 199, .7); box-shadow: 0 0 0 3px rgba(31, 86, 199, .11); }
textarea { min-height: 190px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.45; }
.hint { margin-top: 7px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.check-field { display: flex; align-items: flex-start; gap: 9px; }
.check-field input { width: auto; margin-top: 3px; }
.check-field label { margin-bottom: 0; }
details.accordion { padding: 15px 0; border-top: 1px solid var(--line); }
details.accordion summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; font-size: .88rem; font-weight: 800; }
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: '+'; color: var(--brand); font-size: 1.1rem; }
details.accordion[open] summary::after { content: '−'; }
.accordion-body { margin-top: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chip { padding: 5px 8px; border-radius: 999px; color: #4b5870; background: #f0f3f6; font-size: .74rem; font-weight: 700; }
.country-picker, .timezone-picker { padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); }
.selected-countries { min-height: 31px; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.country-token { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px 5px 9px; border-radius: 999px; color: #264a91; background: var(--brand-soft); font-size: .78rem; font-weight: 780; }
.country-token button { width: 19px; height: 19px; padding: 0; border: 0; border-radius: 50%; color: #264a91; background: rgba(31, 86, 199, .12); cursor: pointer; line-height: 1; }
.country-results, .timezone-results { max-height: 210px; display: grid; gap: 3px; overflow: auto; margin-top: 7px; }
.country-result, .timezone-result { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; font-size: .82rem; font-weight: 700; }
.country-result:hover, .timezone-result:hover { background: #edf2f8; }
.country-result.selected, .timezone-result.selected { color: var(--teal); background: var(--teal-soft); }
.country-code, .timezone-offset { color: var(--muted); font-size: .74rem; }
.timezone-selected { margin-bottom: 7px; color: #264a91; font-size: .8rem; font-weight: 800; }
.preview { min-height: 285px; margin: 0; padding: 18px; overflow: auto; border-radius: 11px; color: #edf2fb; background: #131e2f; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.55; }
.status { min-height: 21px; margin-top: 11px; color: var(--muted); font-size: .82rem; }
.link-list { display: grid; gap: 10px; margin-top: 15px; }
.link-line { display: grid; gap: 5px; }
.link-line input { color: var(--muted); font-size: .8rem; }
.saved-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.saved-section h2 { margin-bottom: 6px; font-size: 1.04rem; }
.saved-list { display: grid; gap: 10px; margin-top: 14px; }
.saved-item { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.saved-item h3 { margin-bottom: 5px; font-size: .93rem; }
.saved-meta { margin-bottom: 9px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.saved-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.saved-actions button { min-height: 34px; padding: 7px 9px; font-size: .78rem; }

.gate { max-width: 720px; margin: 50px auto 80px; padding: 44px; text-align: center; }
.gate-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-weight: 850; }
.gate h2 { margin-bottom: 10px; }
.gate p { max-width: 530px; margin: 0 auto 22px; }
.gate-actions { justify-content: center; }
.auth-layout { width: min(980px, calc(100% - 40px)); margin: 64px auto 80px; display: grid; grid-template-columns: .86fr 1.14fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
.auth-aside { padding: 48px; color: #fff; background: #17243a; }
.auth-aside .eyebrow { color: #91b3ff; }
.auth-aside h1 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.auth-aside p { color: #c6d0de; }
.assurance-list { display: grid; gap: 14px; margin-top: 34px; }
.assurance { display: flex; gap: 11px; color: #d9e1ec; font-size: .86rem; line-height: 1.45; }
.assurance-check { flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #17243a; background: #8cdbc9; font-size: .72rem; font-weight: 900; }
.auth-panel { padding: 48px; }
.auth-panel h2 { margin-bottom: 8px; }
.auth-panel > p { margin-bottom: 26px; }
.auth-panel .fields { margin-bottom: 18px; }
.auth-panel .actions { align-items: stretch; flex-direction: column; }
.auth-panel .actions button { width: 100%; }
.auth-provider { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #8b96a4; font-size: .75rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.faq-list { display: grid; gap: 9px; }
.faq-list details { padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { width: min(var(--content), calc(100% - 40px)); min-height: 92px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: .8rem; }
.footer-copy { display: flex; align-items: center; gap: 14px; }
.footer-copy p { margin: 0; font-size: .8rem; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--muted); }

@media (max-width: 900px) {
  .hero-inner, .workspace-grid, .auth-layout { grid-template-columns: 1fr; }
  .hero-inner { gap: 42px; padding: 60px 0; }
  .hero-board { max-width: 620px; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .step { min-height: 50px; }
  .card.sticky { position: static; }
  .auth-aside, .auth-panel { padding: 36px; }
}

@media (max-width: 680px) {
  .site-nav { width: min(100% - 28px, var(--content)); min-height: 62px; gap: 12px; }
  .nav-links a { display: none; }
  .nav-links a.active { display: inline-flex; }
  .container, .hero-inner, .footer-inner { width: min(100% - 28px, var(--content)); }
  h1 { font-size: 2.45rem; }
  .hero-inner { min-height: auto; padding: 50px 0; }
  .hero-board { padding: 15px; }
  .signal-channel { display: none; }
  .page-hero { padding: 38px 0 28px; }
  .page-hero-inner, .cta-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .page-badge { display: none; }
  .workspace { padding-top: 22px; }
  .fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .card-header, .card-body, form.card-form { padding-left: 17px; padding-right: 17px; }
  .auth-layout { width: calc(100% - 28px); margin-block: 30px 50px; }
  .auth-aside, .auth-panel { padding: 28px 22px; }
  .auth-aside h1 { font-size: 2.2rem; }
  .section-block { padding: 58px 0; }
  .cta-panel { padding: 26px; }
  .footer-inner { padding: 24px 0; }
  .footer-copy { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-meta { text-align: left; }
}
