/* Pocket Interview Prep: the app's night-violet table, printed card faces, and gem buttons. */

/* Nunito (SIL Open Font License 1.1) stands in for SF Rounded where ui-rounded isn't available. */
@font-face {
  font-family: "Nunito";
  src: url("nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #170f36;
  --night-deep: #0d0824;
  --violet: #7c5cfc;
  --violet-soft: #9b82ff;
  --teal: #0fb5ae;
  --teal-soft: #3fd9d1;
  --coral: #ff6b57;
  --coral-soft: #ff8a78;
  --on-table: #ffffff;
  --on-table-muted: #b9b2d6;
  --card: #ffffff;
  --card-edge: #f8f6fe;
  --text: #201c33;
  --text-muted: #615c77;
  --well: #f1eefb;
  --line: rgba(32, 28, 51, 0.08);
  --shadow: 0 18px 40px -18px rgba(5, 2, 20, 0.7), 0 2px 6px rgba(5, 2, 20, 0.25);
  --radius: 20px;
  --radius-sm: 14px;
  --font: ui-rounded, "Nunito", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Nunito and SF Rounded only cover Latin, so each CJK language names its own fallbacks. */
:root:lang(ja) { --font: ui-rounded, "Nunito", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif; }
:root:lang(ko) { --font: ui-rounded, "Nunito", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:root:lang(zh-Hans) { --font: ui-rounded, "Nunito", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root {
    --card: #221b47;
    --card-edge: #191434;
    --text: #f2f0fa;
    --text-muted: #a9a3c2;
    --well: #2b2357;
    --line: rgba(255, 255, 255, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-table);
  background-color: var(--night);
  background-image:
    radial-gradient(60rem 36rem at 50% -10rem, rgba(124, 92, 252, 0.45), transparent 70%),
    radial-gradient(40rem 30rem at -10% 60%, rgba(15, 181, 174, 0.16), transparent 70%),
    radial-gradient(40rem 30rem at 110% 85%, rgba(255, 107, 87, 0.14), transparent 70%),
    linear-gradient(var(--night), var(--night-deep));
  background-attachment: fixed;
}

a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:lang(ko) { word-break: keep-all; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
:lang(ja) { word-break: auto-phrase; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--well); padding: 0.1em 0.35em; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.wrap .narrow { width: min(760px, 100%); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 999px; }

:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: 3px; border-radius: 6px; }

/* Header */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 8px 16px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(124, 92, 252, 0.45); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--on-table-muted); font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-table); background: rgba(255, 255, 255, 0.08); }

/* Language menu */

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; color: var(--on-table); background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: background 0.15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(255, 255, 255, 0.14); }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 160px; margin: 0; padding: 6px;
  list-style: none; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow);
  animation: drop 0.16s ease-out;
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-menu a:hover { background: var(--well); }
.lang-menu a[aria-current="true"] { color: var(--violet); }
.lang-menu a[aria-current="true"]::after { content: "✓"; float: right; margin-left: 12px; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

/* Hero */

.hero { text-align: center; padding: 40px 0 64px; margin-bottom: 0; }
.hero-icon { width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px -10px rgba(124, 92, 252, 0.8); animation: float 6s ease-in-out infinite; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 14ch; }
.hero h1 .accent { white-space: nowrap; }
/* CJK headlines keep each half whole and break only between them. As flex items the halves also
   drop the space between them, which Japanese and Chinese don't use; Korean puts it back as a gap. */
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh-Hans) .hero h1 {
  display: flex; flex-wrap: wrap; justify-content: center; max-width: none; font-size: clamp(28px, 7.4vw, 52px);
}
:lang(ja) .hero h1 span, :lang(ko) .hero h1 span, :lang(zh-Hans) .hero h1 span { white-space: nowrap; }
:lang(ko) .hero h1 { column-gap: 0.3em; }
.hero h1 .accent { background: linear-gradient(100deg, var(--violet-soft), var(--teal-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--on-table-muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 36rem; margin: 0 auto 30px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@keyframes float { 50% { transform: translateY(-8px); } }

/* Buttons: .gem is the primary action, .glass its quieter sibling, as in the app. */

.gem, .glass {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; padding: 13px 22px; border-radius: 999px; transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.gem { color: #fff; background: linear-gradient(180deg, #8f74ff, var(--violet)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -8px rgba(124, 92, 252, 0.9); }
.gem:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 32px -8px rgba(124, 92, 252, 1); }
.glass { color: var(--on-table); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.glass:hover { background: rgba(255, 255, 255, 0.13); }
.gem:active, .glass:active { transform: scale(0.97); }
.gem svg, .glass svg { width: 18px; height: 18px; flex: none; }

.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--teal-soft); margin-bottom: 22px; padding: 6px 14px; border-radius: 999px; background: rgba(63, 217, 209, 0.1); box-shadow: inset 0 0 0 1px rgba(63, 217, 209, 0.25); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-soft); box-shadow: 0 0 10px var(--teal-soft); }

/* Sections and table headings */

section { margin-bottom: 80px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 800; color: var(--teal-soft); margin-bottom: 8px; }
.table-heading { text-align: center; margin-bottom: 32px; }
.table-heading h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
.table-heading p { color: var(--on-table-muted); margin: 0 auto; max-width: 34rem; }

/* Printed card faces */

.card {
  position: relative; background: linear-gradient(180deg, var(--card), var(--card-edge)); color: var(--text);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 14px 0 6px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features .card { transition: transform 0.18s ease; }
.features .card:hover { transform: translateY(-3px) rotate(-0.4deg); }

.tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.tile svg { width: 24px; height: 24px; }
.tile.violet { background: linear-gradient(140deg, var(--violet-soft), var(--violet)); box-shadow: 0 8px 18px -6px rgba(124, 92, 252, 0.8); }
.tile.teal { background: linear-gradient(140deg, var(--teal-soft), var(--teal)); box-shadow: 0 8px 18px -6px rgba(15, 181, 174, 0.8); }
.tile.coral { background: linear-gradient(140deg, var(--coral-soft), var(--coral)); box-shadow: 0 8px 18px -6px rgba(255, 107, 87, 0.8); }

/* Free vs Pro */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan h3 { margin-top: 0; font-size: 22px; }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--text-muted); }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); border-radius: 1px; }
.plan.pro { box-shadow: var(--shadow), 0 0 0 2px var(--violet), 0 0 40px -6px rgba(124, 92, 252, 0.6); }
.plan.pro li::before { border-color: var(--violet); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--well); color: var(--violet); margin-left: 8px; vertical-align: 3px; }

/* FAQ */

.faq { display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 17px; position: relative; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg); transition: transform 0.28s, margin-top 0.28s;
}
.faq details[open]:not(.closing) summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--text-muted); font-size: 16px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.faq .answer li { margin-bottom: 8px; }

/* Support call to action */

.cta { text-align: center; padding: 40px 24px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 30px); letter-spacing: -0.02em; }
.cta p { margin: 0 auto 22px; max-width: 30rem; }
.cta .tile { margin: 0 auto 14px; }
.email { font-weight: 700; color: var(--violet); word-break: break-all; }

/* Legal pages: one long printed card */

.doc { padding: clamp(24px, 5vw, 48px); margin-bottom: 64px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--text-muted); font-size: 15px; margin: 0 0 28px; }
.doc .lead { font-size: 19px; color: var(--text); font-weight: 600; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--well); border-left: 4px solid var(--teal); margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-muted); }
.doc a:not(.gem, .glass) { color: var(--violet); font-weight: 600; }

/* Footer */

.site-footer { padding: 32px 0 48px; color: var(--on-table-muted); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-table); }

/* Staggered deal-in, like new cards in the app */

.deal { animation: deal 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes deal { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto; }
  .site-header .nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .site-header .lang-menu { grid-row: 1; grid-column: 2; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .hero { padding-top: 20px; }
  .hero-icon { width: 108px; height: 108px; border-radius: 25px; }
  .features, .plans { grid-template-columns: 1fr; }
  section { margin-bottom: 60px; }
  .actions a { width: 100%; justify-content: center; }
}
