/* Exam Master marketing site — shared styles */
:root {
  --bg: #1B2140;
  --bg-raised: #232B4E;
  --surface: #2A3352;
  --surface-2: #323C60;
  --line: #3A4468;
  --accent: #AECBEB;
  --accent-strong: #8FB4E3;
  --accent-deep: #5E86BE;
  --text: #EEF3FB;
  --muted: #A9B4CE;
  --dark: #10142A;
  --radius: 20px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 33, 64, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  background: var(--accent); color: var(--dark);
  padding: 8px 16px; border-radius: 999px; font-weight: 800;
}
.site-nav .nav-cta:hover { background: var(--accent-strong); color: var(--dark); }
@media (max-width: 640px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #444;
  padding: 10px 22px; border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.btn-appstore svg { width: 28px; height: 28px; flex: none; }
.btn-appstore .lines { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-appstore .small { font-size: 0.68rem; opacity: 0.85; }
.btn-appstore .big { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.btn-ghost {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid var(--accent-deep); color: var(--accent);
  text-decoration: none; font-weight: 700;
}
.btn-ghost:hover { background: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero-copy { display: flex; flex-direction: column; align-items: center; } }

.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,0.45); margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.02em; font-weight: 900;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hero-proof { color: var(--muted); font-size: 0.9rem; }
.hero-proof strong { color: var(--text); }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone img {
  width: min(320px, 78vw); border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  border: 1px solid var(--line);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 800; color: var(--accent-strong); margin-bottom: 10px;
}
h2.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 14px;
}
.section-lede { color: var(--muted); max-width: 44em; margin-bottom: 40px; font-size: 1.05rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--dark); font-weight: 900; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.shot { flex: 0 0 auto; width: min(260px, 70vw); scroll-snap-align: start; }
.shot img {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0,0,0,0.4);
  background: #fff;
}
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 12px; font-weight: 600; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .emoji { font-size: 1.6rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent-deep); }
.guide-card h3 { color: var(--text); font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.guide-card p { color: var(--muted); font-size: 0.9rem; }
.guide-card .read { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 4px 22px; margin-bottom: 12px;
}
.faq-list details[open] { border-color: var(--accent-deep); }
.faq-list summary {
  cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 700; flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { color: var(--muted); padding-bottom: 18px; font-size: 0.96rem; }
.faq-list .answer a { font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .cta-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-raised) 100%);
  border: 1px solid var(--line); border-radius: 28px;
  padding: 64px 32px; position: relative; overflow: hidden;
}
.final-cta img.mascot { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.final-cta p { color: var(--muted); margin-bottom: 28px; max-width: 36em; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; margin-bottom: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.82rem; }

/* ---------- Guide article pages ---------- */
.article { padding: 56px 0 72px; }
.article .wrap { max-width: 760px; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.article h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 14px; }
.article .byline { color: var(--muted); font-size: 0.88rem; margin-bottom: 32px; }
.article h2 { font-size: 1.45rem; font-weight: 800; margin: 40px 0 14px; letter-spacing: -0.01em; }
.article h3 { font-size: 1.12rem; font-weight: 800; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: #D4DCEC; }
.article ul, .article ol { margin: 0 0 16px 1.4em; color: #D4DCEC; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); }
.article .shot-inline { margin: 28px auto; max-width: 300px; }
.article .shot-inline img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.article .shot-inline figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.article .tip {
  background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 24px 0;
}
.article .tip p { margin: 0; }
.article-cta {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-raised) 100%);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 32px; margin: 44px 0 0; text-align: center;
}
.article-cta img { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px; }
.article-cta h2 { margin: 0 0 8px; font-size: 1.4rem; }
.article-cta p { color: var(--muted); margin-bottom: 20px; }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.1rem; margin: 0 0 16px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 700; text-decoration: none; }
.related a:hover { text-decoration: underline; }
