:root {
  --bg: #edf4ff;
  --panel: #ffffff;
  --panel-strong: #eef1f5;
  --text: #20242a;
  --muted: #687078;
  --line: #d9d5ce;
  --blue: #1769e8;
  --blue-soft: #e8f0ff;
  --blue-ink: #164694;
  --shadow: 0 20px 60px rgba(32, 36, 42, 0.08);
  --radius: 10px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  background: linear-gradient(145deg, #fdfeff 0%, #f7faff 42%, #eff5ff 100%);
  background-attachment: fixed;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  top: 8%;
  right: -12rem;
  width: min(72vw, 900px);
  height: 32rem;
  border: 1px solid rgba(23, 105, 232, 0.1);
  border-radius: 45% 55% 38% 62%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-14deg);
}

body::after {
  inset: -20% -15%;
  opacity: 0.25;
  background: repeating-linear-gradient(
    116deg,
    transparent 0 7rem,
    rgba(23, 105, 232, 0.07) 7rem 7.15rem,
    transparent 7.15rem 13rem
  );
  transform: rotate(-8deg);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 2rem 0;
}

.hero {
  padding: 2rem 0 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.5rem, 4vw, 4rem) 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.25rem, 8vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 8ch;
}

h1 span {
  color: var(--blue);
}

.lede {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 1.75rem 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button span {
  margin-left: 0.55rem;
  font-size: 1.2em;
}

.button-secondary {
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-color: rgba(31, 111, 235, 0.18);
}

.hero-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

.app-icon {
  width: 100px;
  height: 100px;
  margin-top: 30px;
  border-radius: 22px;
  object-fit: cover;
}

.hero-links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 1.25rem;
  background: #20242a;
  border-color: #20242a;
  color: #fff;
}

.hero-links h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.05;
}

.hero-links .card-label {
  color: #8db8ff;
}

.hero-app-screenshot {
  width: min(100%, 160px);
  height: 250px;
  margin: 1rem auto 0;
  border: 4px solid #fff;
  border-radius: 18px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.hero-links .store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.5rem;
}

.card-label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--muted);
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.news-banner-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.news-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(31, 111, 235, 0.04)),
    var(--panel);
}

.news-banner:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.news-banner-copy {
  display: grid;
  gap: 0.25rem;
}

.news-banner-kicker {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-banner-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-banner-link {
  color: var(--blue-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.news-banner-image {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  background: #e9f1fb;
  border: 1px solid rgba(31, 111, 235, 0.1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.panel {
  padding: 1.25rem;
}

.panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

.panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 0;
}

.store-card {
  display: flex;
  flex: 1 1 140px;
  min-width: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  color: #fff;
  transition: transform 180ms ease;
}

.store-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.store-card img {
  width: min(100%, 175px);
  object-fit: contain;
}

.store-card span {
  color: inherit;
  font-weight: 600;
}

.showcase-heading {
  max-width: 620px;
  margin-bottom: 3rem;
}

.showcase-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.showcase-heading p:last-child {
  max-width: 46ch;
  color: var(--muted);
}

.showcase-list {
  display: grid;
  gap: 1.5rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
  min-height: 440px;
}

.showcase-row.is-reversed {
  grid-template-columns: minmax(420px, 1.3fr) minmax(0, 0.7fr);
}

.showcase-row.is-reversed .showcase-copy {
  grid-column: 2;
  grid-row: 1;
}

.showcase-row.is-reversed .showcase-images {
  grid-column: 1;
  grid-row: 1;
}

.showcase-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-number {
  color: var(--blue);
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.showcase-copy h3 {
  max-width: 10ch;
  margin: 1rem 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.showcase-copy p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.showcase-image {
  display: grid;
  place-items: center;
  min-height: 440px;
  margin: 0;
  padding: 1.25rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #eaf3ff 0%, #d7e7ff 100%);
  border: 1px solid #c4dafa;
}

.showcase-image img {
  width: min(100%, 190px);
  aspect-ratio: 9 / 19;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 24px 45px rgba(32, 36, 42, 0.2);
  background: #fff;
}

.tree-code {
  margin: 0;
  width: 100%;
  overflow-x: auto;
  white-space: pre;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.tree-code code {
  font-family: inherit;
}

.tree-link {
  color: inherit;
  text-decoration: none;
}

.tree-link:hover {
  text-decoration: underline;
}

.policy-panel h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.02rem;
}

.policy-panel ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  color: var(--muted);
}

.policy-panel li + li {
  margin-top: 0.35rem;
}

.policy-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.policy-panel p {
  margin-bottom: 0.9rem;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.preview-toolbar label {
  font-weight: 600;
}

.preview-toolbar select {
  min-width: 160px;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.preview-status {
  color: var(--muted);
  margin-left: auto;
}

.preview-timezone {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-empty {
  margin-bottom: 1rem;
}

.preview-root.is-hidden,
.preview-view.is-hidden {
  display: none;
}

.preview-split {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.6fr);
  gap: 1rem;
}

.preview-list {
  padding: 1rem;
  max-height: 72vh;
  overflow: auto;
}

.calendar-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  width: 100%;
  margin-bottom: 0.75rem;
}

.calendar-item:last-child {
  margin-bottom: 0;
}

.calendar-item.is-active {
  border-color: rgba(31, 111, 235, 0.32);
  background: var(--panel-strong);
}

.calendar-item button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.round-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.round-name {
  font-weight: 700;
}

.round-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.round-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.chip.is-muted {
  background: #edf2f7;
  color: var(--muted);
}

.preview-detail,
.preview-single {
  min-height: 100%;
}

.preview-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-title h3 {
  margin: 0;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.tab-button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tab-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.points-bar {
  display: grid;
  gap: 0.35rem;
  min-width: 180px;
}

.points-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

.points-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.points-bar-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:hover {
  background: rgba(31, 111, 235, 0.04);
}

tbody tr[style*="--constructor-color"] td:first-child {
  box-shadow: inset 4px 0 0 var(--constructor-color);
  background: linear-gradient(90deg, color-mix(in srgb, var(--constructor-color) 10%, #ffffff), #ffffff 26%);
}

tbody tr[style*="--constructor-color"]:hover td:first-child {
  background: linear-gradient(90deg, color-mix(in srgb, var(--constructor-color) 14%, #ffffff), #ffffff 26%);
}

.table-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
}

@media (max-width: 960px) {
  .hero-layout,
  .feature-grid,
  .preview-split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .preview-status {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 1.5rem 0;
  }

  .hero-copy {
    padding: 1rem 0;
  }

  .hero-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-links {
    min-height: 0;
  }

  .panel {
    padding: 1rem;
  }

  .contact-panel,
  .footer-inner,
  .preview-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .points-bar {
    min-width: 0;
  }

  .preview-split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .preview-list {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 0.9rem;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-item {
    flex: 0 0 270px;
    width: 270px;
    margin-bottom: 0;
  }

  .preview-detail {
    width: 100%;
  }

  .news-banner {
    grid-template-columns: 1fr;
  }

  .news-banner-image {
    width: 100%;
    height: 180px;
  }

  .showcase-heading {
    margin-bottom: 2rem;
  }

  .showcase-heading h2 {
    white-space: normal;
  }

  .showcase-list {
    gap: 2rem;
  }

  .showcase-row,
  .showcase-row.is-reversed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    min-height: 0;
  }

  .showcase-row.is-reversed .showcase-copy,
  .showcase-row.is-reversed .showcase-image {
    order: initial;
  }

  .showcase-row.is-reversed .showcase-copy {
    order: 1;
  }

  .showcase-row.is-reversed .showcase-images {
    order: 2;
  }

  .showcase-images {
    gap: 0.6rem;
  }

  .showcase-copy h3 {
    max-width: 14ch;
  }

  .showcase-image {
    min-height: 300px;
    padding: 0.75rem;
  }

  table {
    font-size: 0.9rem;
  }
}
