:root {
  --ink: #17283a;
  --muted: #5d6f80;
  --paper: #fbf8ef;
  --grid: #dde8ee;
  --margin: #f2a7a7;
  --blue: #3b95d0;
  --hand: #2c7db8;
  --teal: #e6f2f2;
  --hl: #ffd94a;
  --tape-b: rgba(120, 180, 215, .55);
  --tape-y: rgba(250, 218, 90, .6);
  --card: #fff;
  --text: #17283a;
  --surface: #fff;
  --teal2: #cfe7ee;
  --track: rgba(23, 40, 58, .08);
  --nav-bg: rgba(251, 248, 239, .85);
  --btn-bg: #17283a;
  --btn-fg: #fff;
  --line: #17283a;
  --cta-bg: #17283a;
  --shadow: 0 14px 36px rgba(23, 40, 58, .16), 0 2px 6px rgba(23, 40, 58, .08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0 auto 0 clamp(14px, 4vw, 56px);
  width: 2px; background: var(--margin); opacity: .7; z-index: 0; pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- type helpers ---------- */
h1, h2 { font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.hl {
  background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%);
  padding: 0 .12em; margin: 0 -.05em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; max-width: 30ch; margin-top: 16px; }
.hand { font-family: "Caveat", cursive; color: var(--hand); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: var(--nav-bg); border-bottom: 1px solid var(--grid); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { font-weight: 900; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(0, 150, 214, .4); }
.nav ul { display: flex; gap: 26px; list-style: none; font-weight: 700; color: var(--muted); }
.nav ul a:hover { color: var(--text); }
.nav-r { display: flex; gap: 10px; align-items: center; }
.lang { display: flex; background: var(--surface); border: 1.5px solid var(--grid); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: 800 .8rem "Nunito"; padding: 5px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button.on { background: var(--btn-bg); color: var(--btn-fg); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; padding: 13px 24px; border-radius: 14px; border: 2px solid var(--line); background: var(--btn-bg); color: var(--btn-fg); box-shadow: 4px 4px 0 var(--blue); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--blue); }
.btn.ghost { background: var(--surface); color: var(--text); }
.btn.sm { padding: 9px 16px; font-size: .9rem; box-shadow: 3px 3px 0 var(--blue); }

.burger { display: none; width: 42px; height: 42px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; box-shadow: 3px 3px 0 var(--blue); }
.burger span { width: 18px; height: 2.5px; background: var(--line); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.m-only { display: none; }

/* ---------- hero ---------- */
.hero { padding: 70px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- stage: tape + phone + floating cards ---------- */
.stage { position: relative; display: flex; justify-content: center; padding: 30px 0 30px; }
.tape { position: absolute; width: 110px; height: 32px; z-index: 3; }
.tape.b { background: var(--tape-b); top: 18px; left: 6%; transform: rotate(-32deg); }
.tape.y { background: var(--tape-y); top: 6px; right: 6%; transform: rotate(34deg); }
.note { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.note svg { width: 70px; height: 90px; stroke: var(--hand); fill: none; stroke-width: 2.4; stroke-linecap: round; }

.phone {
  width: 270px; aspect-ratio: 9 / 18.5; background: #fff; border: 7px solid #12202e; border-radius: 38px;
  position: relative; overflow: hidden; box-shadow: var(--shadow); z-index: 2; font-size: 11px;
}
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 76px; height: 22px; background: #000; border-radius: 99px; transform: translateX(-50%); z-index: 5; }
.status { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 8px 20px 0; font-weight: 800; font-size: 9px; }
.appbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; font-weight: 800; }
.appbar span.i { color: var(--blue); font-size: 14px; }
.appbar small { display: block; font-weight: 600; font-size: 8px; color: var(--muted); text-align: center; }
.avatar-blur { width: 54px; height: 54px; margin: 8px auto 4px; border-radius: 50%; background: #d4d4d4; filter: blur(5px); }
.pname { text-align: center; font-weight: 800; font-size: 10px; letter-spacing: .02em; }
.stats3 { display: flex; justify-content: space-around; padding: 8px 6px; text-align: center; font-weight: 800; font-size: 11px; }
.stats3 small { display: block; font-weight: 600; font-size: 8px; color: var(--muted); }
.panel { background: var(--teal); border-radius: 10px; margin: 6px 10px; padding: 8px 10px; }
.panel h6 { text-align: center; font-size: 10px; margin-bottom: 6px; }
.lesson { font-size: 9px; line-height: 1.35; display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 5px 0; border-top: 1px solid rgba(23,40,58,.08); }
.lesson b { grid-column: 1; font-size: 10px; }
.lesson span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
.lesson .r { text-align: right; }
.num { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 8px; font-weight: 800; margin-right: 3px; }

.float {
  position: absolute; z-index: 4; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 18px; font-size: 14px;
}
.float.teal { background: var(--teal); }
.float .row { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.float strong { font-weight: 800; }
.float small { color: var(--muted); font-weight: 600; }
.gpa-card { text-align: center; padding: 14px 26px; }
.gpa-card .star { font-size: 26px; color: var(--ink); line-height: 1; }
.gpa-card b { font-size: 1.5rem; display: block; }
.stars { color: var(--blue); letter-spacing: 3px; font-size: 22px; }

/* ---------- feature sections ---------- */
.feature { padding: 70px 0; scroll-margin-top: 66px; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature .copy .lead { max-width: 28ch; }
.points { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.points li { font-weight: 700; display: flex; gap: 10px; align-items: flex-start; }
.points li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--blue); display: grid; place-items: center; font-size: .8rem; font-weight: 900; margin-top: 2px; }

/* generic list rows used in phones */
.rate { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 9px; }
.rate .stars { font-size: 13px; letter-spacing: 1px; }
.rate small { display: block; font-size: 7px; font-weight: 800; text-align: right; color: var(--ink); }
.rev { display: flex; gap: 7px; padding: 6px 12px; font-size: 9px; }
.av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 8px; }
.av.red { background: #e32b45; }
.rev small { color: var(--muted); display: block; text-align: right; font-size: 7px; }
.tabs { display: flex; justify-content: space-around; font-size: 9px; font-weight: 700; border-bottom: 1px solid var(--grid); padding: 0 4px; }
.tabs span { padding: 7px 4px; }
.tabs .on { color: var(--blue); border-bottom: 2px solid var(--blue); }
.rank { display: flex; align-items: center; gap: 8px; background: var(--teal); border-radius: 8px; margin: 5px 10px; padding: 6px 8px; font-size: 9px; }
.rank .n { width: 18px; height: 18px; border-radius: 5px; background: #cfe7ee; display: grid; place-items: center; font-weight: 800; color: var(--blue); }
.rank.me { color: var(--blue); font-weight: 800; }
.rank.me .n { background: var(--blue); color: #fff; }
.rank div { flex: 1; } .rank small { display: block; font-size: 7px; color: var(--muted); font-weight: 600; }
.rank b { font-size: 10px; color: var(--ink); }
.post { padding: 9px 12px; border-bottom: 1px solid var(--grid); font-size: 9px; }
.post header { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.post small { color: var(--muted); font-size: 7px; display: block; }
.post .foot { margin-top: 6px; display: flex; gap: 10px; color: var(--muted); font-size: 8px; }
.fab { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(59,149,208,.5); }
.days { display: flex; justify-content: space-around; font-size: 8px; text-align: center; padding: 4px 0; border-bottom: 1px solid var(--grid); }
.days b { display: block; font-size: 10px; }
.days .on { color: var(--blue); border-bottom: 2px solid var(--blue); }
.file { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.file small { color: #2fa86a; font-weight: 700; display: block; }
.xbtn { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; }

/* ---------- gallery ---------- */
.gallery { scroll-margin-top: 66px; padding: 50px 0 30px; position: relative; z-index: 1; }
.gallery h2 { text-align: center; }
.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 20px 50px; scrollbar-width: thin; }
.shots img { flex: none; width: 230px; height: auto; aspect-ratio: 300 / 650; border-radius: 22px; box-shadow: var(--shadow); background: #fff; scroll-snap-align: center; transform: rotate(var(--r, 0deg)); transition: transform .25s; }
.shots img:nth-child(odd) { --r: -1.5deg; } .shots img:nth-child(even) { --r: 1.5deg; margin-top: 14px; }
.shots img:hover { transform: translateY(-8px) rotate(0); }

/* ---------- downloads counter ---------- */
.counter { padding: 60px 0 10px; }
.count-card { position: relative; background: var(--surface); border-radius: 28px; padding: 54px 28px 36px; text-align: center; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; transform: rotate(-.6deg); }
.count-card .tape.b { top: -14px; left: 8%; width: 100px; transform: rotate(-8deg); }
.count-card .tape.y { top: -14px; right: 8%; width: 100px; transform: rotate(7deg); }
.count-label { font-weight: 800; color: var(--muted); font-size: 1.1rem; }
.count-big { font-weight: 900; font-size: clamp(3.6rem, 13vw, 7rem); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.count-big .plus { color: var(--blue); margin-left: .04em; }
.count-big #cntTotal { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); padding: 0 .08em; }
.count-sub { font-weight: 700; font-size: 1.15rem; margin-top: 4px; }
.count-note { display: block; margin-top: 10px; transform: rotate(-2deg); }

/* ---------- cta ---------- */
.cta-sec { padding: 80px 0 90px; }
.cta-box { position: relative; background: var(--cta-bg); color: #fff; border-radius: 28px; padding: 60px 40px; text-align: center; box-shadow: var(--shadow); }
.cta-box h2 .hl { color: var(--ink); background: var(--hl); padding: 0 .25em; border-radius: 8px; }
.cta-box p { color: #b9c9d6; font-weight: 600; margin: 14px auto 30px; max-width: 42ch; }
.cta-box .hand { color: #8fd0f5; position: absolute; right: 7%; top: -20px; transform: rotate(5deg); background: var(--paper); color: var(--hand); padding: 4px 14px; border-radius: 8px; }
.cta-box .btn { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 4px 4px 0 var(--blue); }
.cta-box .btn.ghost { background: transparent; color: #fff; }
.cta-box .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { padding: 30px 0 50px; border-top: 1px solid var(--grid); color: var(--muted); font-weight: 600; background: var(--nav-bg); position: relative; z-index: 1; }
footer .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.social { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.social a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--grid); color: var(--text); font-weight: 800; transition: transform .15s, border-color .15s, color .15s; }
.social a:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social a[aria-label="Instagram"] svg { fill: none; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }
.float { animation: bob 5s ease-in-out infinite; }
.float:nth-of-type(2n) { animation-delay: -2.5s; }
@keyframes bob { 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav .wrap { position: static; }
  .burger { display: flex; }
  .nav .dl { display: none; }
  .nav ul { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--grid); padding: 8px 20px 16px; box-shadow: 0 14px 24px rgba(23,40,58,.1); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 4px; font-size: 1.1rem; color: var(--text); border-bottom: 1px dashed var(--grid); }
  .nav ul li:last-child a { border: 0; }
  .m-only { display: block; }
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .copy { order: 0; }
  .lead { max-width: none; }
  .float { transform: scale(.85); }
  .cta-box { padding: 50px 20px; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 18px; }
}

/* compact counter inside hero */
.count-card.compact { max-width: 440px; margin: 34px 0 0; padding: 26px 24px 22px; text-align: left; transform: rotate(-.8deg); border-radius: 22px; }
.count-card.compact .tape { width: 70px; height: 22px; top: -10px; }
.count-card.compact .count-label { font-size: .95rem; }
.count-card.compact .count-big { font-size: clamp(2.8rem, 9vw, 4.2rem); }
.count-card.compact .count-sub { font-size: 1rem; }

/* Outline icons (match the app's line-icon style) and drawn status bar */
.ic { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.appbar span.i { display: inline-flex; gap: 6px; align-items: center; }
.stats3 .ic { font-size: 14px; display: inline-block; }
.stars .ic { font-size: inherit; stroke-width: 1.6; }
.gpa-card .star .ic { font-size: 26px; }
.status { align-items: center; }
.sb { display: inline-flex; align-items: center; gap: 4px; }
.sb svg { display: block; }
.stars { display: inline-flex; align-items: center; }
.post .foot .ic, .float .ic { vertical-align: -0.18em; }
.appbar span.i .ic { display: block; font-size: 14px; }

