:root {
  --bg: #fff;
  --ink: #0b0b0b;
  --muted: #666;
  --line: #deded8;
  --soft: #f4f4f1;
  --green: #10a37f;
  --green-soft: #d9f4ec;
  --max: clamp(1180px, 78vw, 1640px);
  --gutter: clamp(20px, 3vw, 48px);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

[hidden],
.page:not(.is-active),
.app-page:not(.is-active) {
  display: none !important;
}

.mark {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.actions,
.app-brand,
.account-chip {
  display: flex;
  align-items: center;
}

.brand,
.app-brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  gap: 28px;
  font-size: 15px;
}

.site-header > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.button.dark {
  color: #fff;
  background: #050505;
}

.button.light {
  background: var(--soft);
}

.full {
  width: 100%;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.82fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: min(740px, calc(100vh - 68px));
  padding: clamp(44px, 6vw, 84px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(58px, 7.4vw, 100px);
  font-weight: 500;
  letter-spacing: -0.074em;
  line-height: 0.88;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 28px;
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
}

.quota-mock {
  width: 100%;
  max-width: 620px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.1);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfbf8;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9d4;
}

.window-bar strong {
  margin-left: 8px;
  font-size: 14px;
}

.mock-content {
  padding: clamp(20px, 3vw, 32px);
}

.mock-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.mock-heading p,
.quota-line span,
.quota-line p,
.mock-details span {
  color: var(--muted);
  font-size: 14px;
}

.mock-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.active-pill {
  align-self: flex-start;
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  color: #08735a;
  background: var(--green-soft);
  font-size: 14px;
  font-weight: 700;
}

.quota-line {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.quota-line > div:first-child {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.quota-line strong {
  min-width: 84px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quota-line strong span,
.panel strong span,
.usage-panel strong span {
  color: inherit;
  font-size: inherit;
}

.quota-line p {
  margin: 8px 0 0;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececea;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 220ms ease;
}

.mock-details,
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.mock-details div,
.billing-grid article {
  padding: 14px;
  background: #fff;
}

.mock-details strong,
.billing-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.compact-section,
.proof-row {
  padding: clamp(44px, 6vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.compact-section h2,
.proof-row h2,
.page-head h1,
.login-page h1,
.app-top h1,
.page-title h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.tight-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tight-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.tight-grid article,
.pricing-card,
.included-grid article,
.panel,
.usage-panel {
  padding: 22px;
  background: #fff;
}

.tight-grid span,
.pricing-card span,
.billing-grid span,
.panel span,
.usage-panel span {
  color: var(--muted);
  font-size: 14px;
}

.tight-grid strong {
  display: block;
  margin: 28px 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.tight-grid p,
.proof-row > p,
.page-head p,
.pricing-card p,
.plan-card p,
.included-grid p,
.faq p,
.page-title p,
.panel p,
.usage-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.proof-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 36px;
}

.page-head {
  padding: clamp(54px, 8vw, 104px) 0 36px;
}

.pricing-card,
.plan-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pricing-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.plan-card {
  min-height: 430px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 24px;
  background: #fff;
}

.plan-card.featured {
  border-color: #0b0b0b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.plan-card h2 {
  margin: 10px 0 20px;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ink) !important;
}

.price strong {
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -0.07em;
}

.price span,
.was {
  color: var(--muted);
  font-size: 15px;
}

.plan-card > p:not(.price):not(.was) {
  margin: 24px 0 auto;
}

.pricing-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 70px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-note span {
  color: var(--muted);
}

.comparison {
  margin-bottom: 70px;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.row.head {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  background: var(--line);
}

.included-grid h2,
.faq h2 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

ul {
  padding-left: 20px;
  margin-bottom: 0;
}

li + li {
  margin-top: 8px;
}

.faq {
  max-width: 780px;
  margin-bottom: 70px;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-weight: 500;
  flex: none;
}

details[open] summary::after {
  content: "-";
}

.login-page {
  min-height: calc(100vh - 68px);
  display: grid;
  align-content: center;
  max-width: 720px;
}

.login-page .button {
  justify-self: start;
  min-width: 180px;
}

#app-root {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.in-app .site-header {
  display: none;
}

.app-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #f7f7f4;
}

.app-nav nav {
  display: grid;
  gap: 5px;
}

.app-nav a,
.app-nav button {
  justify-content: flex-start;
  padding: 11px 13px;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.app-nav a.is-active,
.app-nav a:hover,
.app-nav button:hover {
  background: #ececea;
}

.app-nav button {
  margin-top: auto;
}

.app-main {
  min-width: 0;
  max-width: 1440px;
  padding: clamp(28px, 4vw, 54px);
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.account-chip {
  align-self: flex-start;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.account-chip span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #050505;
}

.app-grid,
.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel,
.usage-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel h2 {
  margin: 8px 0 12px;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.panel strong {
  display: block;
  margin: 12px 0;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.usage-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.usage-panel strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.usage-panel p {
  margin: 10px 0 0;
}

.billing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.settings-form,
.security-list {
  display: grid;
  max-width: 760px;
  gap: 14px;
}

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

.settings-form input,
.auth-card input {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #08735a;
  font-size: 14px;
}

.security-list button {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
}

.auth-mark {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 22px;
}

.auth-card h2 {
  margin-bottom: 10px;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.06em;
  text-align: center;
}

.auth-card p {
  max-width: 320px;
  margin: 0 auto 22px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

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

.auth-card label {
  display: grid;
  gap: 7px;
  color: #333;
  font-size: 14px;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 22px;
}

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

  .site-nav {
    display: none;
  }

  .hero,
  .proof-row,
  .tight-grid.three,
  .plan-grid,
  .included-grid,
  #app-root,
  .app-grid,
  .usage-grid,
  .billing-grid {
    grid-template-columns: 1fr;
  }

  .app-nav {
    position: static;
    height: auto;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-nav nav {
    display: flex;
    gap: 2px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .app-nav nav a {
    min-width: max-content;
  }

  .app-nav button {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .brand span {
    display: none;
  }

  .site-header > .button {
    min-height: 40px;
    padding: 0 14px;
  }

  .app-nav {
    padding: 18px 10px;
  }

  .app-nav a,
  .app-nav button {
    padding: 10px 8px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero-text {
    font-size: 26px;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 50px;
  }

  .mock-heading,
  .quota-line > div:first-child,
  .mock-details,
  .pricing-card,
  .pricing-note,
  .app-top,
  .usage-panel > div:first-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quota-mock {
    border-radius: 22px;
  }

  .compact-section h2,
  .proof-row h2,
  .page-head h1,
  .login-page h1,
  .app-top h1,
  .page-title h2 {
    font-size: 40px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .row.head {
    display: none;
  }

  .app-main {
    padding: 24px 20px;
  }

  .login-page .button {
    width: 100%;
  }

  .account-chip {
    max-width: 100%;
    overflow: hidden;
  }

  .account-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
