/* sayturn.ai: coral A tokens (apps/mobile/src/theme/tokens.ts), type, header/footer, the home example, the policy page. */
:root {
  --bg: #ffffff;
  --ink: #111317;
  --sub: #5b6070;
  --faint: #8a8f9c;
  --line: #e3e5ea;
  --soft: #f4f5f7;
  --card: #ffffff;
  --page: #f4f5f7;
  --coral: #f2665a;
  --coral-text: #db3f33;
  --tint: #fdedeb;
  --coral-soft: #f9b8b1;
  --outline: #d9dce2;
  --shadow: 0 10px 24px rgba(17, 19, 23, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111215;
    --ink: #f2f3f5;
    --sub: #a4a9b5;
    --faint: #7e8390;
    --line: #2a2d33;
    --soft: #24272d;
    --card: #17191d;
    --page: #0b0c0e;
    --coral-text: #ff8378;
    --tint: #34201e;
    --coral-soft: #7a3a34;
    --shadow: 0 10px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111215;
  --ink: #f2f3f5;
  --sub: #a4a9b5;
  --faint: #7e8390;
  --line: #2a2d33;
  --soft: #24272d;
  --card: #17191d;
  --page: #0b0c0e;
  --coral-text: #ff8378;
  --tint: #34201e;
  --coral-soft: #7a3a34;
  --shadow: 0 10px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--coral-text); }
img, svg { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.en { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }

/* The bubble mark: the app's speech-bubble character (characters/Sayturn.tsx), dots face. */
.mark { flex: none; }

/* Header + footer, shared shape; options restyle. */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo .en { font-weight: 600; color: var(--sub); font-size: 15px; }
.head-link { color: var(--sub); text-decoration: none; font-size: 14px; }
.head-link:hover { color: var(--ink); }
.site-foot { padding: 32px 0 48px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.site-foot a { color: var(--sub); }
.foot-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-en { margin: 12px 0 0; max-width: 560px; }

/* Policy body (generated from docs/privacy-policy.md). */
.policy h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 6px; }
.policy .meta { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.policy h2 { font-size: 19px; line-height: 1.4; margin: 44px 0 10px; scroll-margin-top: 16px; }
.policy p, .policy li { color: var(--ink); }
.policy ol, .policy ul { padding-left: 22px; }
.policy li { margin: 4px 0; }
.toc { margin: 0 0 8px; padding: 18px 20px; border-radius: 16px; background: var(--soft); font-size: 14px; line-height: 1.6; }
.toc p { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 240px; column-gap: 24px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--coral-text); }
.table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wide table { min-width: 560px; }
th { background: var(--soft); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.hero { display: grid; gap: 36px; padding-top: 32px; padding-bottom: 48px; }
.eyebrow { margin: 0 0 10px; color: var(--coral-text); font-weight: 700; font-size: 14px; }
h1 { font-size: 34px; line-height: 1.28; letter-spacing: -.03em; margin: 0 0 16px; }
.lead { font-size: 17px; color: var(--sub); margin: 0; max-width: 500px; }

/* the example card */
.demo { margin: 0; padding: 20px 20px 16px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.chips { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--sub); }
.chips li { transition: color .4s; }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--coral); border-radius: 2px; }

.say { position: relative; max-width: 90%; padding: 34px 16px 14px; border-radius: 22px; font-size: 15px; line-height: 1.45; font-weight: 500; }
.say p { margin: 0; }
.say::after { content: ""; position: absolute; bottom: -9px; width: 18px; height: 14px; background: inherit; }
.me { align-self: flex-end; background: var(--coral); color: #fff; transform-origin: 85% 100%; }
.me::after { right: 20px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.partner { align-self: flex-start; background: var(--soft); color: var(--ink); transform-origin: 15% 100%; }
.partner::after { left: 20px; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* eyes: look toward what matters, blink, turn happy on a correct answer */
.eyes { position: absolute; top: 12px; left: 18px; display: flex; gap: 6px; transition: transform .5s ease; }
.me .eyes { left: auto; right: 18px; }
.eyes i { display: block; width: 7px; height: 12px; border-radius: 4px; background: #fff; transition: height .2s, width .2s; }
.partner .eyes i { background: var(--coral); }
[data-look="down"] .eyes { transform: translate(0, 3px); }
[data-look="down-r"] .eyes { transform: translate(3px, 3px); }
[data-look="up-l"] .eyes { transform: translate(-3px, -2px); }
.blink .eyes i { animation: blink .3s ease; }
@keyframes blink { 50% { transform: scaleY(.1); } }
.happy .eyes i { width: 10px; height: 7px; background: none; border: 3px solid #fff; border-bottom: 0; border-radius: 8px 8px 0 0; }

.hit { text-decoration: line-through; text-decoration-color: rgba(17, 19, 23, .75); text-decoration-thickness: 2.5px; transition: text-decoration-color .6s; }
.hit .w { color: rgba(255, 255, 255, .6); }

.fix { padding: 14px 16px; border-radius: 16px; background: var(--soft); transition: opacity .6s, transform .6s; }
.fix p { margin: 0; }
.arrow { display: flex; align-items: flex-end; gap: 6px; padding: 0 0 8px 6px; color: var(--coral-text); font-weight: 700; font-size: 15px; }
.new { padding: 10px 12px; border-radius: 10px; background: var(--card); color: var(--ink); font-size: 15px; line-height: 1.45; transition: opacity .6s; }
.new b { color: var(--coral-text); }
.feedback { margin-top: 10px !important; font-size: 14px; color: var(--sub); transition: opacity .4s; }

.turns { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.ok { position: absolute; top: -10px; right: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-text); border: 2px solid var(--card); }
.jump { animation: jump .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes jump { 40% { transform: translateY(-12px); } }
.demo figcaption { text-align: right; color: var(--faint); font-size: 12px; margin-top: 4px; }

/* playing: the script adds .js and steps through data-step; without it the card shows the finished state */
.js .chips li { color: var(--faint); }
.js[data-step="1"] [data-c="1"], .js[data-step="2"] [data-c="2"], .js[data-step="3"] [data-c="3"] { color: var(--ink); }
.js .bar i { width: 0; }
.js[data-step="1"] [data-c="1"] i { width: 100%; transition: width 2.1s linear; }
.js[data-step="2"] [data-c="2"] i { width: 100%; transition: width 2.4s linear; }
.js[data-step="3"] [data-c="3"] i { width: 100%; transition: width 4.4s linear; }
.js[data-step="2"] [data-c="1"] i, .js[data-step="3"] [data-c="1"] i, .js[data-step="3"] [data-c="2"] i { width: 100%; }
.js .say { opacity: 0; transform: scale(.8) translateY(8px); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js .say.in { opacity: 1; transform: none; }
.js .w { color: rgba(255, 255, 255, .4); transition: color .25s; }
.js .w.on { color: #fff; }
.js .hit { text-decoration-color: transparent; }
.js .done .hit { text-decoration-color: rgba(17, 19, 23, .75); }
.js .done .hit .w { color: rgba(255, 255, 255, .6); }
.js .fix { opacity: 0; transform: translateY(8px); }
.js .fix.in { opacity: 1; transform: none; }
.js .fix .new { opacity: 0; }
.js .fix.done .new { opacity: 1; }
.js .fix .feedback { opacity: 0; }
.js .fix.why .feedback { opacity: 1; }
.js .say.in.dim, .js .fix.in.dim { opacity: .4; transition: opacity .6s; }
.js .ok { transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.js .happy .ok { transform: scale(1); }
.demo.out .say, .demo.out .fix { opacity: 0 !important; transform: translateY(-10px) !important; transition: opacity .5s, transform .5s !important; }
.demo.reset, .demo.reset * { transition: none !important; animation: none !important; }

/* steps */
.how { padding-top: 24px; padding-bottom: 16px; }
.how h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-weight: 800; font-size: 14px; line-height: 1; }
.steps b { font-size: 17px; }
.steps p { margin: 2px 0 0; color: var(--sub); font-size: 15px; }
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 440px; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
  h1 { font-size: 46px; }
  .lead { font-size: 18px; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* 404 */
.notfound { padding-top: 64px; padding-bottom: 64px; }
.notfound h1 { font-size: 26px; margin: 0 0 12px; }

/* privacy: a readable line length on wide screens */
.wrap.policy { max-width: 820px; }

/* privacy: no drag-to-select, so the page isn't casually copied (owner, 10/30). Only a deterrent: the text is still in the page source. */
.policy { -webkit-user-select: none; user-select: none; }

.policy .toc { margin-top: 24px; }
