@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --navy-950: #080844;
  --navy-900: #0d0b61;
  --navy-800: #172273;
  --navy-700: #253c91;
  --blue-500: #5865d6;
  --blue-300: #aeb8ef;
  --red-600: #dc0000;
  --red-500: #ef3038;
  --red-400: #ff5a60;
  --teal-500: #0fa3b1;
  --green-600: #1f8c58;
  --paper: #fffefa;
  --canvas: #f2f3f9;
  --line: #dfe2f0;
  --line-strong: #cfd4e8;
  --ink: #11123c;
  --muted: #6e7392;
  --soft: #f7f8fc;
  --shadow-sm: 0 10px 30px rgba(18, 24, 74, .07);
  --shadow-lg: 0 30px 90px rgba(9, 9, 75, .16);
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body,
button,
input,
select {
  font-family: "DM Sans", sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font: 800 20px/1 "Manrope", sans-serif;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 25px;
  flex: none;
}

.brand-lockup {
  width: 190px;
  height: auto;
  display: block;
  flex: none;
}

.eyebrow,
.card-tag,
.briefing-kicker {
  display: inline-block;
  color: var(--red-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Authentication */

.auth-body {
  min-height: 100vh;
  background: var(--paper);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(520px, .95fr);
}

.auth-story {
  position: relative;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 12%, rgba(87, 121, 255, .27), transparent 20rem),
    radial-gradient(circle at 15% 84%, rgba(255, 59, 64, .16), transparent 24rem),
    linear-gradient(145deg, #080844 0%, #11156b 50%, #12305f 100%);
}

.auth-story::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -310px;
  top: -250px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, .025),
    0 0 0 180px rgba(255, 255, 255, .018);
}

.brand-light {
  position: relative;
  z-index: 1;
  color: white;
  align-self: flex-start;
}

.auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: auto 0 35px;
}

.auth-story-copy .eyebrow {
  color: #ff7c80;
}

.auth-story-copy h1 {
  max-width: 650px;
  margin: 20px 0 24px;
  font: 800 clamp(49px, 6.3vw, 92px)/.91 "Manrope", sans-serif;
  letter-spacing: -.075em;
}

.auth-story-copy p {
  max-width: 600px;
  margin: 0;
  color: #c9d0f4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.signal-preview {
  position: relative;
  z-index: 1;
  height: 250px;
  /* Balance both vertical auto margins with the adjacent auth card. */
  margin: 12px 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(4, 5, 47, .25);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.signal-preview svg,
.signal-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.signal-grid {
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 42px 42px;
}

.signal-label {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  color: #e3e7ff;
  background: rgba(8, 8, 68, .62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.signal-a {
  left: 22px;
  bottom: 19px;
}

.signal-b {
  left: 44%;
  top: 18px;
}

.signal-c {
  right: 22px;
  top: 46px;
  color: white;
  border-color: rgba(255, 89, 96, .55);
}

.auth-trust {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #aeb7e3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.auth-trust span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-trust i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40d989;
  box-shadow: 0 0 0 5px rgba(64, 217, 137, .1);
}

.auth-panel {
  min-height: 100vh;
  padding: 50px clamp(28px, 6vw, 96px);
  display: grid;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 88% 15%, rgba(239, 48, 56, .07), transparent 20rem),
    linear-gradient(180deg, #fffefa, #fbfbff);
}

.auth-card {
  width: min(560px, 100%);
}

.brand-mobile {
  display: none;
  margin-bottom: 52px;
}

.brand-mobile .brand-lockup {
  width: 176px;
}

.form-heading {
  margin-bottom: 31px;
}

.form-heading h2 {
  margin: 12px 0 12px;
  color: var(--navy-900);
  font: 800 clamp(32px, 4vw, 50px)/1.02 "Manrope", sans-serif;
  letter-spacing: -.06em;
}

.form-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-alert {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #ffc7c9;
  border-radius: 12px;
  color: #9d1820;
  background: #fff1f1;
  font-size: 13px;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field > span {
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--navy-900);
  background: white;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.form-field input::placeholder {
  color: #a0a5bf;
}

.form-field input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(88, 101, 214, .1);
}

.terms-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.terms-field input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--navy-900);
}

.primary-action {
  min-height: 55px;
  margin-top: 4px;
  padding: 0 18px 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(100deg, var(--red-600), var(--red-500));
  box-shadow: 0 14px 34px rgba(220, 0, 0, .18);
  font-weight: 800;
  transition: transform .18s, box-shadow .18s;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(220, 0, 0, .24);
}

.primary-action span:last-child {
  font-size: 22px;
  font-weight: 400;
}

.form-switch {
  margin-top: 27px;
  padding-top: 23px;
  display: flex;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.form-switch a {
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
}

.form-switch a:hover {
  text-decoration: underline;
}

.auth-legal {
  width: min(560px, 100%);
  margin: 32px 0 0;
  color: #959ab5;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

/* Authenticated product shell */

.product-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 96% 0, rgba(239, 48, 56, .06), transparent 28rem),
    var(--canvas);
}

.product-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.product-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  color: #f4f5ff;
  background:
    radial-gradient(circle at 50% 112%, rgba(39, 83, 143, .7), transparent 17rem),
    linear-gradient(180deg, #080844 0%, #0d0b55 62%, #101e59 100%);
  overflow: hidden;
}

.product-sidebar::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: -120px;
  bottom: -120px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, .018);
}

.sidebar-brand {
  position: relative;
  z-index: 1;
  margin: 0 13px 29px;
  color: white;
}

.workspace-switch {
  position: relative;
  z-index: 1;
  min-height: 60px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .075);
}

.workspace-avatar,
.user-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(145deg, var(--red-500), #ff7d68);
  font: 800 13px/1 "Manrope", sans-serif;
}

.workspace-switch small,
.workspace-switch strong {
  display: block;
}

.workspace-switch small {
  margin-bottom: 2px;
  color: #9ea8d6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.workspace-switch strong {
  max-width: 145px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-nav {
  position: relative;
  z-index: 1;
  margin-top: 23px;
  display: grid;
  gap: 3px;
  overflow-y: auto;
  scrollbar-width: none;
}

.product-nav::-webkit-scrollbar {
  display: none;
}

.nav-label {
  margin: 16px 12px 6px;
  color: #727fae;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.product-nav a,
.product-nav .nav-disabled {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: #bfc6e7;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.product-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, .06);
}

.product-nav a.active {
  color: white;
  background: linear-gradient(90deg, rgba(255, 59, 64, .22), rgba(255, 255, 255, .08));
  box-shadow: inset 3px 0 var(--red-400);
}

.product-nav .nav-disabled {
  opacity: .56;
}

.nav-icon {
  width: 18px;
  color: #939ed0;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.sidebar-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-foot a {
  padding: 8px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 11px;
  text-decoration: none;
}

.sidebar-foot a:hover,
.sidebar-foot a.active {
  background: rgba(255, 255, 255, .07);
}

.sidebar-foot strong,
.sidebar-foot small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot strong {
  color: white;
  font-size: 11px;
}

.sidebar-foot small {
  margin-top: 3px;
  color: #8f9aca;
  font-size: 9px;
}

.product-main {
  min-width: 0;
  min-height: 100vh;
}

.product-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 74px;
  padding: 0 clamp(24px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .91);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
}

.location-context {
  display: flex;
  align-items: center;
  gap: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #29ae70;
  box-shadow: 0 0 0 5px rgba(41, 174, 112, .1);
}

.location-context small,
.location-context strong {
  display: block;
}

.location-context small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.location-context strong {
  color: var(--navy-900);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.freshness-pill {
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 10px;
  font-weight: 700;
}

.freshness-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #29ae70;
}

.header-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-900);
  background: white;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  padding: 4px 7px 4px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy-900);
  background: white;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}

.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 205px;
  padding: 7px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.account-popover a,
.account-popover button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.account-popover a:hover,
.account-popover button:hover {
  background: var(--soft);
}

.account-popover form {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.account-popover button {
  color: var(--red-600);
}

.product-content {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.page-intro {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.page-intro h1 {
  margin: 8px 0 8px;
  color: var(--navy-900);
  font: 800 clamp(34px, 4vw, 56px)/1 "Manrope", sans-serif;
  letter-spacing: -.065em;
}

.page-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.page-date {
  flex: none;
  min-width: 160px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.page-date small,
.page-date strong {
  display: block;
}

.page-date small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.page-date strong {
  margin-top: 4px;
  color: var(--navy-900);
  font-size: 12px;
}

.briefing-hero {
  position: relative;
  min-height: 285px;
  padding: clamp(35px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border-radius: 26px;
  color: white;
  background:
    radial-gradient(circle at 95% 0, rgba(80, 127, 209, .46), transparent 24rem),
    linear-gradient(115deg, #11116a 0%, #172b74 60%, #153c68 100%);
  box-shadow: var(--shadow-lg);
}

.briefing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 20%, black);
}

.briefing-hero > div {
  position: relative;
  z-index: 1;
}

.briefing-kicker {
  color: #ff8589;
}

.briefing-hero h2 {
  max-width: 780px;
  margin: 14px 0;
  font: 800 clamp(36px, 5vw, 68px)/.98 "Manrope", sans-serif;
  letter-spacing: -.07em;
}

.briefing-hero p {
  max-width: 660px;
  margin: 0;
  color: #c9d0f4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.briefing-orbit {
  position: relative;
  width: 240px;
  height: 240px;
  justify-self: end;
}

.briefing-orbit span {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.briefing-orbit span:nth-child(2) {
  inset: 54px;
  border-style: dashed;
}

.briefing-orbit span:nth-child(3) {
  inset: 91px;
  background: rgba(255, 255, 255, .05);
}

.briefing-orbit i {
  position: absolute;
  width: 13px;
  height: 13px;
  right: 28px;
  top: 76px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 10px rgba(255, 59, 64, .13);
}

.workspace-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 16px;
}

.workspace-card,
.settings-panel,
.admin-transition {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm);
}

.workspace-card {
  min-height: 275px;
  padding: 26px;
}

.workspace-card h3 {
  margin: 10px 0 9px;
  color: var(--navy-900);
  font: 800 24px/1.1 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.workspace-card p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.55;
}

.primary-card {
  border-color: #cdd2ec;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 59, 64, .08), transparent 12rem),
    white;
}

.mini-bars {
  height: 86px;
  margin-top: 22px;
  padding: 0 9px;
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(25, 35, 106, .045) 27px 28px);
}

.mini-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--red-400), var(--blue-500));
}

.account-facts,
.settings-list {
  margin: 23px 0 0;
}

.account-facts div,
.settings-list div {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.account-facts dt,
.settings-list dt {
  color: var(--muted);
  font-size: 10px;
}

.account-facts dd,
.settings-list dd {
  margin: 0;
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.progress-track {
  height: 7px;
  margin: 34px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaecf6;
}

.progress-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--red-400));
}

.muted {
  color: #9298b5;
  font-size: 9px;
}

.settings-panel {
  max-width: 820px;
  padding: 30px;
}

.settings-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar.large {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 18px;
}

.settings-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font: 800 24px/1.1 "Manrope", sans-serif;
}

.settings-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-list {
  margin-top: 28px;
}

.settings-list div {
  padding: 15px 0;
}

.settings-list dt,
.settings-list dd {
  font-size: 12px;
}

.role-chip {
  padding: 8px 12px;
  border: 1px solid #ffd0d2;
  border-radius: 999px;
  color: var(--red-600);
  background: #fff1f1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-transition {
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.admin-transition h2 {
  margin: 12px 0;
  color: var(--navy-900);
  font: 800 clamp(30px, 4vw, 48px)/1 "Manrope", sans-serif;
  letter-spacing: -.06em;
}

.admin-transition p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.admin-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.admin-modules span {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy-900);
  background: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.auth-story-main {
  /* Fallback centering for browsers without subgrid; inside the wrapper the
     children's vertical auto margins resolve to 0. */
  margin: auto 0;
}

/* Exact left/right vertical alignment: both columns share the same grid
   rows (subgrid), so the story block and the auth card start on the same
   track edge at every viewport, and the pair centers as one unit. */
@supports (grid-template-rows: subgrid) {
  .auth-layout {
    /* Spacer rows keep a guaranteed minimum gap between the brand row and
       the story/card content (and between content and the footer row) even
       on viewports too short for the 1fr shares to open up. */
    grid-template-rows:
      auto
      minmax(clamp(40px, 5vh, 72px), 1fr)
      auto
      minmax(clamp(28px, 3.5vh, 52px), 1fr)
      auto;
  }

  .auth-story,
  .auth-panel {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
    align-content: start;
  }

  .auth-story { grid-column: 1; }

  .auth-panel {
    grid-column: 2;
    justify-items: center;
  }

  .brand-light {
    grid-row: 1;
    align-self: start;
  }

  .auth-story-main {
    grid-row: 3;
    margin: 0;
  }

  .auth-story-copy { margin: 0 0 35px; }

  .signal-preview { margin: 12px 0 0; }

  .auth-trust {
    grid-row: 5;
    align-self: end;
  }

  .auth-card { grid-row: 3; }

  .auth-legal {
    grid-row: 5;
    align-self: end;
  }
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: .85fr 1.15fr;
  }

  .auth-story {
    padding: 42px;
  }

  .auth-story-copy h1 {
    font-size: 58px;
  }

  .workspace-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-grid .primary-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .auth-layout {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 35px 24px;
  }

  .brand-mobile {
    display: inline-flex;
  }

  .product-frame {
    display: block;
  }

  .product-sidebar {
    display: none;
  }

  .product-header {
    padding: 0 20px;
  }

  .mobile-brand {
    display: block;
  }

  .mobile-brand .brand {
    font-size: 17px;
  }

  .location-context,
  .freshness-pill {
    display: none;
  }

  .product-content {
    width: min(100% - 34px, 760px);
    padding-top: 34px;
  }

  .briefing-hero {
    grid-template-columns: 1fr;
  }

  .briefing-orbit {
    display: none;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-grid .primary-card {
    grid-column: auto;
  }

  .admin-transition {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 570px) {
  .form-pair {
    grid-template-columns: 1fr;
  }

  .form-heading h2 {
    font-size: 35px;
  }

  .page-intro {
    display: block;
  }

  .page-date {
    margin-top: 20px;
  }

  .briefing-hero {
    min-height: 340px;
    padding: 32px 26px;
  }

  .briefing-hero h2 {
    font-size: 40px;
  }

  .account-menu summary > span:nth-child(2),
  .account-menu summary > span:last-child,
  .header-icon {
    display: none;
  }
}

/* Public landing */

.landing-body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.landing-header {
  position: relative;
  z-index: 20;
  min-height: 82px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid rgba(207, 212, 232, .78);
  background: rgba(255, 254, 250, .94);
  backdrop-filter: blur(18px);
}

.landing-brand {
  font-size: 21px;
}

.landing-nav {
  display: flex;
  justify-content: center;
  gap: clamp(2px, .8vw, 10px);
}

.landing-nav a {
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--navy-700);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}

.landing-nav a:hover {
  color: var(--navy-900);
  border-color: var(--line);
  background: var(--soft);
}

.landing-login {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s;
}

.landing-login:hover {
  color: var(--navy-900);
}

.landing-actions,
.landing-hero-actions,
.landing-assurances {
  display: flex;
  align-items: center;
}

.landing-actions {
  gap: 18px;
}

.landing-lang select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 28px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-700);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23253c91' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  transition: border-color .18s;
}

.landing-lang select:hover,
.landing-lang select:focus {
  border-color: var(--line-strong);
  outline: none;
}

.landing-user {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.landing-button {
  min-height: 43px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.landing-button:hover {
  transform: translateY(-2px);
}

.landing-button-primary {
  color: white;
  background: linear-gradient(100deg, var(--red-600), var(--red-500));
  box-shadow: 0 10px 24px rgba(220, 0, 0, .19);
}

.landing-button-primary:hover {
  box-shadow: 0 14px 30px rgba(220, 0, 0, .25);
}

.landing-button-secondary {
  color: var(--navy-900);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .75);
}

.landing-button-light {
  color: var(--navy-900);
  background: white;
  box-shadow: 0 14px 30px rgba(3, 4, 45, .18);
}

.landing-button-large {
  min-height: 54px;
  padding: 0 24px;
  font-size: 13px;
}

.landing-hero {
  position: relative;
  min-height: 720px;
  padding: clamp(70px, 8vw, 118px) clamp(24px, 6vw, 100px) 86px;
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(540px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 6%, rgba(88, 101, 214, .14), transparent 29rem),
    radial-gradient(circle at 4% 95%, rgba(239, 48, 56, .09), transparent 24rem),
    linear-gradient(180deg, #fffefa 0%, #f8f8fc 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -330px;
  top: -330px;
  border: 1px solid rgba(88, 101, 214, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(88, 101, 214, .035),
    0 0 0 180px rgba(88, 101, 214, .02);
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.landing-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 6px rgba(239, 48, 56, .09);
}

.landing-hero h1 {
  max-width: none;
  margin: 25px 0 25px;
  color: var(--navy-900);
  /* Sized for the three-sentence headline: three lines on desktop, not five. */
  font: 800 clamp(44px, 4.6vw, 72px)/.97 "Manrope", sans-serif;
  letter-spacing: -.065em;
}

.landing-lede {
  max-width: 610px;
  margin: 0;
  color: #565d89;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.58;
}

.landing-hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.landing-assurances {
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.landing-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.landing-assurances i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.landing-preview-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 740px;
  justify-self: end;
}

.preview-caption {
  position: absolute;
  right: 18px;
  top: -27px;
  color: #858aa8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demand-preview {
  position: relative;
  padding: clamp(19px, 2.3vw, 29px);
  border: 1px solid rgba(207, 212, 232, .95);
  border-radius: 24px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow-lg);
}

.demand-preview::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 11, 97, .13), rgba(239, 48, 56, .08));
}

.preview-head,
.preview-score-row,
.preview-chart-labels,
.confidence-row {
  display: flex;
  align-items: center;
}

.preview-head {
  justify-content: space-between;
  gap: 20px;
}

.preview-head > div {
  display: grid;
  gap: 2px;
}

.preview-day {
  color: var(--red-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.preview-head strong {
  color: var(--navy-900);
  font: 800 18px/1.2 "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.preview-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31be76;
  box-shadow: 0 0 0 5px rgba(49, 190, 118, .1);
}

.preview-alert {
  margin: 20px 0 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffd2d4;
  border-radius: 12px;
  background: #fff5f4;
}

.preview-alert > span {
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: var(--red-500);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.preview-alert p {
  margin: 0;
  color: #696e91;
  font-size: 10px;
  line-height: 1.4;
}

.preview-alert strong {
  color: var(--navy-900);
}

.preview-score-row {
  gap: 10px;
}

.preview-score,
.preview-peak {
  min-height: 96px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  border-radius: 14px;
}

.preview-score {
  flex: 1.1;
  color: white;
  background: linear-gradient(135deg, var(--navy-900), #173a82);
}

.preview-peak {
  flex: .9;
  border: 1px solid var(--line);
  background: var(--soft);
}

.preview-score span,
.preview-peak span,
.preview-score small,
.preview-peak small {
  font-size: 8px;
}

.preview-score span,
.preview-peak span {
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.preview-score span,
.preview-score small {
  color: #b9c4ef;
}

.preview-score strong {
  margin: 3px 0 1px;
  color: white;
  font: 800 29px/1 "Manrope", sans-serif;
}

.preview-peak span,
.preview-peak small {
  color: #8187a8;
}

.preview-peak strong {
  margin: 5px 0 3px;
  color: var(--navy-900);
  font-size: 14px;
}

.preview-chart {
  margin-top: 10px;
  padding: 13px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fafbff, #f3f5fb);
}

.preview-chart-labels {
  justify-content: space-between;
  color: #8389aa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.preview-chart svg {
  width: 100%;
  height: auto;
  margin-top: 3px;
  overflow: visible;
}

.preview-grid-lines path {
  stroke: #e2e5f1;
  stroke-width: 1;
}

.preview-area {
  fill: url("#landingDemandFill");
}

.preview-line {
  fill: none;
  stroke: url("#landingDemandLine");
  stroke-width: 4;
  stroke-linecap: round;
  animation: landing-line-in .85s ease-out both;
}

.preview-now-line {
  stroke: var(--red-400);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: .65;
}

.preview-point {
  fill: white;
  stroke: var(--red-500);
  stroke-width: 4;
}

.preview-chart svg > text {
  fill: var(--red-600);
  font-size: 10px;
  font-weight: 800;
}

.preview-axis text {
  fill: #8c92b0;
  font-size: 8px;
  font-weight: 700;
}

.preview-sources {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.preview-sources > div {
  min-width: 0;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.preview-sources > div > span:last-child {
  min-width: 0;
  display: grid;
}

.preview-sources small {
  color: #9297b3;
  font-size: 7px;
  font-weight: 700;
}

.preview-sources strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-icon {
  width: 23px;
  height: 23px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  font-size: 8px;
  font-weight: 900;
}

.source-air { background: var(--blue-500); }
.source-sea { background: var(--teal-500); }
.source-event { background: var(--red-500); }
.source-weather { background: #e39b10; }

.landing-source-ribbon {
  padding: 24px clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 60px);
  flex-wrap: wrap;
  color: #dfe3ff;
  background: linear-gradient(100deg, #060631, #101a56);
}

.ribbon-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ribbon-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40d989;
  box-shadow: 0 0 0 5px rgba(64, 217, 137, .14);
}

.ribbon-items {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  flex-wrap: wrap;
}

.ribbon-items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ribbon-items i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, #8ea0ff);
}

.landing-section {
  padding: clamp(78px, 9vw, 126px) clamp(24px, 7vw, 118px);
}

.landing-section-intro {
  /* Headings run the full section width; paragraphs stay at reading width. */
  max-width: none;
}

.landing-section-intro p {
  max-width: 760px;
}

.landing-section-kicker {
  color: var(--red-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.landing-section-intro h2,
.landing-close h2 {
  margin: 14px 0 15px;
  color: var(--navy-900);
  font: 800 clamp(34px, 3.6vw, 52px)/1 "Manrope", sans-serif;
  letter-spacing: -.055em;
}

.landing-section-intro p,
.landing-close p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
}

.landing-section-grey {
  background:
    radial-gradient(circle at 100% 0, rgba(88, 101, 214, .07), transparent 30rem),
    var(--canvas);
}

.landing-section-paper {
  background:
    radial-gradient(circle at 100% 100%, rgba(88, 101, 214, .08), transparent 31rem),
    var(--paper);
}

.landing-section-dark {
  color: white;
  background:
    radial-gradient(circle at 84% 15%, rgba(88, 101, 214, .42), transparent 24rem),
    radial-gradient(circle at 10% 120%, rgba(239, 48, 56, .2), transparent 24rem),
    linear-gradient(135deg, #080844, #12386c);
}

.landing-section-dark .landing-section-kicker {
  color: #ff7c80;
}

.landing-section-dark .landing-section-intro h2 {
  color: white;
}

.landing-section-dark .landing-section-intro p {
  color: #c5cdef;
}

.landing-section-dark .venue-uplift-note {
  color: #aeb7e3;
}

.signal-card-full blockquote {
  max-width: 860px;
  margin: 30px 0 26px;
  color: var(--navy-900);
  font: 400 clamp(20px, 2.3vw, 32px)/1.35 Georgia, "Times New Roman", serif;
}

.signal-card-full .confidence-row {
  color: var(--muted);
}

.signal-card-full .confidence-row strong {
  color: var(--navy-900);
}

.signal-card-full .confidence-row i.muted {
  background: var(--line);
}

.landing-sub-intro {
  margin-top: clamp(78px, 9vw, 122px);
}

.landing-step-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.landing-step {
  position: relative;
  min-height: 315px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.landing-step-dark {
  color: white;
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0, rgba(88, 101, 214, .45), transparent 17rem),
    linear-gradient(145deg, var(--navy-900), #14366f);
  transform: translateY(-16px);
}

.step-number {
  color: #959ab6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.landing-step-dark .step-number {
  color: #aeb7e3;
}

.step-symbol {
  width: 52px;
  height: 52px;
  margin: 52px 0 23px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--red-500);
  background: #fff1f1;
  font: 800 23px/1 "Manrope", sans-serif;
}

.landing-step-dark .step-symbol {
  color: white;
  background: rgba(255, 255, 255, .12);
}

.landing-step h3 {
  margin: 0 0 9px;
  color: var(--navy-900);
  font: 800 19px/1.15 "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.landing-step-dark h3 {
  color: white;
}

.landing-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.landing-step-dark p {
  color: #bdc6ed;
}

.landing-signal-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 14px;
}

.signal-card {
  min-height: 265px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, .92);
}

.signal-card-wide {
  grid-column: span 2;
}

.signal-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signal-code {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--navy-900);
  font-size: 9px;
}

.signal-card h3 {
  max-width: 650px;
  margin: 27px 0 16px;
  font: 800 clamp(23px, 2.4vw, 36px)/1.05 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.arrival-bars {
  height: 80px;
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid var(--line);
}

.arrival-bars i {
  width: min(9%, 36px);
  height: var(--bar);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal-500) 0 38%, var(--blue-500) 38% 100%);
  transform-origin: bottom;
  animation: landing-bars-in .7s ease-out both;
}

.arrival-bars i:nth-child(2n) {
  animation-delay: .06s;
}

.arrival-bars i:nth-child(3n) {
  background: linear-gradient(180deg, #e39b10 0 25%, var(--blue-500) 25% 100%);
  animation-delay: .12s;
}

.signal-meta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signal-meta span,
.signal-pill {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 8px;
  font-weight: 800;
}

.signal-card-red {
  color: white;
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .2), transparent 13rem),
    linear-gradient(145deg, var(--red-600), var(--red-400));
}

.signal-card-red .signal-card-head,
.signal-card-red p {
  color: white;
}

.signal-card-red .signal-code {
  color: var(--red-600);
  background: white;
}

.signal-big-number {
  display: block;
  margin-top: 38px;
  font: 800 62px/.9 "Manrope", sans-serif;
  letter-spacing: -.07em;
}

.signal-card-red p {
  max-width: 260px;
  margin: 16px 0 21px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.signal-card-red .signal-pill {
  color: white;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
}

.weather-orbit {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 24px auto 16px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--blue-300);
  border-radius: 50%;
}

.weather-orbit::before,
.weather-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.weather-orbit::before {
  inset: 18px;
}

.weather-orbit::after {
  inset: 38px;
  background: #fff2d7;
  border-color: #ffd889;
}

.weather-orbit span {
  position: relative;
  z-index: 1;
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
}

.weather-orbit i {
  position: absolute;
  width: 9px;
  height: 9px;
  right: 9px;
  top: 34px;
  border-radius: 50%;
  background: var(--red-500);
}

.signal-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.signal-card-navy {
  color: white;
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0, rgba(15, 163, 177, .2), transparent 18rem),
    linear-gradient(145deg, var(--navy-900), #173e7a);
}

.signal-card-navy .signal-card-head {
  color: #d7dcfa;
}

.signal-card-navy .signal-code {
  color: var(--navy-900);
  background: white;
}

.signal-card-navy blockquote {
  max-width: 720px;
  margin: 38px 0 28px;
  color: white;
  font: 400 clamp(20px, 2.3vw, 32px)/1.35 Georgia, "Times New Roman", serif;
}

.confidence-row {
  gap: 7px;
  color: #c0c8ed;
  font-size: 9px;
  font-weight: 700;
}

.confidence-row span {
  margin-right: 5px;
}

.confidence-row i {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: #45d096;
}

.confidence-row i.muted {
  background: rgba(255, 255, 255, .16);
}

.confidence-row strong {
  margin-left: 5px;
  color: white;
}

.landing-close {
  min-height: 350px;
  padding: 70px clamp(24px, 7vw, 118px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  color: white;
  background:
    radial-gradient(circle at 84% 15%, rgba(88, 101, 214, .42), transparent 24rem),
    radial-gradient(circle at 10% 120%, rgba(239, 48, 56, .2), transparent 24rem),
    linear-gradient(135deg, #080844, #12386c);
}

.landing-close .landing-section-kicker {
  color: #ff7c80;
}

.landing-close h2 {
  color: white;
}

.landing-close p {
  color: #c5cdef;
}

.landing-footer {
  padding: 58px clamp(24px, 6vw, 100px) 28px;
  color: #8b90ac;
  background: #060631;
  font-size: 12px;
}

.landing-footer-brand {
  color: white;
  font-size: 17px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 3fr;
  gap: clamp(34px, 6vw, 96px);
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.footer-brand-col p {
  max-width: 250px;
  margin: 15px 0 0;
  line-height: 1.55;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.footer-col {
  display: grid;
  gap: 11px;
  align-content: start;
}

.footer-col h4 {
  margin: 0 0 5px;
  color: white;
  font: 800 11px/1 "Manrope", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.footer-col a {
  color: #8b90ac;
  font-size: 12px;
  text-decoration: none;
  transition: color .15s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 11px;
}

/* Zone map card (C) and full-width card (E) */

.signal-card-full {
  grid-column: 1 / -1;
}

.zone-map {
  margin: 16px 0 14px;
}

.zone-map svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Step artwork (replaces the old glyph symbols) */

.step-art {
  height: 96px;
  margin: 26px 0 2px;
  display: grid;
  justify-items: center;
  color: var(--navy-700);
}

.step-art svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 160px;
}

.landing-step-dark .step-art {
  color: #aab7ff;
}

/* Expected-flow gauge (card B) */

.flow-gauge {
  max-width: 216px;
  margin: 26px 0 0;
}

.flow-gauge svg {
  display: block;
  width: 100%;
  height: auto;
}

.signal-card-center {
  text-align: center;
}

.signal-card-center .flow-gauge {
  margin-left: auto;
  margin-right: auto;
}

.signal-card-center > p {
  margin-left: auto;
  margin-right: auto;
}

.flow-split {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 15px 0 16px;
}

.flow-split small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.flow-split strong {
  color: var(--navy-900);
  font: 800 16px/1.4 "Manrope", sans-serif;
}

.gauge-number {
  display: block;
  margin-top: 10px;
  color: var(--navy-900);
  font: 800 40px/1 "Manrope", sans-serif;
  letter-spacing: -.06em;
}

/* Venue-uplift strip: one day, four businesses */

.venue-uplift-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 46px 0 0;
}

.venue-uplift {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 24px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.venue-icon {
  color: var(--navy-700);
}

.venue-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.venue-name {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.venue-bar {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.venue-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--lift);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--red-500));
}

.venue-uplift strong {
  color: var(--navy-900);
  font: 800 22px/1 "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.venue-uplift-note {
  margin: 14px 0 52px;
  color: var(--muted);
  font-size: 12px;
}

/* Local-conditions panel (card C) */

.conditions-panel {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}

.condition-main {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  border: 1px solid #ffe3b3;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7e4, #fffdf6);
}

.condition-sun {
  width: 40px;
  height: 40px;
  flex: none;
  color: #e8a013;
}

.condition-main strong {
  display: block;
  color: var(--navy-900);
  font: 800 27px/1 "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.condition-main small {
  color: var(--muted);
  font-size: 11px;
}

.condition-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.condition-tiles > div {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.condition-tiles small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.condition-tiles strong {
  color: var(--navy-900);
  font-size: 13px;
}

.condition-meter {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.condition-meter i {
  position: absolute;
  inset: 0;
  display: block;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, #45d096, #0fa3b1);
}

.condition-good {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.condition-good i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45d096;
}

/* Outcomes: what you can do */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.outcome-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}

.outcome-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.outcome-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--navy-700);
  background: var(--soft);
}

.outcome-icon svg {
  width: 30px;
  height: 30px;
}

.outcome-card h3 {
  margin: 18px 0 8px;
  color: var(--navy-900);
  font: 800 19px/1.2 "Manrope", sans-serif;
  letter-spacing: -.03em;
}

.outcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
  margin: 0;
  color: var(--navy-900);
  font: 800 20px/1 "Manrope", sans-serif;
  letter-spacing: -.03em;
}

.pricing-tagline {
  color: var(--blue-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pricing-amount {
  margin: 8px 0 4px;
  color: var(--navy-900);
  font: 800 44px/1 "Manrope", sans-serif;
  letter-spacing: -.05em;
}

.pricing-amount small {
  color: var(--muted);
  font: 700 14px/1 "DM Sans", sans-serif;
  letter-spacing: 0;
}

.pricing-features {
  flex: 1;
  margin: 6px 0 18px;
  padding: 0;
  display: grid;
  gap: 11px;
  align-content: start;
  list-style: none;
}

.pricing-features li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600);
  font-weight: 800;
}

.pricing-features li.pricing-minus {
  color: var(--muted);
}

.pricing-features li.pricing-minus::before {
  content: "\2013";
  color: var(--muted);
}

.pricing-card .landing-button {
  justify-content: center;
}

.landing-button-outline {
  color: var(--navy-900);
  border-color: var(--navy-800);
  background: white;
}

.landing-button-outline:hover {
  background: var(--soft);
}

.pricing-card-featured {
  border: 2px solid var(--red-500);
  background: linear-gradient(180deg, white, #fff7f6);
}

.pricing-flag {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(100deg, var(--red-600), var(--red-500));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pricing-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.pricing-flag-navy {
  background: linear-gradient(100deg, var(--navy-900), var(--navy-700));
}

.pricing-card-popular {
  border-color: var(--navy-800);
}

@media (max-width: 1060px) {
  .outcome-grid,
  .condition-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes landing-line-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-bars-in {
  from {
    opacity: .25;
    transform: scaleY(.15);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 1160px) {
  .landing-header {
    grid-template-columns: auto 1fr;
  }

  .landing-nav {
    display: none;
  }

  .landing-actions {
    justify-self: end;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-hero-copy {
    max-width: 850px;
  }

  .landing-hero h1 {
    max-width: 850px;
  }

  .landing-preview-wrap {
    max-width: 850px;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .landing-header {
    min-height: 72px;
  }

  .landing-user,
  .landing-actions .landing-login {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .landing-hero h1 {
    font-size: clamp(49px, 12vw, 72px);
  }

  .landing-step-grid,
  .landing-signal-grid {
    grid-template-columns: 1fr;
  }

  .landing-step-dark {
    transform: none;
  }

  .signal-card-wide {
    grid-column: auto;
  }

  .landing-close {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .landing-header {
    padding: 0 18px;
    gap: 10px;
  }

  .landing-brand {
    font-size: 17px;
  }

  .landing-brand svg {
    width: 24px;
  }

  .landing-actions .landing-button {
    min-height: 39px;
    padding: 0 13px;
    font-size: 10px;
  }

  .landing-hero {
    padding-left: 18px;
    padding-right: 18px;
    gap: 58px;
  }

  .landing-hero h1 {
    font-size: 48px;
  }

  .landing-lede {
    font-size: 17px;
  }

  .landing-hero-actions,
  .landing-hero-actions .landing-button {
    width: 100%;
  }

  .landing-assurances {
    gap: 12px;
  }

  .demand-preview {
    padding: 15px;
    border-radius: 18px;
  }

  .preview-alert {
    grid-template-columns: 1fr;
  }

  .preview-sources {
    grid-template-columns: 1fr 1fr;
  }

  .preview-score-row {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-source-ribbon {
    justify-content: flex-start;
  }

  .landing-source-ribbon span::after {
    display: none;
  }

  .landing-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-section-intro h2,
  .landing-close h2 {
    font-size: 42px;
  }

  .landing-step {
    min-height: 285px;
  }

  .landing-close {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .landing-footer > span {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-line,
  .arrival-bars i {
    animation: none;
  }
}

@media (max-width: 820px) {
  .venue-uplift-band {
    grid-template-columns: 1fr 1fr;
  }

  .outcome-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Marketing subpages (company / resources / use cases / guides) */

.page-hero {
  padding: clamp(64px, 8vw, 110px) clamp(24px, 7vw, 118px) clamp(44px, 5vw, 70px);
  color: white;
  background:
    radial-gradient(circle at 84% 15%, rgba(88, 101, 214, .42), transparent 24rem),
    radial-gradient(circle at 10% 120%, rgba(239, 48, 56, .2), transparent 24rem),
    linear-gradient(135deg, #080844, #12386c);
}

.page-hero .landing-section-kicker { color: #ff7c80; }

.page-hero h1 {
  max-width: none;
  margin: 16px 0 18px;
  font: 800 clamp(38px, 4.2vw, 62px)/1.02 "Manrope", sans-serif;
  letter-spacing: -.055em;
}

.page-hero p {
  max-width: none;
  margin: 0;
  color: #c5cdef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
}

.prose { max-width: 720px; }
.prose h3 { margin: 34px 0 10px; color: var(--navy-900); font: 800 21px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.prose p { margin: 0 0 14px; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.prose ul { margin: 0 0 14px 18px; padding: 0; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.prose a { color: var(--navy-800); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.contact-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin: 0 0 6px; color: var(--navy-900); font: 800 16px/1.2 "Manrope", sans-serif; }
.contact-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.contact-card a { color: var(--navy-800); font-weight: 700; font-size: 13.5px; }

.contact-form-block { margin-top: 46px; }
.contact-form-block h3 { margin: 0 0 6px; color: var(--navy-900); font: 800 21px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.contact-form-block > p { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.contact-feedback { max-width: 640px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font: 700 13px/1.5 "Manrope", sans-serif; }
.contact-feedback-success { color: #17643c; background: #ecf8f0; border-color: #a9ddbb; }
.contact-feedback-error { color: #9f2027; background: #fff0f1; border-color: #f2b8bc; }
.contact-form { max-width: 640px; display: grid; gap: 16px; }
.form-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; outline: none; color: var(--navy-900); background: white; font: inherit; resize: vertical; min-height: 120px; transition: border-color .18s, box-shadow .18s; }
.form-field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(88, 101, 214, .1); }
.contact-form .landing-button { justify-self: start; }
.terms-field a { color: var(--navy-800); font-weight: 700; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.faq-list { max-width: 780px; display: grid; gap: 12px; margin-top: 30px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); padding: 0 20px; }
.faq-list summary { padding: 17px 0; color: var(--navy-900); font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-list summary::after { content: "+"; color: var(--red-500); font: 800 20px/1 "Manrope", sans-serif; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.status-banner { display: flex; align-items: center; gap: 12px; max-width: 780px; margin-top: 28px; padding: 18px 22px; border: 1px solid #bfe8d2; border-radius: 16px; background: #f2fbf6; color: var(--navy-900); font-weight: 700; }
.status-banner i { width: 11px; height: 11px; border-radius: 50%; background: #1f8c58; box-shadow: 0 0 0 5px rgba(31, 140, 88, .15); }
.status-banner small { color: var(--muted); font-weight: 500; margin-left: auto; }

.legal-note { max-width: 780px; margin: 26px 0 0; padding: 14px 18px; border: 1px solid #ffe3b3; border-radius: 13px; background: #fff9ec; color: #7a5b12; font-size: 12.5px; line-height: 1.55; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.case-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.case-card h3 { margin: 0 0 4px; color: var(--navy-900); font: 800 20px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; text-align: center; }
.case-problem { display: block; color: var(--red-500); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: center; }
.case-card p { margin: 10px 0 12px; color: var(--ink); font-size: 13.5px; line-height: 1.65; }
.case-card p strong { color: var(--navy-900); }
.case-card mark { padding: 1px 6px; border-radius: 7px; background: #fff1f1; box-shadow: inset 0 0 0 1px #ffd7d8; color: var(--navy-900); font-weight: 600; }
.case-art { height: 126px; margin: 16px 0 10px; display: grid; justify-items: center; color: var(--navy-700); }
.case-art svg { height: 100%; width: auto; max-width: 100%; }
.case-signals { display: flex; flex-wrap: wrap; gap: 7px; }
.case-signals span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--soft); font-size: 9.5px; font-weight: 800; }

.guide-steps { max-width: 780px; display: grid; gap: 26px; margin-top: 34px; }
.guide-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; font: 800 16px/1 "Manrope", sans-serif; }
.guide-tip { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.guide-tip strong { color: var(--navy-700); }
.guide-wrap { max-width: 1040px; }
.gstep { display: grid; grid-template-columns: 46px 1fr 240px; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.gstep:last-child { border-bottom: 0; }
.gstep h3 { margin: 8px 0 7px; color: var(--navy-900); font: 800 18px/1.25 "Manrope", sans-serif; letter-spacing: -.02em; }
.gstep p { margin: 0 0 8px; color: var(--ink); font-size: 14px; line-height: 1.65; }
.gstep-art { justify-self: end; }
.gstep-art svg { display: block; width: 240px; height: auto; }

@media (max-width: 1060px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
  .gstep { grid-template-columns: 46px 1fr; }
  .gstep-art { display: none; }
}
