/* Readi Ready — public marketing site (served by nginx at / and /en/, ahead of
   the SPA). Plain CSS on purpose: no build step, fully crawlable, loads fast.
   Palette mirrors the app's "coral" direction in src/theme/tokens.ts. */

:root {
  --brand: #ff6a4d;
  --brand-deep: #e64a2e;
  --brand-soft: #ffe6de;
  --bg: #fffdf7;
  --surface: #ffffff;
  --surface-alt: #f7f4e9;
  --ink: #2a241e;
  --muted: #847b6e;
  --line: #ece7d8;
  --mint: #12b886;
  --mint-soft: #d6f5ea;
  --indigo: #5b5bf0;
  --indigo-soft: #e5e5ff;
  --gold: #f5b301;
  --gold-soft: #fff3c4;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(42, 36, 30, 0.08);
  --font: "Pretendard Variable", Pretendard, "Nunito", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-display: "Nunito", "Pretendard Variable", Pretendard, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand-deep); background: var(--brand-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 800; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(255, 106, 77, 0.30); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 247, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand em { font-style: normal; color: var(--brand); }
.nav { display: flex; gap: 22px; margin-left: 18px; }
.nav a { color: var(--muted); font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }
.lang-switch { font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.lang-switch:hover { background: var(--surface-alt); text-decoration: none; color: var(--ink); }

/* ── Hero ── */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 70%); z-index: -1;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* ── Phone screenshots (real app screens, 600×1108 captures) ── */
.phone {
  position: relative; border-radius: 26px; border: 6px solid #2a241e; background: #2a241e;
  overflow: hidden; box-shadow: 0 18px 40px rgba(42, 36, 30, 0.18); aspect-ratio: 600 / 1108;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; display: block; }
.phone.crop { aspect-ratio: auto; height: 300px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.phone.crop img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero-phone { width: min(100%, 300px); margin: 0 auto; }
.hero-art .mascot { position: absolute; left: -12%; bottom: -8%; width: 38%; filter: drop-shadow(0 12px 22px rgba(42, 36, 30, 0.18)); }
.hero-art { padding-bottom: 20px; }
.step .phone.crop { margin: 18px -4px 0; height: 300px; }
.feature { display: grid; grid-template-columns: 1fr 150px; gap: 20px; align-items: start; }
.feature .phone.crop { height: 100%; min-height: 320px; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .example {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-alt);
  font-size: 14px; color: var(--ink);
}
.example b { color: var(--brand-deep); }
.example .mark { background: var(--gold-soft); border-radius: 4px; padding: 0 3px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.icon-coral { background: var(--brand-soft); }
.icon-mint { background: var(--mint-soft); }
.icon-indigo { background: var(--indigo-soft); }
.icon-gold { background: var(--gold-soft); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink); font-size: 14.5px; }
.feature li { margin: 4px 0; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.audience-card.primary { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.audience-card h3 { font-size: 22px; margin-bottom: 8px; }
.audience-card .sub { color: var(--muted); margin-bottom: 18px; }
.audience-card ul { margin: 0 0 22px; padding: 0; list-style: none; }
.audience-card li { position: relative; padding-left: 26px; margin: 9px 0; font-size: 15px; }
.audience-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mint); font-weight: 800; }
.audience-card .btn { margin-top: auto; align-self: flex-start; }

.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 16px; font-size: 15px; }

/* ── Contact ── */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-intro .lead { margin: 12px 0 20px; }
.contact-intro .alt { font-size: 15px; color: var(--muted); }
.contact-intro .alt a { font-weight: 700; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form .actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.form .consent { font-size: 13px; color: var(--muted); }
.form .status { margin-top: 14px; font-size: 14.5px; font-weight: 700; padding: 12px 14px; border-radius: 12px; display: none; }
.form .status.ok { display: block; background: var(--mint-soft); color: #0b6b4f; }
.form .status.err { display: block; background: #fee2e2; color: #991b1b; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer .brand { font-size: 18px; margin-bottom: 10px; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.site-footer dt { font-weight: 700; }
.site-footer dd { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.footer-links a { color: var(--muted); font-weight: 700; }
.copyright { margin-top: 14px; }

/* ── Legal page ── */
.legal { max-width: 800px; padding: 48px 0 72px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .meta { color: var(--muted); margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 10px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-alt); }
.table-wrap { overflow-x: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .features, .audience, .contact { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .feature { grid-template-columns: 1fr; }
  .feature .phone.crop { height: 260px; min-height: 0; margin-top: 4px; }
  .step .phone.crop { height: 260px; }
  .hero-phone { width: min(64%, 230px); }
  .hero-art .mascot { left: 0; width: 34%; bottom: -6%; }
  .site-header .wrap { height: 56px; gap: 10px; }
  .brand span.word { display: none; }
  /* Header CTA is redundant with the hero button on a phone; keep Log in + language. */
  .header-actions .btn-primary { display: none; }
  .header-actions { gap: 6px; }
  .lang-switch { padding: 8px 8px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 28px 0 20px; }
  h1 { font-size: 30px; }
  .lead { font-size: 16.5px; }
  .feature, .audience-card, .step { padding: 22px 20px; }
  .audience-card h3 { font-size: 20px; }
  .site-footer dl { grid-template-columns: 1fr; gap: 2px; }
  .site-footer dt { margin-top: 8px; }
  .section { padding: 44px 0; }
  .form { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
