:root {
  color-scheme: light;
  --ink: #101210;
  --muted: #626760;
  --line: #d8dbd5;
  --paper: #f4f5f2;
  --white: #ffffff;
  --green: #2f7d50;
  --green-soft: #e5efe8;
  --amber: #c47a13;
  --amber-soft: #f7ead4;
  --danger: #9b3535;
  --danger-soft: #f5e3e3;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-nav { height: 64px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(244, 245, 242, .96); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 17px; font-weight: 760; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.stage-mark { margin-left: 7px; padding: 3px 7px; border: 1px solid #d6c19d; border-radius: 999px; color: #7d5718; font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }

main { min-height: calc(100vh - 170px); }
.hero { min-height: calc(100svh - 160px); display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 78% 28%, rgba(47, 125, 80, .16), transparent 32%), radial-gradient(circle at 20% 82%, rgba(196, 122, 19, .10), transparent 27%), linear-gradient(135deg, #f4f5f2 0%, #edf2ed 54%, #f5f0e8 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(16,18,16,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,18,16,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom right, rgba(0,0,0,.25), transparent 70%); }
.hero-copy { max-width: 780px; padding: 52px 0 60px; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 13px; font-weight: 720; text-transform: uppercase; letter-spacing: .02em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(48px, 8vw, 96px); line-height: .94; font-weight: 790; }
h2 { margin: 0; font-size: 28px; line-height: 1.12; }
h3 { margin: 0; }
.lead { max-width: 650px; margin: 28px 0 0; color: #353934; font-size: 24px; line-height: 1.34; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

button, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--white); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #2b2e2a; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); }
button.secondary:hover, .button.secondary:hover { background: #e8eae5; }
button.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }

.content-section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.page-head { padding: 72px 0 38px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 860px; font-size: clamp(44px, 7vw, 76px); }
.page-head p { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.section-head { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 48px; align-items: start; }
.section-head h2 { font-size: 46px; }
.section-copy { max-width: 680px; margin: 2px 0 0; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-grid { margin-top: 54px; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.55); }
.card h2 { margin-bottom: 10px; font-size: 22px; }
.card p, .muted { color: var(--muted); }
.card p { margin: 8px 0 0; line-height: 1.6; }

.account-shell { padding: 66px 0 80px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.account-head h1 { margin-top: 8px; font-size: clamp(42px, 6vw, 68px); }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.identity-card { display: flex; align-items: flex-start; gap: 16px; }
.account-avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 20px; font-weight: 760; }
.identity-email { margin-top: 2px !important; overflow-wrap: anywhere; }
.plan-price { font-weight: 700; color: var(--ink) !important; }
.status { margin: 16px 0 24px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.62); color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 9px; border-radius: 50%; background: var(--amber); }
.status.success { border-color: #a8c8b2; background: var(--green-soft); color: #235d3c; }
.status.success::before { background: var(--green); }
.status.error { border-color: #d7b0b0; background: var(--danger-soft); color: #7e2929; }
.status.error::before { background: var(--danger); }
.balance { margin: 8px 0; font-size: 42px; font-weight: 790; }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e1e3de; }
.progress > div { height: 100%; min-width: 2px; background: var(--green); }
.small { color: var(--muted); font-size: 13px; }
.list { display: grid; gap: 0; padding: 0; margin: 14px 0 0; list-style: none; border-top: 1px solid var(--line); }
.list li { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.usage-row details { width: 100%; }
.usage-row summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none; }
.usage-row summary::-webkit-details-marker { display: none; }
.usage-details { margin-top: 12px; padding: 12px; border-radius: 10px; background: #f0f1ed; line-height: 1.7; overflow-wrap: anywhere; }
.hidden { display: none !important; }

.compact-section { padding-bottom: 34px; }
.account-detail-grid { margin-top: 24px; }
.account-card-gap { margin-top: 18px; }
.section-inline { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.price-suffix { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.desktop-connect-card { max-width: 660px; margin: 4vh auto; }
.desktop-connect-card h1 { font-size: clamp(42px, 7vw, 64px); }
.button.disabled, button:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

@media (max-width: 700px) {
  .section-inline { display: block; }
  .section-inline button { margin-top: 14px; }
  .account-actions { width: 100%; }
  .account-actions button { flex: 1 1 auto; }
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-grid input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.form-wide { grid-column: 1 / -1; }

.article-shell { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 70px 0 88px; }
.article-shell h1 { font-size: clamp(44px, 7vw, 68px); }
.article-shell h2 { margin-top: 42px; font-size: 28px; }
.article-shell p, .article-shell li { color: #4d524c; line-height: 1.75; }
.article-shell a { color: var(--green); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .shell, .article-shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-links { gap: 13px; }
  .nav-link.optional { display: none; }
  .hero { min-height: calc(100svh - 150px); background-position: 36% center; }
  .hero-copy { padding: 44px 0 50px; }
  .lead { font-size: 20px; }
  .content-section { padding: 60px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head h2 { font-size: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
}
