/* vocaivo.com — design system tokens (logo board) and page styles. No webfonts: Inter or Poppins when installed,
   otherwise the system UI font. */
:root {
  --violet: #7c3aed;
  --blue: #3b82f6;
  --light-blue: #60a5fa;
  --magenta: #a855f7;

  --bg: #fcfbfa;
  --band: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7ef;
  --accent: #6d4ef2;
  --accent-text: #5b3fd9;
  --focus: #7c3aed;
  --glow: rgba(124, 58, 237, 0.16);
  --glow-2: rgba(59, 130, 246, 0.14);
  --shadow: 0 18px 50px -20px rgba(15, 23, 42, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(15, 23, 42, 0.22);
  --draft-bg: #fff4d6;
  --draft-text: #6b4e00;

  --tile-magenta-bg: #fbe8f8; --tile-magenta: #c026d3;
  --tile-violet-bg: #ede5fd; --tile-violet: #7c3aed;
  --tile-blue-bg: #e6eefe; --tile-blue: #2563eb;
  --tile-green-bg: #dcf3e7; --tile-green: #16a34a;
  --tile-orange-bg: #fdf0e1; --tile-orange: #ea7a06;

  --gradient: linear-gradient(90deg, #8b3cf0 0%, #6a4cf3 45%, #3b82f6 100%);
  --btn: linear-gradient(100deg, #7c3aed, #5b5bf6);
  --radius: 16px;
  --wrap: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --band: #10172b;
    --surface: #141c33;
    --text: #eef1f8;
    --muted: #a3adc2;
    --border: #253050;
    --accent: #8b74ff;
    --accent-text: #b4a6ff;
    --focus: #b4a6ff;
    --glow: rgba(124, 58, 237, 0.28);
    --glow-2: rgba(59, 130, 246, 0.22);
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --draft-bg: #3a3014;
    --draft-text: #f5dc9a;

    --tile-magenta-bg: #3a1840; --tile-magenta: #f0abfc;
    --tile-violet-bg: #2c1f55; --tile-violet: #c4b5fd;
    --tile-blue-bg: #172a52; --tile-blue: #93c5fd;
    --tile-green-bg: #12352a; --tile-green: #86efac;
    --tile-orange-bg: #3d2a12; --tile-orange: #fdba74;

    --gradient: linear-gradient(90deg, #c084fc 0%, #a78bfa 45%, #60a5fa 100%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-text); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Header */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.brand { display: inline-flex; }
.brand picture, .footer-brand picture { display: block; }
.brand img { display: block; height: 36px; width: auto; }
.sections ul, ul.langs { display: flex; list-style: none; margin: 0; padding: 0; }
.sections ul { gap: 4px 28px; flex-wrap: wrap; }
.sections a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; }
.sections a:hover { color: var(--accent-text); }
.actions { display: flex; align-items: center; gap: 12px; }
ul.langs { gap: 2px; }
.langs a { display: inline-block; padding: 4px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--band); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--btn); color: #ffffff; box-shadow: 0 10px 24px -10px rgba(91, 63, 217, 0.7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(91, 63, 217, 0.8); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 18px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Text pages (legal, support, deletion) */
.page-text main { max-width: 760px; margin: 0 auto; padding: 8px 24px 64px; }
.page-text h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 12px; letter-spacing: -0.02em; }
.page-text h2 { font-size: 21px; margin: 32px 0 8px; }
.page-text .lead { font-size: 19px; color: var(--muted); }
.draft { background: var(--draft-bg); color: var(--draft-text); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.placeholder { color: var(--muted); font-style: italic; }

/* Landing */
.page-home main { overflow: hidden; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
[lang="th"] .eyebrow { letter-spacing: 0.02em; }

.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 56px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.hero h1 { margin: 0 0 24px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 span { display: block; }
.gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero .lead { margin: 0 0 32px; max-width: 34em; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 16px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
/* Wrap before the hero mascot (German and Thai checks are longer than English); text stays above it. */
.hero .checks { max-width: 430px; }
.hero-text { position: relative; z-index: 1; }
.checks .ic { color: var(--accent); }

/* Hero visual: two phones (decorative, HTML/CSS) */
.visual { position: relative; font-size: clamp(9px, 1.15vw, 14.5px); height: 46em; }
.blob {
  position: absolute; inset: 4% -8% 0 12%; border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%;
  background: radial-gradient(60% 60% at 40% 40%, var(--glow), transparent 70%), radial-gradient(50% 50% at 75% 65%, var(--glow-2), transparent 70%);
}
.phone {
  position: absolute; width: 19em; height: 39em; border-radius: 3.2em; padding: 0.6em;
  background: linear-gradient(145deg, #3b3f4a, #15171d 40%, #2a2d35); box-shadow: var(--shadow), inset 0 0 0 0.12em #5b606c;
}
.phone-camera { left: 13%; top: 2em; transform: rotate(-6deg); z-index: 1; }
.phone-learn { left: 55%; top: 4.5em; transform: rotate(9deg); z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 2.65em; overflow: hidden; background: #ffffff; color: #0f172a; display: flex; flex-direction: column; }
.screen.dark { background: #16181e; color: #ffffff; }
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 0.9em 1.6em 0.2em; font-size: 0.85em; font-weight: 600; }
.notch { width: 6.5em; height: 1.6em; border-radius: 1em; background: #0b0c10; }
.bars { width: 3.2em; height: 0.75em; border-radius: 0.3em; background: linear-gradient(90deg, currentColor 60%, transparent 60%); opacity: 0.85; }
.appbar { display: grid; grid-template-columns: 2em 1fr 2em; align-items: center; padding: 0.6em 0.9em; font-weight: 600; font-size: 1.05em; }
.appbar span { text-align: center; }
.appbar .ic { width: 1.3em; height: 1.3em; }

.photo {
  position: relative; flex: 1; margin: 0.3em 0; display: grid; place-items: center;
  background: linear-gradient(180deg, #8c949e 0%, #c8ccd1 35%, #9aa1a8 70%, #5d636b 100%);
}
.photo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 2.4em, rgba(255, 255, 255, 0.12) 2.4em 2.6em); }
.frame { position: absolute; inset: 22% 8%; border: 0.15em solid rgba(255, 255, 255, 0.85); border-radius: 1em; }
.sign {
  position: relative; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0.1em 0.5em;
  background: linear-gradient(180deg, #24406a, #1b3155); color: #ffffff; border-radius: 0.5em; box-shadow: 0 0.6em 1.4em -0.4em rgba(0, 0, 0, 0.6), inset 0 0 0 0.12em rgba(255, 255, 255, 0.25);
  font-family: "Noto Sans Thai", Thonburi, Inter, system-ui, sans-serif; font-weight: 700; line-height: 1.05;
}
.sign-large { font-size: 2.3em; padding: 0.35em 0.5em; transform: rotate(-2deg); }
.sign-small { font-size: 1.15em; padding: 0.35em 0.55em; }
.sign-en { grid-column: 1; font-family: Inter, system-ui, sans-serif; }
.sign-arrow { grid-row: 1 / span 2; grid-column: 2; width: 1.1em; height: 1.1em; }
.camera-bar { padding: 0.7em 1em 1.4em; display: grid; gap: 1em; justify-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.35em 0.9em; border-radius: 2em; background: rgba(255, 255, 255, 0.14); font-size: 0.8em; }
.ic.tiny { width: 0.9em; height: 0.9em; }
.camera-controls { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 0.6em; }
.camera-controls .ic { width: 1.6em; height: 1.6em; opacity: 0.85; }
.shutter { width: 3.6em; height: 3.6em; border-radius: 50%; border: 0.25em solid #ffffff; box-shadow: inset 0 0 0 0.25em #16181e, inset 0 0 0 2em #ffffff; }

.progress { display: flex; align-items: center; gap: 0.7em; padding: 0.2em 1.4em 0.8em; font-size: 0.82em; color: #64748b; }
.progress .bar { flex: 1; height: 0.45em; border-radius: 1em; background: #e8eaf2; overflow: hidden; }
.progress .bar span { display: block; width: 60%; height: 100%; border-radius: 1em; background: var(--btn); }
.card { margin: 0 0.9em; padding: 1.2em 1.1em 1em; border-radius: 1.4em; background: #ffffff; box-shadow: 0 0.6em 1.8em -0.6em rgba(15, 23, 42, 0.25); }
.word-row { display: flex; align-items: center; gap: 0.5em; }
.word { font-size: 2.1em; font-weight: 700; line-height: 1.1; font-family: "Noto Sans Thai", Thonburi, Inter, system-ui, sans-serif; }
.say { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #e6eefe; color: #2563eb; }
.say .ic { width: 1.1em; height: 1.1em; }
.star { margin-left: auto; color: #f5b301; }
.roman { margin: 0.3em 0 0; color: #64748b; font-size: 1em; }
.meaning { margin: 0.5em 0 0.7em; font-size: 1.35em; font-weight: 600; }
.thumb { display: grid; place-items: center; height: 7.5em; border-radius: 0.9em; background: linear-gradient(180deg, #9aa1a8, #c9cdd2 50%, #7d848c); }
.answers { display: flex; justify-content: space-between; margin-top: 1em; }
.answer { display: grid; justify-items: center; gap: 0.35em; font-size: 0.78em; color: #334155; }
.answer .ic { width: 3.6em; height: 3.6em; padding: 1em; border-radius: 50%; }
.wrong .ic { background: #fde8ea; color: #e11d48; }
.unsure .ic { background: #fef3c7; color: #b45309; }
.correct .ic { background: #dcf3e7; color: #16a34a; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.9em; padding: 0.9em 1.3em 0.9em 0.9em;
  background: var(--surface); border-radius: 1.2em; box-shadow: var(--shadow-sm); border: 1px solid var(--border); font-size: 1.05em; max-width: 19em;
}
.float strong { display: block; font-size: 1em; line-height: 1.3; }
.float small { display: block; color: var(--muted); font-size: 0.82em; line-height: 1.35; }
.float-photo { left: 1%; top: 12em; transform: rotate(-4deg); }
.float-ai { left: 0; top: 25em; transform: rotate(-4deg); }
/* Mascot: peeks out from behind the camera phone (the phone covers part of its back), clear of the hero text. */
.mascot { display: block; height: auto; pointer-events: none; user-select: none; }
.mascot-hero { position: absolute; z-index: 0; left: calc(-24% - 20px); bottom: -1.5em; width: 13.8em; transform-origin: 50% 100%; animation: mascot-breathe 5s ease-in-out infinite; }
@keyframes mascot-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015, 0.99); } }
@media (prefers-reduced-motion: reduce) { .mascot-hero { animation: none; } }
.flow-arrow { position: absolute; z-index: 3; left: 6%; top: 17.5em; width: 3.5em; height: 5.5em; color: var(--accent); }

.tile { display: grid; place-items: center; flex: none; width: 3em; height: 3em; border-radius: 0.8em; }
.tile .ic { width: 1.5em; height: 1.5em; }
.tile-magenta { background: var(--tile-magenta-bg); color: var(--tile-magenta); }
.tile-violet { background: var(--tile-violet-bg); color: var(--tile-violet); }
.tile-blue { background: var(--tile-blue-bg); color: var(--tile-blue); }
.tile-green { background: var(--tile-green-bg); color: var(--tile-green); }
.tile-orange { background: var(--tile-orange-bg); color: var(--tile-orange); }

/* Feature band */
.band { background: var(--band); border-block: 1px solid var(--border); }
.feature-list {
  max-width: var(--wrap); margin: 0 auto; padding: 44px 24px; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.feature-list li { display: flex; gap: 18px; align-items: flex-start; font-size: 18px; }
.feature-list .tile { font-size: 22px; }
.feature-list h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.feature-list p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 0; }

.section h2, .cta-band h2 { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
.section-lead { margin: 0 0 32px; max-width: 40em; color: var(--muted); font-size: 19px; }
.fine { margin: 20px 0 0; color: var(--muted); font-size: 15px; max-width: 52em; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--btn); color: #ffffff; font-weight: 700; }
.mascot-step { width: auto; height: 104px; margin: -14px -6px 0 0; }
.steps h3 { margin: 0 0 6px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }

.aids-title { margin: 0 0 16px; font-size: 18px; }
.aids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.aids li { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.native { font-size: 24px; font-weight: 700; line-height: 1.3; }
.aids li:last-child { grid-column: 1 / -1; }
.aids li:last-child .native { font-size: 18px; }
.aid-name { font-weight: 600; }
.aid { color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--btn) border-box; box-shadow: var(--shadow); }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { margin: 0; font-size: 22px; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--tile-violet-bg); color: var(--tile-violet); font-size: 14px; font-weight: 600; }
.price { margin: 16px 0 0; }
.price strong { font-size: 40px; letter-spacing: -0.02em; }
.price span { color: var(--muted); }
.alt { margin: 4px 0 20px; color: var(--muted); font-size: 15px; min-height: 1.5em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { color: var(--accent); margin-top: 0.2em; }

.faq { display: grid; gap: 12px; margin-top: 28px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .toggle { color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] .toggle { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band {
  max-width: calc(var(--wrap) - 48px); margin: 96px auto 72px; padding: 56px 32px; border-radius: 28px; text-align: center;
  background: radial-gradient(70% 120% at 20% 0%, var(--glow), transparent 70%), radial-gradient(70% 120% at 90% 100%, var(--glow-2), transparent 70%), var(--band);
  border: 1px solid var(--border);
}
.cta-band p { margin: 8px auto 24px; color: var(--muted); font-size: 19px; max-width: 34em; }
.cta-band .ctas { justify-content: center; }
.availability { font-weight: 600; color: var(--text) !important; margin-bottom: 0 !important; }

/* Footer */
.bottom {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 40px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: start; color: var(--muted); font-size: 15px;
}
.footer-brand img { display: block; height: 28px; width: auto; }
.footer-brand p { margin: 8px 0 0; }
.bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 4px 0 0; padding: 0; }
.bottom a { color: var(--muted); }
.bottom a[aria-current="page"] { color: var(--text); font-weight: 600; }
.copy { margin: 4px 0 0; }
/* Sleeping on the footer line. */
.mascot-footer { position: absolute; right: 32px; top: -67px; width: 150px; }

/* Responsive */
@media (max-width: 1080px) {
  .sections { order: 3; width: 100%; }
  .sections ul { gap: 4px 22px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom { grid-template-columns: 1fr; }
  .mascot-hero { left: -8%; width: 12em; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .visual { font-size: clamp(8px, 2.1vw, 13px); max-width: 640px; width: 100%; margin: 0 auto; height: 52em; }
  .mascot-hero { left: 0; bottom: 0; width: 13.2em; }
  .steps, .plans { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
}

@media (max-width: 640px) {
  .top { padding: 14px 16px; }
  .brand img { height: 30px; }
  .sections { overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .sections ul { flex-wrap: nowrap; gap: 20px; }
  .sections a { white-space: nowrap; font-size: 15px; }
  .actions { gap: 8px; }
  .actions .btn { padding: 8px 14px; font-size: 15px; }
  .actions .btn-outline { display: none; }
  .hero, .section, .feature-list, .bottom { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); }
  .btn-lg { width: 100%; }
  .visual { font-size: 2.3vw; height: 54em; }
  .phone-camera { left: 6%; }
  .phone-learn { left: 47%; }
  .float { font-size: 1.25em; }
  .feature-list { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .cta-band { margin: 64px 16px 48px; padding: 40px 20px; }
}
