/* site.css — the sales page, sign-up / login pages and the account page.
   Builds on styles.css (same colors, fonts and buttons). */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.link { color: var(--text-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.nav-links a.link:hover { color: var(--violet); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
a.ghost-btn, a.btn { text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(110deg, var(--violet), var(--violet-mid) 58%, var(--yellow)); box-shadow: 0 10px 22px -10px rgba(67, 56, 202, .7); transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: saturate(1.15) brightness(1.04); }
.btn .i { width: 17px; height: 17px; }
.btn.lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn.light { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong); box-shadow: none; }
.btn.light:hover { border-color: var(--violet); color: var(--violet); }
.btn.full { width: 100%; }
@media (prefers-color-scheme: dark) { .btn:not(.light) { background: linear-gradient(110deg, #4338ca, #6366f1 58%, #0891b2); } }

/* ---------- sales page ---------- */
.landing-hero { padding: 64px 28px 24px; text-align: center; }
.landing-hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 800; margin: 0 auto 18px; max-width: 980px; }
.landing-hero .hero-sub { font-size: 18.5px; max-width: 660px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 14px; }
.fine { font-size: 13.5px; color: var(--text-3); font-weight: 600; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine > span { display: inline-flex; align-items: center; gap: 6px; }
.fine .i { width: 15px; height: 15px; color: var(--cta); }

.showcase { max-width: 980px; margin: 36px auto 0; padding: 0 28px; }
.showcase-frame { border-radius: 22px; padding: 10px; background: linear-gradient(120deg, color-mix(in srgb, var(--violet) 35%, transparent), color-mix(in srgb, var(--yellow) 35%, transparent)); box-shadow: var(--shadow-lg); }
.showcase-inner { border-radius: 16px; background: var(--surface); padding: 26px 28px 12px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; text-align: left; }
.showcase-side { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.fake-field { border-radius: 12px; background: var(--surface-2); padding: 12px 14px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.fake-field b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.showcase .block { animation: none; }
.showcase .script-title { font-size: 22px; }

section.band { padding: 90px 0 10px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.step-num { font-size: 44px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 800; }
.step p { margin: 0; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--violet) 35%, var(--border)); }
.feature .lbl-ic { width: 42px; height: 42px; border-radius: 12px; }
.feature .lbl-ic .i { width: 20px; height: 20px; }
.feature h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 800; }
.feature p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.price-card { position: relative; background: var(--surface); border: 2px solid var(--border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-card.pro { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--violet), var(--violet-mid), var(--yellow)) border-box; box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #ffd60a; color: #3b2a00; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.price-card h3 .i { color: #e0a400; }
.price { margin: 14px 0 4px; font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 16px; color: var(--text-3); font-weight: 700; letter-spacing: 0; }
.price-note { color: var(--text-2); margin: 0 0 18px; font-size: 14.5px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; }
.ticks .i { width: 18px; height: 18px; color: var(--cta); margin-top: 2px; stroke-width: 2.6; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--text-3); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 10px 0 0; color: var(--text-2); }

.final-cta { margin: 90px auto 30px; max-width: 1180px; padding: 0 28px; }
.final-cta-inner { border-radius: 26px; padding: 54px 30px; text-align: center; color: #fff; background: linear-gradient(120deg, #312e81, #4338ca 45%, #0891b2); position: relative; overflow: hidden; }
.final-cta-inner h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.035em; margin: 0 0 10px; font-weight: 800; }
.final-cta-inner p { margin: 0 0 24px; opacity: .85; font-size: 17px; }
.final-cta-inner .btn { background: #ffd60a; color: #2a1f00; box-shadow: 0 14px 30px -12px rgba(255, 214, 10, .8); }

.site-foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--text-2); text-decoration: none; margin-inline-start: 16px; }

/* ---------- sign-up / login ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 30px 16px 60px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.auth-card h1 { font-size: 26px; letter-spacing: -0.03em; margin: 4px 0 6px; font-weight: 800; }
.auth-card .sub { color: var(--text-2); margin: 0 0 22px; }
.auth-card .field { margin-bottom: 16px; }
.input-wrap { position: relative; }
.input-wrap > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 17px; height: 17px; pointer-events: none; }
.input-wrap input { padding-left: 42px; }
.input-wrap .peek { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
input[type="email"], input[type="password"] { width: 100%; background: var(--surface-2); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
input[type="email"]:hover, input[type="password"]:hover { border-color: var(--border-strong); }
input[type="email"]:focus, input[type="password"]:focus { outline: none; background: var(--surface); border-color: var(--violet); box-shadow: 0 0 0 5px var(--accent-soft); }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: 13.5px; }
.text-link { color: var(--violet); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; }
.text-link:hover { text-decoration: underline; }
.switch { text-align: center; margin: 20px 0 0; color: var(--text-2); font-size: 14.5px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.notice .i { margin-top: 1px; }
.notice.error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.notice.ok { background: var(--cta-soft); color: color-mix(in srgb, var(--cta) 80%, var(--text)); }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks .i { width: 16px; height: 16px; color: var(--cta); stroke-width: 2.6; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- account ---------- */
.account-main { max-width: 820px; margin: 0 auto; padding: 36px 20px 60px; display: grid; gap: 18px; }
.account-main h1 { font-size: 30px; letter-spacing: -0.035em; margin: 0; font-weight: 800; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card .muted { color: var(--text-2); margin: 0; }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.plan-badge.pro { background: #ffd60a; color: #3b2a00; }
.plan-badge .i { width: 14px; height: 14px; }
.meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 16px 0 8px; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .6s cubic-bezier(.2,.9,.3,1); }
.meter-label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.upgrade-card { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--violet), var(--violet-mid), var(--yellow)) border-box; box-shadow: var(--shadow-lg); }
.upgrade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 16px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.secure .i { width: 14px; height: 14px; }
.danger-link { color: var(--danger); }
.skeleton { color: var(--text-3); }

/* usage pill in the app's top bar */
.top-actions { display: flex; gap: 8px; align-items: center; }
.usage-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; }
.usage-pill b { color: var(--text); }
.usage-pill .i { width: 15px; height: 15px; color: var(--violet); }
.usage-pill.pro .i { color: #e0a400; }
.upgrade-inline { margin-top: 12px; }

@media (max-width: 900px) {
  .nav-links .link { display: none; }
  .showcase-inner { grid-template-columns: 1fr; padding: 18px; }
  .showcase-side { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .upgrade-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .landing-hero { padding: 40px 16px 10px; }
  section.band { padding-top: 64px; }
  .usage-pill span.txt { display: none; }
}
/* room for the icon inside email/password boxes */
.input-wrap input[type="email"], .input-wrap input[type="password"], .input-wrap input[type="text"] { padding-left: 42px; padding-right: 44px; }
/* "Didn't get the email? Resend" line under sign-up / reset */
.resend { text-align: center; margin: 14px 0 0; color: var(--text-2); font-size: 14px; font-weight: 600; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.resend #resendWait, .resend .wait { color: var(--text-3); font-variant-numeric: tabular-nums; }
/* three pricing cards */
.pricing.three { grid-template-columns: repeat(3, minmax(0, 340px)); align-items: stretch; }
.pricing.three .price-card.pro { transform: translateY(-10px); }
.fair-use { text-align: center; color: var(--text-3); font-size: 13px; font-weight: 600; margin: 22px 0 0; }
@media (max-width: 900px) { .pricing.three { grid-template-columns: minmax(0, 1fr); } .pricing.three .price-card.pro { transform: none; } }
/* plan choices on the account page */
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.plan-option { position: relative; border: 2px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.plan-option.best { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--violet), var(--violet-mid), var(--yellow)) border-box; }
.plan-option .tag { position: absolute; top: -12px; right: 14px; background: #ffd60a; color: #3b2a00; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan-option-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan-option-head b { font-size: 17px; font-weight: 800; }
.plan-price { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { font-size: 13px; color: var(--text-3); font-weight: 700; letter-spacing: 0; }
.plan-option .ticks { margin: 0; flex: 1; }
.plan-options .plan-option[hidden] + .plan-option, .plan-options .plan-option:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .plan-options { grid-template-columns: 1fr; } }
.plan-options:has(.plan-option[hidden]) .plan-option { grid-column: 1 / -1; }
