/* Jupjup site: warm, friendly, plain. Cream paper, one green, a highlighter yellow, a coral wink. */
:root {
  --page: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2a241c;
  --ink-2: #6a6156;
  --ink-3: #9a9083;
  --line: #ebe2d2;
  --green: #1f7a45;
  --green-soft: #e1f0e5;
  --marker: #ffe880;
  --coral: #ef7b5b;
  --shadow: 0 18px 40px rgba(80, 55, 25, .14), 0 2px 6px rgba(80, 55, 25, .08);
  --round: "Nunito", ui-rounded, -apple-system, system-ui, sans-serif;
  --ko: "Gowun Dodum", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --ko-display: "Jua", "Apple SD Gothic Neo", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1b1814; --paper: #24201b; --ink: #f4eee4; --ink-2: #c3b8a8; --ink-3: #8e8476;
    --line: #3a342c; --green: #5ccf8b; --green-soft: #22352a; --marker: #6b5a12; --coral: #f29274;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 18px/1.6 var(--round); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; } /* keep-all: Korean breaks between words, not inside them */
a { color: var(--green); }
.ko { font-family: var(--ko); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }

/* header */
header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 34px; height: 34px; display: block; }
.logo .word { font-family: var(--ko-display); font-size: 26px; line-height: 1; }
.logo .latin { font-weight: 900; color: var(--ink); font-size: 21px; letter-spacing: -.01em; }
header nav { display: flex; align-items: center; gap: 22px; }
header nav a.link { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 16px; }
header nav a.link:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--round); padding: 15px 26px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--line); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 0 #145631; }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #145631; }
.btn.small { padding: 10px 18px; font-size: 15px; box-shadow: 0 4px 0 #145631; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #10251a; box-shadow: 0 6px 0 #2f8a55; } }

/* hero */
.hero { text-align: center; padding-top: 48px; padding-bottom: 20px; } /* keep .wrap's side padding */
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.05; margin: 0 auto 18px; max-width: 860px; }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding: 0 4px; }
.hero p.sub { font-size: 21px; color: var(--ink-2); max-width: 600px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.reassure { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--ink-3); font-size: 15px; font-weight: 700; }
.reassure span::before { content: "✓ "; color: var(--green); }

/* the animated demo */
.stage { position: relative; max-width: 820px; margin: 48px auto 0; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background:
    radial-gradient(120% 90% at 20% 15%, #ffd29a 0%, transparent 55%),
    radial-gradient(90% 80% at 85% 20%, #f7a3a3 0%, transparent 55%),
    linear-gradient(180deg, #ffb48a 0%, #b36b8e 55%, #3c2f57 100%);
}
.video .hills { position: absolute; inset: auto 0 0 0; height: 46%; }
.subtitle {
  position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--ko); font-weight: 700; font-size: clamp(18px, 3.3vw, 30px); color: #fff;
  background: rgba(20, 16, 12, .72); padding: 6px 16px; border-radius: 10px;
}
.subtitle .new { text-decoration: underline 3px #7ee2a4; text-underline-offset: 7px; animation: wordglow 10s infinite; border-radius: 4px; }
.popcard {
  position: absolute; left: 50%; bottom: 33%; transform: translate(-30%, 12px) scale(.96); opacity: 0;
  width: min(300px, 60%); background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 16px; text-align: left; animation: pop 10s infinite;
}
.popcard .w { font-family: var(--ko-display); font-size: 28px; line-height: 1; }
.popcard .tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); vertical-align: middle; }
.popcard .m { margin: 6px 0 10px; font-weight: 700; }
.popcard .save { display: inline-block; font-weight: 800; font-size: 14px; color: #fff; background: var(--green); padding: 7px 14px; border-radius: 999px; animation: press 10s infinite; }
.popcard .know { display: inline-block; font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); margin-left: 6px; }
/* the cursor's tip (top-left of the svg) is what lands on the target */
.cursor { position: absolute; width: 24px; left: 0; top: 0; animation: move 10s infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); z-index: 3; }
.popcard .save { position: relative; }
.popcard .save .s2 { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; animation: saved2 10s infinite; }
.popcard .save .s1 { animation: saved1 10s infinite; }
.toast { position: absolute; left: 4%; top: 6%; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; animation: toast 10s infinite; }
.toast { font-family: var(--round); }
.stage-caption { text-align: center; color: var(--ink-3); font-size: 15px; margin-top: 18px; }

/* timeline: cursor reaches the word ~18%, card pops ~22%, Save pressed ~46%, "Saved" + toast ~50–85%, fade ~90% */
@keyframes move {
  0% { left: 88%; top: 92%; opacity: 0; }
  4% { opacity: 1; }
  18%, 40% { left: var(--word-x, 52%); top: var(--word-y, 82%); }
  46%, 70% { left: var(--save-x, 40%); top: var(--save-y, 60%); opacity: 1; }
  80%, 100% { left: 88%; top: 92%; opacity: 0; }
}
@keyframes wordglow { 0%, 17% { background: transparent; } 20%, 85% { background: rgba(126, 226, 164, .28); } 90%, 100% { background: transparent; } }
@keyframes pop {
  0%, 20% { opacity: 0; transform: translate(-30%, 12px) scale(.96); }
  24%, 84% { opacity: 1; transform: translate(-30%, 0) scale(1); }
  90%, 100% { opacity: 0; transform: translate(-30%, 8px) scale(.98); }
}
@keyframes press { 0%, 44% { transform: none; } 46% { transform: scale(.92); } 49%, 100% { transform: none; } }
@keyframes saved1 { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes saved2 { 0%, 49% { opacity: 0; } 50%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes toast { 0%, 52% { opacity: 0; transform: translateY(8px); } 56%, 84% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
/* Phones: a taller video and a compact card, so the card fits above the subtitle and its buttons stay on one line */
@media (max-width: 560px) {
  .video { aspect-ratio: 4 / 3; border-radius: 18px; }
  .popcard { width: min(230px, 70%); padding: 10px 12px; border-radius: 14px; white-space: nowrap; }
  .popcard .w { font-size: 22px; }
  .popcard .tag { font-size: 11px; padding: 2px 7px; }
  .popcard .m { margin: 4px 0 8px; font-size: 15px; }
  .popcard .save { font-size: 12px; padding: 6px 11px; }
  .popcard .know { font-size: 12px; padding: 4px 9px; margin-left: 4px; }
  .toast { font-size: 12px; padding: 6px 11px; left: 3%; right: 3%; top: auto; bottom: 3%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .toast { display: none; }
  .popcard { animation: none; opacity: 1; transform: translate(-30%, 0); }
  .subtitle .new, .popcard .save, .popcard .save span { animation: none; }
  .popcard .save .s2 { display: none; }
}

/* sections */
section { padding: 76px 0; }
.kicker { font-weight: 800; color: var(--coral); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
section h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 14px; }
section p.lede { color: var(--ink-2); font-size: 20px; max-width: 640px; margin: 0 0 36px; }
.center { text-align: center; }
.center p.lede { margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; }
.step .art { height: 120px; display: grid; place-items: center; margin-bottom: 12px; background: var(--page); border-radius: 16px; }
.step .art .sample { font-family: var(--ko); font-weight: 700; font-size: 22px; }
.step .art .sample .new { text-decoration: underline 3px var(--green); text-underline-offset: 6px; background: var(--marker); border-radius: 4px; padding: 0 3px; }
.step .num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 15px; margin-right: 8px; }
.step h3 { display: flex; align-items: center; margin: 0 0 6px; font-size: 21px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.mini-card { background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; text-align: left; }
.mini-card b { font-family: var(--ko-display); font-size: 22px; font-weight: 400; }
.mini-card.review { display: grid; gap: 4px; }
.mini-card.review .ko { font-size: 17px; font-weight: 700; }
.mini-card.review mark { background: var(--marker); color: inherit; border-radius: 3px; padding: 0 2px; }
.mini-card.review .when { font-size: 12px; color: var(--green); font-weight: 800; }

.places { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.places span { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 800; }

.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.why .quote { background: var(--paper); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.why .quote .ko { font-size: 24px; font-weight: 700; line-height: 1.7; }
.why .quote .ko .new { background: var(--marker); border-radius: 4px; padding: 0 3px; }
.why .quote .en { color: var(--ink-2); margin-top: 8px; }
.why .quote .note { margin-top: 16px; font-size: 15px; color: var(--green); font-weight: 800; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; margin: 0; }
.specs div { border-top: 2px solid var(--line); padding-top: 14px; }
.specs dt { font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.specs dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.teach { width: min(996px, calc(100% - 32px)); display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; background: var(--paper); border: 2px solid var(--line); border-radius: 26px; padding: 36px 38px; }
.teach .lede { margin-bottom: 0; }

/* forms */
.signup { display: grid; gap: 12px; }
.signup label { display: grid; gap: 5px; font-weight: 800; font-size: 15px; }
.signup label .text { display: block; }
.signup .opt { color: var(--ink-3); font-weight: 600; }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup input, .signup select, .signup textarea {
  font: 600 16px var(--round); color: var(--ink); background: var(--page);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%;
}
.signup input:focus, .signup select:focus, .signup textarea:focus { outline: none; border-color: var(--green); }
.signup button { justify-self: start; }
.signup.inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.signup.inline input { flex: 1; min-width: 200px; }
.signup.inline .form-msg { flex-basis: 100%; }
.form-msg { margin: 0; font-weight: 700; color: var(--green); font-size: 15px; min-height: 1em; }

/* goodbye page */
.bye { max-width: 620px; margin: 0 auto; padding: 30px 22px 90px; }
.bye h1 { font-size: 40px; margin: 0 0 8px; }
.bye .reasons { display: grid; gap: 8px; margin: 20px 0; }
.bye .reasons label { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.bye .reasons input { accent-color: var(--green); width: 18px; height: 18px; }
.teachers { padding-top: 20px; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promise { text-align: center; padding: 10px; }
.promise .icon { font-size: 34px; width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); }
.promise h3 { margin: 0 0 4px; font-size: 20px; }
.promise p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* live counters */
.live-band { padding: 26px 0 30px; }
.live-band .wrap { width: min(996px, calc(100% - 32px)); background: var(--ink); color: var(--page); border-radius: 28px; padding: 30px 34px 26px; }
.live-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.live-dot { width: 10px; height: 10px; border-radius: 999px; background: #5ccf8b; box-shadow: 0 0 0 0 rgba(92, 207, 139, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 207, 139, .6); } 70% { box-shadow: 0 0 0 10px rgba(92, 207, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 207, 139, 0); } }
.live-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px 28px; margin-top: 16px; }
.live-num { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.live-stat:nth-child(1) .live-num { color: #ffffff; }
.live-stat:nth-child(2) .live-num { color: #7ee2a4; }
.live-stat:nth-child(3) .live-num { color: #ffe880; }
.live-stat:nth-child(4) .live-num { color: #ffb59d; }
@media (prefers-color-scheme: dark) { .live-stat:nth-child(1) .live-num { color: var(--ink); } }
.live-label { margin-top: 6px; font-weight: 700; font-size: 17px; opacity: .85; }
.live-sub { margin: 18px 0 0; font-size: 15px; opacity: .7; }
.live-sub:empty { display: none; }
@media (prefers-color-scheme: dark) { .live-band .wrap { background: #2c2720; color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@media (max-width: 820px) { .live-stats { grid-template-columns: 1fr 1fr; gap: 18px; } .live-num { font-size: 30px; } .live-band .wrap { padding: 24px 22px; } }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; font-size: 17px; }
.faq details p + p { margin-top: 8px; }
.maker { padding: 10px 0 40px; }
.maker p { max-width: 640px; margin: 0 auto; text-align: center; font-size: 17px; color: var(--ink-2); }
.maker strong { color: var(--ink); }

.final { text-align: center; padding-bottom: 96px; }
footer { border-top: 2px solid var(--line); padding: 28px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* privacy page */
.doc { max-width: 720px; padding: 30px 22px 90px; margin: 0 auto; }
.doc h1 { font-size: 46px; margin: 0 0 4px; }
.doc .updated { color: var(--ink-3); margin-top: 0; }
.doc .short { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 18px 22px; font-size: 19px; color: var(--ink); }
.doc h2 { font-size: 24px; margin: 38px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--paper); border-radius: 14px; overflow: hidden; }
.doc td, .doc th { border-top: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.doc th { border-top: 0; background: var(--page); }
.doc td + td, .doc th + th { width: 32%; }
/* phones: stack each row (what's stored, then why) instead of squeezing two columns */
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: auto; }
  .doc tr:first-child { display: none; }
  .doc tr { border-top: 1px solid var(--line); padding: 12px 16px; }
  .doc tr:nth-child(2) { border-top: 0; }
  .doc td, .doc td + td { border-top: 0; padding: 0; width: auto; }
  .doc td + td { color: var(--ink-3); font-size: 15px; margin-top: 4px; }
  .doc td + td::before { content: "Why: "; font-weight: 700; }
}

@media (max-width: 820px) {
  .steps, .promises, .why, .specs, .teach, .signup .row { grid-template-columns: 1fr; }
  .teach { padding: 26px 22px; }
  header nav a.link { display: none; }
  .popcard { transform: translate(-50%, 0); }
}
