* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  --accent: #15803d;
  --accent-soft: #4ca56e;
  --card-bg: #f2faf4;
  --card-border: #c9e8d3;
  --card-shadow: rgba(21, 128, 61, .24);
  --dot-color: #15803d;
  --dot-halo: rgba(21, 128, 61, .18);
  --dot-anim: none;

  min-height: 100vh;
  width: 100%;
  background: #f4f2ee;
  font-family: 'Figtree', system-ui, sans-serif;
  color: #1c1b19;
}

body.peak {
  --accent: #c2410c;
  --accent-soft: #ea7c4a;
  --card-bg: #fff6f1;
  --card-border: #f4d3c1;
  --card-shadow: rgba(194, 65, 12, .28);
  --dot-color: #c2410c;
  --dot-halo: rgba(194, 65, 12, .18);
  --dot-anim: peakPulse 1.8s ease-out infinite;
}

@keyframes peakPulse {
  0%   { box-shadow: 0 0 0 0 rgba(194, 65, 12, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(194, 65, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0); }
}

@keyframes snakeSpin {
  to { transform: rotate(1turn); }
}

.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 5vw, 64px) 20px 48px;
}

.shell {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOP BAR */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 0 4px var(--dot-halo);
  animation: var(--dot-anim);
  transition: background .4s ease, box-shadow .4s ease;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a756c;
}

/* SEGMENTED TOGGLES */

.segmented {
  flex-shrink: 0;
  display: flex;
  background: #e8e4dc;
  border-radius: 999px;
  padding: 3px;
}

.seg-btn {
  border: none;
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  transition: all .2s;
  background: transparent;
  color: #8a8478;
}

.seg-btn.active {
  background: #fff;
  color: #1c1b19;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* STATUS CARD */

.status-wrap {
  position: relative;
  border-radius: 22px;
  padding: 2px;
  overflow: hidden;
}

.status-snake {
  position: absolute;
  inset: -75%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 85%, color-mix(in srgb, var(--accent) 40%, transparent) 92%, transparent 100%);
  animation: snakeSpin 8s linear infinite;
}

.status-card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 44px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px var(--card-shadow);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.status-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.status-label {
  font-size: clamp(38px, 9vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}

.rate-badge {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--dot-halo);
  padding: 5px 10px;
  border-radius: 999px;
}

.status-message {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #57534c;
}

.countdown-row {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.countdown-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.countdown-value {
  font-family: 'Geist Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}

.clocks-row {
  margin-top: 26px;
  display: flex;
  column-gap: 48px;
  row-gap: 14px;
  flex-wrap: wrap;
}

.clock-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a19a8f;
  margin-bottom: 5px;
}

.clock-value {
  font-family: 'Geist Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: #1c1b19;
}

/* PANELS (details / pricing) */

.panel {
  background: #fff;
  border: 1px solid #e6e2da;
  border-radius: 20px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid #efece5;
}

.detail-row--last {
  border-bottom: none;
}

.detail-row--stacked {
  align-items: flex-start;
}

.detail-value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.detail-label {
  font-size: 14px;
  color: #7a756c;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.mono {
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
}

.detail-value.mono {
  font-size: 15px;
}

/* PRICING */

.pricing-header {
  padding: 16px 22px;
  border-bottom: 1px solid #efece5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a19a8f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-tier-title {
  padding: 14px 22px 4px;
  font-size: 17px;
  font-weight: 600;
  color: #1c1b19;
}

.pricing-tier-title--divider {
  border-top: 1px solid #efece5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 20px;
  padding: 6px 22px 16px;
  align-items: center;
}

.pricing-grid--flash {
  padding: 6px 22px 18px;
}

.col-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: right;
}

.col-head--off { color: #4ca56e; }
.col-head--peak { color: #ea7c4a; }

.row-label {
  font-size: 14px;
  color: #57534c;
}

.cell {
  font-size: 14px;
  text-align: right;
}

.cell--peak {
  color: #c2410c;
}

.pricing-footnote {
  padding: 12px 22px;
  border-top: 1px solid #efece5;
  font-size: 12.5px;
  color: #a19a8f;
}

/* EXPLAINER */

.explainer {
  display: flex;
  gap: 12px;
  padding: 4px 6px;
}

.explainer-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c4bdb0;
  color: #8a8478;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Geist Mono', monospace;
  margin-top: 1px;
}

.explainer-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7a756c;
}

.explainer-text strong {
  color: #57534c;
  font-weight: 600;
}

/* USAGE LINK */

.usage-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: transparent;
  border: 1px solid #e6e2da;
  border-radius: 14px;
  padding: 16px 20px;
  color: #1c1b19;
  transition: border-color .2s ease, background .2s ease;
}

.usage-link:hover {
  border-color: #c4bdb0;
  background: rgba(0, 0, 0, .02);
}

.usage-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.usage-link-title {
  font-size: 15px;
  font-weight: 600;
}

.usage-link-sub {
  font-size: 13px;
  color: #a19a8f;
}

.usage-link-arrow {
  font-family: 'Geist Mono', monospace;
  font-size: 18px;
  color: #8a8478;
}

/* FOOTER */

.footer {
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid #e6e2da;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #1c1b19;
}

.footer-site {
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  color: #b0623f;
  text-decoration: none;
  margin-top: -6px;
  transition: text-decoration-color .2s ease;
}

.footer-site:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.social-link {
  color: #8a8478;
  display: flex;
  transition: color .2s ease;
}

.social-link:hover {
  color: #1c1b19;
}
