/* Examora website — the app's "Sticker" look: warm paper, ink outlines, a hard
   shadow straight down, Unbounded for headlines and a calm rounded face for
   reading. Colours are the playful palette in ExamoraSticker.swift. */

:root {
  --ink: #15171c;
  --ink-2: #4a4e57;
  --ink-3: #676c77;
  --paper: #fff7ea;
  --card: #ffffff;
  --hair: #ede4d3;
  --panda: #e8572a;
  --panda-deep: #b8401a;
  --panda-soft: #ffe1d6;
  --sun: #ffc736;
  --sun-soft: #fff0c2;
  --mint: #2bb7a3;
  --mint-deep: #1f7f72;
  --mint-soft: #d3f3ec;
  --grape: #7b6cf6;
  --grape-deep: #5b4bd8;
  --grape-soft: #e5e1ff;
  --edge: 2.5px solid var(--ink);
  --lift: 0 4px 0 var(--ink);
  --lift-lg: 0 6px 0 var(--ink);
  --r: 22px;
  --display: "Unbounded", ui-rounded, system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border: var(--edge); border-radius: 12px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--hair); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); }
.nav a:hover { background: var(--card); color: var(--ink); }
.nav .lang { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; margin-left: 6px; }
.nav .lang a { border-radius: 0; padding: 5px 9px; font-size: 0.85rem; color: var(--ink); }
.nav .lang a[aria-current] { background: var(--ink); color: var(--paper); }
.nav .get { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav .get:hover { background: var(--ink); color: var(--paper); opacity: 0.88; }
@media (max-width: 760px) { .nav .page { display: none; } }
@media (max-width: 420px) { .nav .get { display: none; } }

/* Buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 13px 20px; border-radius: 16px;
  border: var(--edge); box-shadow: var(--lift); background: var(--card);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 600; font-size: 0.72rem; opacity: 0.75; line-height: 1.1; }
.btn span { line-height: 1.15; }
.btn.primary { background: var(--sun); }
.note { margin-top: 14px; color: var(--ink-3); font-size: 0.92rem; }

/* Chips and eyebrows */
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-weight: 700; font-size: 0.9rem; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.chip:nth-child(4n+1) { background: var(--mint-soft); }
.chip:nth-child(4n+2) { background: var(--sun-soft); }
.chip:nth-child(4n+3) { background: var(--grape-soft); }
.chip:nth-child(4n+4) { background: var(--panda-soft); }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.stage { position: relative; display: flex; justify-content: center; }
.stage .blob { position: absolute; inset: 8% 4% 4% 8%; background: var(--mint-soft); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.stage .mora-badge { position: absolute; left: -4px; bottom: 40px; width: 112px; padding: 12px; background: var(--panda-soft); border: var(--edge); border-radius: 50%; box-shadow: var(--lift); transform: rotate(-6deg); }
.stage .bubble { position: absolute; right: -6px; top: 56px; max-width: 200px; background: var(--card); border: var(--edge); border-radius: 18px; box-shadow: var(--lift); padding: 10px 14px; font-weight: 700; font-size: 0.92rem; transform: rotate(3deg); }
@media (max-width: 880px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .stage .bubble { right: 0; }
}

/* Phone */
.phone { position: relative; width: min(300px, 72vw); aspect-ratio: 1242 / 2688; border: 9px solid var(--ink); border-radius: 46px; background: var(--ink); box-shadow: 0 10px 0 var(--ink); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--paper); }
.phone.sm { width: min(250px, 64vw); border-width: 8px; border-radius: 40px; }
.phone.sm img { border-radius: 32px; }

/* Sections */
section { padding: 72px 0; }
.head { max-width: 44em; margin-bottom: 36px; }
.head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 12px; }
.band { background: var(--card); border-top: var(--edge); border-bottom: var(--edge); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: var(--edge); border-radius: var(--r); box-shadow: var(--lift); padding: 24px; }
.band .step { background: var(--paper); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: var(--edge); font-family: var(--display); font-weight: 800; margin-bottom: 16px; background: var(--sun); }
.step:nth-child(2)::before { background: var(--mint); }
.step:nth-child(3)::before { background: var(--grape); color: #fff; }
.step p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.rows { display: grid; gap: 28px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: var(--edge); border-radius: 30px; box-shadow: var(--lift-lg); padding: 40px; overflow: hidden; }
.row:nth-child(4n+1) { background: var(--mint-soft); }
.row:nth-child(4n+2) { background: var(--sun-soft); }
.row:nth-child(4n+3) { background: var(--grape-soft); }
.row:nth-child(4n+4) { background: var(--panda-soft); }
.row:nth-child(even) .copy { order: 2; }
.row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.row .copy p { color: var(--ink-2); margin-top: 12px; font-size: 1.05rem; }
.row .tag { font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.row ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row li { padding-left: 32px; position: relative; font-weight: 600; }
.row li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2315171C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.row .shot { display: flex; justify-content: center; margin-bottom: -80px; }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .row:nth-child(even) .copy { order: 0; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: var(--edge); border-radius: var(--r); box-shadow: var(--lift); padding: 24px; }
.card p { color: var(--ink-2); margin-top: 8px; }
.card .ic { width: 44px; height: 44px; border-radius: 14px; border: var(--edge); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.quests { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 32px; padding: 44px; }
.quests p { color: #c3c7ce; margin-top: 12px; font-size: 1.08rem; }
.quests .mora { width: 180px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.quests .chips .chip { color: var(--ink); }
@media (max-width: 720px) { .quests { grid-template-columns: 1fr; padding: 30px 24px; } .quests .mora { width: 130px; } }

.exams { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.exam { display: block; text-decoration: none; background: var(--card); border: var(--edge); border-radius: var(--r); box-shadow: var(--lift); padding: 20px 22px; transition: transform 0.12s ease; }
.exam:hover { transform: translateY(-2px); }
.exam strong { font-family: var(--display); font-size: 1.4rem; display: block; }
.exam span { color: var(--ink-2); font-size: 0.95rem; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.about .card ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: var(--edge); border-radius: 18px; box-shadow: var(--lift); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); line-height: 1; background: var(--sun); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

.cta { text-align: center; background: var(--sun); border: var(--edge); border-radius: 36px; box-shadow: var(--lift-lg); padding: 56px 24px; position: relative; overflow: hidden; }
.cta .mora { width: 96px; margin: 0 auto 18px; }
.cta p { max-width: 36em; margin: 14px auto 0; color: var(--ink); font-size: 1.1rem; }
.cta .stores { justify-content: center; }
.cta .btn.primary { background: var(--card); }

/* Footer */
footer { padding: 48px 0 56px; color: var(--ink-3); font-size: 0.92rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; border-top: 1.5px solid var(--hair); padding-top: 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .fine { margin-top: 22px; max-width: 60em; }

/* "This page is in your language" hint */
.hint { display: none; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.95rem; }
.hint.on { display: block; }
.hint .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 44px; flex-wrap: wrap; }
.hint a { color: var(--sun); }
.hint button { background: none; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }

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