@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CreatorTake design system — Whitepace-style, creator-violet. Shared across all pages. */
:root {
  --ink: #1a1626;
  --ink-soft: #4a4658;
  --muted: #75728a;
  --line: #ebe9f1;
  --line-strong: #dcd9e6;
  --bg: #ffffff;
  --bg-soft: #f6f4ff;       /* faint violet tint for alternating sections */
  --surface: #ffffff;
  --brand: #7c3aed;         /* creator violet — primary */
  --brand-dark: #6d28d9;
  --brand-deep: #2e1065;    /* deep violet — dark bands & footer */
  --brand-deeper: #1b0a3d;
  --brand-soft: #ede9fe;
  --yellow: #fbbf24;        /* warm gold CTA accent */
  --yellow-deep: #f59e0b;
  --yellow-soft: #fde68a;   /* soft highlight */
  --yellow-ink: #4a3500;
  --danger: #dc2626;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(26,22,38,.04), 0 12px 30px rgba(26,22,38,.08);
  --shadow-lg: 0 4px 10px rgba(46,16,101,.07), 0 28px 60px rgba(46,16,101,.16);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow-soft); color: var(--yellow-ink); }
a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 0; font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; background: var(--brand); color: #fff; transition: transform .12s, box-shadow .15s, background .15s; box-shadow: 0 8px 20px rgba(124,58,237,.30); }
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 13px; }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line-strong); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--brand); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 8px 20px rgba(245,158,11,.32); }
.btn-yellow:hover { background: var(--yellow-deep); color: var(--yellow-ink); }

/* Header */
.site-header { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; margin-right: 10px; border-radius: 9px; background: linear-gradient(140deg, var(--brand), var(--brand-deep)); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; box-shadow: 0 5px 14px rgba(124,58,237,.36); }
.brand .tld { color: var(--brand); }
.nav { display: flex; align-items: center; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; margin-left: 26px; }
.nav a:hover { color: var(--brand-dark); text-decoration: none; }
.nav a.cta { color: #fff; background: var(--brand); padding: 9px 18px; border-radius: 10px; box-shadow: 0 6px 16px rgba(124,58,237,.28); }
.nav a.cta:hover { background: var(--brand-dark); }
@media (max-width: 600px) {
  .site-header .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .nav a { margin-left: 0; margin-right: 18px; font-size: 14px; }
  .nav a.cta { margin-right: 0; }
}

/* Hero (inner pages — single column) */
.hero { padding: 56px 0 12px; }
.hero .eyebrow { display: inline-block; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-dark); background: var(--brand-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(31px, 5vw, 52px); line-height: 1.06; margin: 0 0 14px; }
.hero p.lede { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 8px; max-width: 640px; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 16px; font-weight: 500; }
.crumb a { color: var(--muted); }
.hl { background: linear-gradient(180deg, transparent 58%, var(--yellow-soft) 58%); padding: 0 .04em; }

/* Full-bleed bands */
.band-dark { background: radial-gradient(120% 160% at 100% 0%, var(--brand-deep) 0%, var(--brand-deeper) 70%); color: #fff; padding: 66px 0; }
.band-dark h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; margin: 0 0 14px; }
.band-dark p { color: rgba(255,255,255,.78); font-size: 17px; margin: 0 0 22px; }
.band-dark .hl { background: linear-gradient(180deg, transparent 58%, rgba(253,230,138,.35) 58%); color: #fff; }
.band-soft { background: var(--bg-soft); }

/* Layout */
.calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start; margin: 28px 0 8px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card .card-head { padding: 17px 22px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; display:flex; align-items:center; justify-content:space-between; background: linear-gradient(var(--surface), #fcfbff); }
.card .card-body { padding: 22px; }

/* Form */
.field { margin-bottom: 17px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.input-money, .input-pct, .input-num, select, input[type="number"], input[type="email"] {
  width: 100%; padding: 12px 13px; font-size: 16px; font-family: var(--font); border: 1.5px solid var(--line-strong); border-radius: 11px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; font-variant-numeric: tabular-nums;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-soft); }
.money-wrap { position: relative; }
.money-wrap::before { content: "$"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; font-weight: 600; }
.money-wrap input { padding-left: 25px; }
.pct-wrap { position: relative; }
.pct-wrap::after { content: "%"; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .row2 { grid-template-columns: 1fr; } }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.preset { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--line-strong); background:#fff; color: var(--ink-soft); cursor: pointer; }
.preset.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.toggle { display: flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.toggle button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.toggle button.active { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow); }
details.advanced { margin-top: 6px; border-top: 1px dashed var(--line-strong); padding-top: 13px; }
details.advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand-dark); }

/* Results */
.result-hero { text-align: center; padding: 10px 0 16px; }
.result-hero .label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.result-hero .profit { font-size: clamp(40px, 8vw, 54px); font-weight: 800; letter-spacing: -0.04em; margin: 4px 0; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.pill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 9px 15px; text-align: center; min-width: 98px; }
.pill .v { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pill .k { font-size: 12px; color: var(--muted); }
.breakdown { margin-top: 18px; border-top: 1px solid var(--line); }
.breakdown .li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.breakdown .li .lbl { color: var(--ink-soft); }
.breakdown .li.total { font-weight: 800; border-bottom: none; padding-top: 13px; font-size: 16px; }
.breakdown .li .amt { font-variant-numeric: tabular-nums; }

/* Notes / content */
.note { font-size: 13px; color: var(--ink-soft); margin-top: 15px; padding: 13px 15px; background: #fffdf3; border: 1px solid #f6e6a6; border-radius: 12px; }
.section { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0; }
.section h2 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 12px; }
.section h3 { font-size: 18px; margin: 24px 0 6px; }
.section p, .section li { color: var(--ink-soft); }
.fee-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.fee-table th, .fee-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--brand-deep); color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.fee-table th:first-child { border-top-left-radius: 10px; }
.fee-table th:last-child { border-top-right-radius: 10px; }
.fee-table tbody tr:hover { background: var(--bg-soft); }

/* Newsletter — dark violet block */
.newsletter { background: radial-gradient(130% 150% at 0% 0%, var(--brand-deep) 0%, var(--brand-deeper) 62%); border: none; border-radius: var(--radius-lg); padding: 42px 30px; margin: 46px 0; text-align: center; box-shadow: var(--shadow-lg); }
.newsletter h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); }
.newsletter p { color: rgba(255,255,255,.76); margin: 0 0 18px; }
.nl-form { display: flex; gap: 9px; max-width: 440px; margin: 0 auto; }
.nl-form input { flex: 1; border-color: transparent; }
.newsletter .btn { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 8px 20px rgba(245,158,11,.32); }
.newsletter .btn:hover { background: var(--yellow-deep); color: var(--yellow-ink); }
.nl-msg { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--yellow); min-height: 18px; }

/* Footer — dark violet, multi-column */
.site-footer { background: var(--brand-deeper); color: rgba(255,255,255,.66); margin-top: 0; padding: 54px 0 26px; font-size: 14px; border: 0; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: #fff; margin-bottom: 13px; }
.footer-brand .brand .tld { color: var(--yellow); }
.footer-brand p { color: rgba(255,255,255,.58); max-width: 300px; line-height: 1.6; margin: 0; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 2px 0 14px; letter-spacing: 0; }
.footer-col a { display: block; color: rgba(255,255,255,.66); font-weight: 500; padding: 5px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.7); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 26px 24px; } .footer-brand { grid-column: 1 / -1; } }
