:root {
  --blue: #2e6bff;
  --red: #f04359;
  --ink: #1c1c2e;
  --paper: #faf7f2;
  --muted: #6b6b7b;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header & footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 242, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a.btn { color: #fff; }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); margin-right: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; border: 0; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; transition: transform 0.1s, opacity 0.2s; }
.btn:active { transform: scale(0.98); }
.btn.red { background: var(--red); }
.btn.ghost { background: rgba(28, 28, 46, 0.06); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.small { padding: 9px 14px; font-size: 0.9rem; }

/* Landing */
.hero { padding-top: 80px; padding-bottom: 40px; text-align: center; }
.hero .logo { width: 120px; height: 120px; margin: 0 auto 24px; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.app-store-badge { background: #000; color: #fff; border-radius: 12px; padding: 10px 18px; text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-store-badge small { font-size: 0.7rem; opacity: 0.85; }
.app-store-badge strong { font-size: 1.3rem; font-weight: 600; }
.section { padding: 64px 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .num { font-family: var(--serif); font-size: 2.2rem; color: var(--red); }
.three-dots { display: inline-flex; gap: 8px; vertical-align: middle; }
.three-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--red); display: inline-block; }
.pledge { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; }
.pledge h2 { color: #fff; }
.pledge li { margin: 10px 0; }
.pledge em { font-family: var(--serif); font-size: 1.2rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Legal / text pages */
.doc { padding: 48px 0; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc .updated { color: var(--muted); }
.fill { background: #fff3a8; padding: 0 4px; border-radius: 4px; }
.notice { background: rgba(46, 107, 255, 0.08); border-radius: 14px; padding: 16px 20px; }

/* Forms */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=date], select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font: 1rem var(--sans); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.error { color: var(--red); font-size: 0.95rem; min-height: 1.4em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .pledge { padding: 28px 22px; }
}
