/* itrunsok brand tokens (source: ~/projects/finance/itrunsok/brand/palette/tokens.css) */
:root {
  --primary-100: #d4eaf7;
  --primary-300: #3b3c3d;
  --accent-100: #71c4ef;
  --accent-200: #00668c;
  --text-100: #1d1c1c;
  --text-200: #313d44;
  --bg-100: #fffefb;
  --bg-200: #f5f4f1;
  --bg-300: #cccbc8;
  --sans: "IBM Plex Sans", "IBM Plex Sans KR", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --type-color: var(--accent-200);
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-200);
  color: var(--text-100);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-200); }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 8px; }

.site-header { max-width: 640px; margin: 0 auto; padding: 20px 16px 8px; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-100); text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.site-header .by { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-200); text-decoration: none; }
.site-header .by:hover { color: var(--accent-200); }

.card {
  background: var(--bg-100);
  border: 1px solid var(--bg-300);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
}

h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.12; font-weight: 600; margin: 0.25em 0 0.4em; letter-spacing: -0.035em; }
h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; margin: 0.3em 0 1em; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.2em 0 0.4em; }
h3:first-child { margin-top: 0; }

.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--accent-200); margin: 0; }
.lead { font-size: 1.1rem; color: var(--text-200); }
.muted { color: var(--text-200); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.disclaimer { font-size: 0.8rem; color: var(--text-200); margin: 16px 0 0; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.08s ease, background 0.15s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-200); color: var(--bg-100); }
.btn-primary:hover { background: #00587a; }
.btn-dark { background: var(--primary-300); color: var(--bg-100); }
.btn-outline { background: transparent; color: var(--text-100); border-color: var(--bg-300); }
.btn-outline:hover { border-color: var(--accent-200); color: var(--accent-200); }
.btn-link { background: none; color: var(--text-200); padding: 8px 0; }
.btn-link:hover { color: var(--accent-200); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn:focus-visible, .option:focus-visible { outline: 2px solid var(--accent-100); outline-offset: 2px; }

.type-chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-chips li { font-size: 0.8rem; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--bg-300); color: var(--text-200); display: inline-flex; align-items: center; gap: 6px; }
.type-chips li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--chip); }

.progress { height: 6px; background: var(--primary-100); border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
#progress-bar { height: 100%; width: 0; background: var(--accent-200); transition: width 0.25s ease; }

.options { display: grid; gap: 10px; }
.option {
  font: inherit;
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--bg-300);
  background: var(--bg-100);
  color: var(--text-100);
  cursor: pointer;
}
.option:hover { border-color: var(--accent-200); background: #f7fbfd; }

.share-hero { background: var(--type-color); color: var(--bg-100); border: none; position: relative; overflow: hidden; }
.share-hero .eyebrow { color: rgba(255, 254, 251, 0.8); }
.share-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 36px; background: rgba(255, 254, 251, 0.08); transform: rotate(-7deg); }
.tagline { font-size: 1.2rem; font-style: italic; opacity: 0.95; margin-top: 0; }

.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 9.5rem 1fr 3rem; align-items: center; gap: 8px; font-size: 0.875rem; }
.bar-track { height: 10px; border-radius: 2px; background: var(--bg-200); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; }
.bar-row span:last-child { text-align: right; color: var(--text-200); font-family: var(--mono); font-size: 0.8rem; }

.tips { padding-left: 1.2em; }
.tips li { margin-bottom: 8px; }
.tips li::marker { color: var(--accent-200); font-weight: 600; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.offer { border: 1px solid var(--accent-200); box-shadow: inset 0 3px 0 var(--accent-200); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: 6px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-200); font-weight: 700; }

.email-form { display: grid; gap: 10px; margin-top: 12px; }
.email-form input[type="email"] {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--bg-300);
  background: var(--bg-200);
  color: var(--text-100);
}
.email-form input[type="email"]:focus { outline: 2px solid var(--accent-100); border-color: var(--accent-200); }
.consent { font-size: 0.8rem; color: var(--text-200); display: flex; gap: 8px; align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--accent-200); }
.form-msg { margin: 0; color: var(--accent-200); }

.prose ul { padding-left: 1.2em; }
.footer { max-width: 640px; margin: 0 auto; text-align: center; font-size: 0.8rem; color: var(--text-200); padding: 16px 16px 32px; }
.footer a { color: inherit; }
.footer .credit { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; }
.footer .credit a { color: var(--accent-200); text-decoration: none; }
.consent a { color: inherit; }

@media (max-width: 420px) {
  .bar-row { grid-template-columns: 7.5rem 1fr 2.6rem; }
  .card { padding: 22px 18px; }
}
