* { box-sizing: border-box; }

.storefront {
  --store-gutter: clamp(20px, 4.15vw, 72px);
  --store-section-space: clamp(48px, 5vw, 80px);
  margin: 0;
  background: var(--store-paper);
  color: var(--store-ink);
  font: 16px/1.5 var(--f-ui);
}

.storefront a { color: inherit; }
.storefront :is(a, select, summary):focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
.storefront :is(h1, h2, h3) { margin: 0; line-height: 1.1; }
.storefront p { margin: 0; }
.storefront section[id] { scroll-margin-block-start: 16px; }
.store-wrap {
  width: min(1440px, calc(100% - 2 * var(--store-gutter)));
  margin-inline: auto;
}

.store-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 96px;
}
.store-brand {
  display: block;
  width: clamp(124px, 12vw, 180px);
  justify-self: start;
}
.store-brand img { width: 100%; height: auto; }
.store-nav, .store-auth {
  display: flex;
  align-items: center;
}
.store-nav { justify-content: center; gap: clamp(28px, 4.4vw, 68px); }
.store-auth { justify-self: end; gap: clamp(12px, 1.45vw, 24px); }
.store-nav a, .store-login { font-size: clamp(16px, 1.36vw, 20px); font-weight: 500; text-decoration: none; }
.store-nav a, .store-auth a { white-space: nowrap; }
.store-nav a:hover, .store-login:hover, .store-footer a:hover { color: var(--link); }

.store-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 19px;
  font-weight: 650;
  text-decoration: none;
}
.storefront .store-button-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.storefront .store-button-primary:hover {
  background: color-mix(in srgb, var(--brand) 87%, var(--store-ink));
}
.storefront .store-button-outline {
  border-color: var(--store-outline);
  color: var(--store-outline);
}
.store-register { border-color: var(--store-outline); }
.store-register:hover, .store-button-outline:hover, .store-theme:hover {
  background: var(--store-plan-spotlight);
}

.store-theme {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  position: relative;
  place-items: center;
  border-radius: var(--r-sm);
}
.store-theme[hidden] { display: none; }
.store-theme select {
  position: absolute;
  inset: 0;
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.store-theme option { color: var(--store-ink); background: var(--store-paper); }
.store-theme svg { pointer-events: none; }

.store-hero { overflow: clip; }
.store-hero-layout {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(456px, 37.4vw, 600px);
  padding-block: 36px;
}
.store-hero-copy { position: relative; z-index: 1; width: min(50%, 690px); }
.store-hero-copy h1 {
  font-size: clamp(44px, 4.45vw, 70px);
  font-weight: 730;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.store-hero-copy h1 span { display: block; }
.store-hero-copy p {
  max-width: var(--store-copy-measure);
  margin-block: 28px 36px;
  color: var(--store-ink-secondary);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.32;
}
.store-hero-copy .store-hero-action {
  min-height: 62px;
  gap: 24px;
  padding-inline: 32px;
  font-size: clamp(18px, 1.7vw, 24px);
}
.store-hero-action svg { flex: none; }

.store-route {
  position: absolute;
  isolation: isolate;
  inset-inline-end: 0;
  inset-block-start: 50%;
  width: 57.8%;
  aspect-ratio: 760 / 520;
  margin: 0;
  transform: translateY(-50%);
}
.store-route::before, .store-route::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}
.store-route::before {
  inset-block: 5% 10%;
  inset-inline: 72% calc(-1 * var(--store-gutter));
  background-image:
    linear-gradient(to right, var(--store-route-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--store-route-grid) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 100% 50%, black 18%, transparent 76%);
}
.store-route::after {
  inset-block: 83% -2%;
  inset-inline: -12% 1%;
  background:
    radial-gradient(ellipse 20% 20% at 51% 38%, var(--store-route-contact), transparent),
    radial-gradient(ellipse 36% 43% at 52% 47%, var(--store-route-shadow), transparent);
}
.store-route-floor {
  position: absolute;
  z-index: -2;
  inset-inline-start: -18%;
  inset-block-end: -3%;
  width: 130%;
  height: auto;
}
.store-route-lines, .store-route-mark {
  position: absolute;
  display: block;
}
.store-route-lines { inset: 0; width: 100%; height: 100%; }
.store-route-device { stroke: var(--store-route-device); }
.store-route-trunk { stroke: var(--store-route-trunk); }
.store-route-via { stroke: var(--store-route-via); }
.store-route-direct { stroke: var(--store-route-direct); }
.store-route-lines > path { stroke-width: 3; }
.store-route-dot-direct { fill: var(--store-route-direct); }
.store-route-dot-via { fill: var(--store-route-via); }
.store-route-mark {
  inset-block-start: 4%;
  inset-inline-start: 15%;
  width: 60%;
  height: 87%;
  object-fit: contain;
}
.store-art-light { display: var(--store-art-light); }
.store-art-dark { display: var(--store-art-dark); }
.store-route-label {
  position: absolute;
  inset-inline-start: calc(82.24% + 13px);
  font-size: clamp(16px, 1.48vw, 23px);
  font-weight: 550;
  line-height: 1.1;
  white-space: nowrap;
  transform: translateY(-50%);
}
.store-route-label-via { inset-block-start: 37.31%; }
.store-route-label-direct { inset-block-start: 63.08%; }

.store-section { padding-block: var(--store-section-space); }
.store-section-head h2 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 740; letter-spacing: -.043em; }
.store-plans, .store-faq {
  border-block: 1px solid var(--store-rule);
  background: var(--store-plans-surface);
}
.store-plans { padding-block: clamp(24px, 2.5vw, 40px) clamp(36px, 3vw, 48px); }
.store-plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 21%) minmax(0, 1fr);
}
.store-plans-layout > .store-section-head { padding-block-start: 24px; }
.store-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 224px), 1fr));
  row-gap: 12px;
}
.store-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px clamp(20px, 2.95vw, 44px) 28px;
}
.store-plan::before {
  position: absolute;
  inset-block: 24px 28px;
  inset-inline-start: 0;
  border-inline-start: 1px solid var(--store-rule);
  content: "";
}
.store-plan-featured {
  border-radius: var(--r);
  background: var(--store-plan-spotlight);
  box-shadow: inset 0 0 0 1px var(--store-plan-outline);
}
.store-plan h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 710;
  overflow-wrap: anywhere;
}
.storefront .store-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
  margin-block: 12px 8px;
  font-size: clamp(19px, 1.85vw, 28px);
  line-height: 1.06;
}
.store-price strong {
  min-width: 0;
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.store-plan-detail {
  padding-block-end: 24px;
  color: var(--store-ink-secondary);
  font-size: clamp(17px, 1.6vw, 23px);
}
.store-plan .store-button {
  width: min(100%, 208px);
  margin-block-start: auto;
}
.store-empty {
  align-self: start;
  padding: 32px;
  border-inline-start: 1px solid var(--store-rule);
  color: var(--store-ink-secondary);
}

.store-connect .store-section-head { margin-block-end: 32px; }
.store-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  counter-reset: connect-step;
  list-style: none;
}
.store-steps li { padding-block-start: 16px; border-block-start: 1px solid var(--store-rule); }
.store-steps li::before {
  display: block;
  margin-block-end: 12px;
  color: var(--link);
  font: 16px/1 var(--f-mono);
  counter-increment: connect-step;
  content: counter(connect-step);
}
.store-steps h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 650; }
.storefront .store-steps p { max-width: 36ch; margin-block-start: 8px; color: var(--store-ink-secondary); }

.store-faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 32px; }
.store-questions { border-block-start: 1px solid var(--store-rule); }
.store-questions details { border-block-end: 1px solid var(--store-rule); }
.store-questions summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding-block: 12px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.store-questions summary::-webkit-details-marker { display: none; }
.store-questions summary::after {
  flex: none;
  margin-inline-end: 4px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.store-questions details[open] summary::after { transform: rotate(225deg); }
.storefront .store-questions p { max-width: 66ch; margin-block-end: 16px; color: var(--store-ink-secondary); }

.store-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
}
.store-footer .store-brand { width: 116px; }
.store-footer-row > a:last-child { color: var(--store-ink-secondary); text-decoration: none; }

@media (min-width: 1120px) {
  .store-hero-copy { inset-block-start: calc(-1 * var(--store-hero-offset)); }
  .store-route {
    inset-inline-end: calc(-1 * var(--store-hero-offset));
    inset-block-start: calc(50% - var(--store-hero-offset) / 2);
  }
}

@media (900px < width < 1120px) {
  .store-hero-copy p { max-width: min(var(--store-copy-measure), 80%); }
}

@media (max-width: 1040px) {
  .store-header-row { grid-template-columns: auto 1fr auto; gap: 12px; }
  .store-nav { gap: clamp(14px, 2.2vw, 24px); }
  .store-auth { gap: 12px; }
  .store-register { padding-inline: 14px; font-size: 16px; }
}

@media (max-width: 900px) {
  .store-hero-layout { min-height: 0; padding-block: 52px 24px; }
  .store-hero-copy { width: 100%; }
  .store-hero-copy h1 { font-size: clamp(36px, 7vw, 60px); }
  .store-route { position: relative; inset: auto; width: min(100%, 690px); transform: none; }
  .store-plans-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .store-plans-layout > .store-section-head { padding-block-start: 4px; }
}

@media (max-width: 780px) {
  .store-header-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
    min-height: 0;
    padding-block-start: 12px;
  }
  .store-header .store-brand { width: clamp(92px, 26vw, 120px); }
  .store-auth { gap: 8px; }
  .store-auth .store-login, .store-nav a, .store-register { font-size: 14px; }
  .store-register { min-height: 38px; padding-inline: 9px; }
  .store-theme { width: 36px; height: 38px; }
  .store-nav { grid-row: 2; grid-column: 1 / -1; min-height: 44px; justify-content: space-between; }
}

@media (max-width: 680px) {
  .store-hero-layout { padding-block: 32px 16px; }
  .store-hero-copy h1 { font-size: clamp(30px, 9.23vw, 48px); }
  .store-hero-copy p { margin-block: 16px 24px; font-size: 17px; }
  .store-hero-copy .store-hero-action { min-height: 50px; gap: 16px; padding-inline: 20px; font-size: 16px; }
  .store-hero-action svg { width: 22px; height: 22px; }
  .store-route { width: calc(100% - 12px); margin-block-start: 12px; }
  .store-route-label { inset-inline-start: calc(82.24% + 7px); font-size: clamp(11px, 3.08vw, 16px); }
  .store-route::before { background-size: 20px 20px; }
  .store-plans-layout, .store-plan-grid { gap: 0; }
  .store-plan-grid { grid-template-columns: minmax(0, 1fr); margin-block-start: 20px; }
  .store-plan { padding: 20px 16px 24px; }
  .store-plan::before { inset: 0 16px auto; border: 0; border-block-start: 1px solid var(--store-rule); }
  .store-plan-featured::before, .store-plan-featured + .store-plan::before { content: none; }
  .store-plan .store-button { font-size: 16px; }
  .store-plan-detail { padding-block-end: 16px; }
  .store-empty { margin-block-start: 16px; padding: 0; border: 0; }
  .store-connect .store-section-head { margin-block-end: 24px; }
  .store-steps, .store-faq-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .store-footer-row { min-height: 76px; }
}
