/* GoodBye Coaching — public site. Concept: "the answer sheet". Cream ruled paper, a red margin, fountain-pen violet ink
   (from the logo), the examiner's red pen, highlighter, rubber stamps, sticky notes, an OMR sheet — things every
   aspirant has held in their hands. */
@font-face { font-family: "Fraunces"; src: url("/vendor/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/vendor/fonts/caveat-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/vendor/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f7f2e6;
  --sheet: #fffdf6;
  --rule: rgba(64, 104, 170, .13);
  --ink: #1d1838;
  --ink-2: #4a4566;
  --muted: #7a7590;
  --violet: #5b2bd6;
  --red: #d6342b;
  --high: rgba(255, 224, 80, .78);
  --navy: #120d34;
  --line: rgba(29, 24, 56, .14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --mono: "Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0 calc(min(4vw, 56px) - 1px), rgba(224, 103, 90, .5) calc(min(4vw, 56px) - 1px) calc(min(4vw, 56px) + 1px), transparent calc(min(4vw, 56px) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--high); }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hand { font-family: var(--hand); font-weight: 600; }
.hl { background: linear-gradient(104deg, transparent .25em, var(--high) .35em, var(--high) 97%, transparent); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* hand-drawn red marks, drawn when they scroll into view */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark svg { position: absolute; pointer-events: none; overflow: visible; }
.mark .circle { left: -8%; top: -14%; width: 116%; height: 136%; }
.mark .under { left: -2%; bottom: -.3em; width: 104%; height: .45em; }
.mark path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) .3s; }
.in .mark path, .mark.in path { stroke-dashoffset: 0; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 60; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(247, 242, 230, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.logo img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(60, 30, 140, .6); }
.logo em { font-style: italic; color: var(--violet); font-weight: 600; }
.nav-links { display: flex; gap: 2px; margin-left: 12px; }
.nav-links a { padding: 7px 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: rgba(29, 24, 56, .06); }
.grow { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; font: 700 15px var(--sans); border-radius: 12px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--violet); color: #fff; border-color: var(--navy); box-shadow: 3px 3px 0 var(--navy); }
.btn.big { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.btn.primary.sm { box-shadow: 2px 2px 0 var(--navy); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; }
.mobile-menu { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 30px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: calc(100vh - 170px); }
.qhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 600 13px var(--mono); color: var(--ink-2); }
.qhead b { background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 6px; }
.qhead span { border: 1px dashed rgba(29, 24, 56, .4); padding: 3px 9px; border-radius: 6px; }
.hero h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(42px, 6vw, 80px); line-height: .99; letter-spacing: -.035em; margin: 20px 0 8px; font-variation-settings: "SOFT" 60, "WONK" 1; }
.hero h1 i { font-style: italic; font-weight: 500; color: var(--violet); }
.marks { font: 13.5px var(--mono); color: var(--muted); margin-bottom: 16px; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 540px; margin: 0 0 26px; }
.for-exams { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.for-exams a { font: 800 13px var(--mono); letter-spacing: .06em; padding: 6px 12px; border-radius: 8px; border: 2px solid currentColor; transform: rotate(var(--r, -2deg)); transition: transform .2s; }
.for-exams a:hover { transform: rotate(0) scale(1.06); }
.for-exams a:nth-child(1) { color: var(--red); --r: -3deg; } .for-exams a:nth-child(2) { color: var(--violet); --r: 2deg; }
.for-exams a:nth-child(3) { color: #0f7a8c; --r: -1deg; } .for-exams a:nth-child(4) { color: #a35c00; --r: 3deg; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 24px; font-family: var(--hand); font-size: 23px; color: var(--ink-2); }
.trust span::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* the desk (CSS 3D) */
.desk { position: relative; height: min(600px, 70vh); min-height: 480px; perspective: 1600px; }
.desk-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -8deg)); transition: transform .25s ease-out; }
.sheet { position: absolute; background: var(--sheet); border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(30, 20, 70, .45), 0 2px 4px rgba(30, 20, 70, .12); }
.omr { width: 290px; height: 390px; left: 2%; top: 13%; transform: translateZ(-20px) rotate(-8deg); padding: 18px 16px; background: #fff6f2; border: 1px solid #f2c9c0; }
.omr h4 { margin: 0 0 2px; font: 800 11px var(--mono); letter-spacing: .14em; color: #c2513f; }
.omr .omr-sub { font: 10px var(--mono); color: #b77a6d; margin-bottom: 10px; border-bottom: 1px solid #f2c9c0; padding-bottom: 8px; }
.omr-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; font: 700 11px var(--mono); color: #b05544; }
.omr-row span:first-child { width: 22px; text-align: right; }
.bub { width: 17px; height: 17px; border-radius: 50%; border: 1.4px solid #d9897a; display: grid; place-items: center; font-size: 8.5px; color: #c87363; }
.bub.on { background: var(--navy); border-color: var(--navy); color: transparent; animation: fillin .35s ease-out both; }
@keyframes fillin { from { transform: scale(.3); opacity: 0; } }
.booklet { width: 330px; height: 430px; right: 0; top: 4%; transform: translateZ(40px) rotate(4deg); padding: 24px 22px 22px 46px;
  background-image: linear-gradient(90deg, transparent 32px, rgba(224, 103, 90, .55) 32px 34px, transparent 34px), repeating-linear-gradient(180deg, transparent 0 25px, rgba(64, 104, 170, .16) 25px 26px); background-color: var(--sheet); }
.booklet .bh { font: 800 10.5px var(--mono); letter-spacing: .12em; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.booklet .q { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.32; margin-bottom: 6px; }
.booklet .w { font-family: var(--hand); font-size: 21px; line-height: 26px; color: var(--violet); white-space: pre-wrap; min-height: 210px; }
.booklet .w.typing::after { content: "|"; color: var(--violet); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.score { position: absolute; right: 16px; bottom: 12px; font-family: var(--hand); color: var(--red); font-size: 38px; line-height: .8; transform: rotate(-10deg) scale(.6); opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); text-align: center; }
.score.show { opacity: 1; transform: rotate(-10deg) scale(1); }
.score small { display: block; font-size: 19px; }
.stamp { display: inline-block; font: 800 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); border: 2.5px solid currentColor; border-radius: 8px; padding: 6px 12px; mix-blend-mode: multiply; white-space: nowrap;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2 1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2 1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.desk .stamp { position: absolute; left: 44%; top: 64%; transform: translateZ(80px) rotate(-14deg) scale(1.5); opacity: 0; transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); font-size: 15px; }
.desk .stamp.show { opacity: .9; transform: translateZ(80px) rotate(-14deg) scale(1); }
.sticky { position: absolute; width: 168px; padding: 14px 14px 16px; font-family: var(--hand); font-size: 21px; line-height: 1.12; color: #3a3215; background: #ffe066; box-shadow: 0 16px 24px -14px rgba(60, 40, 0, .5); }
.sticky::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .6); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.desk .sticky { left: -2%; bottom: 3%; transform: translateZ(70px) rotate(-5deg); }
.desk .sticky.pink { background: #ffb3c7; left: auto; right: 4%; bottom: -2%; transform: translateZ(90px) rotate(6deg); width: 150px; }
.logo-tile { position: absolute; width: 84px; height: 84px; border-radius: 20px; left: 26%; top: 2%; transform: translateZ(110px) rotate(-8deg); box-shadow: 0 24px 40px -14px rgba(50, 20, 140, .6); }
.pen { position: absolute; width: 230px; height: 14px; right: -5%; top: 56%; border-radius: 8px; transform: translateZ(130px) rotate(-32deg); background: linear-gradient(90deg, #1d1838 0 70%, #c9a227 70% 75%, #1d1838 75% 90%, #b7b7c4 90%); box-shadow: 0 20px 20px -10px rgba(0, 0, 0, .45); }
.pen::after { content: ""; position: absolute; right: -17px; top: 2px; border: 5px solid transparent; border-left: 17px solid #b7b7c4; }

/* ---------------------------------------------------------------- the exam picker (the four highlighted families) */
.picker { padding: 10px 0 30px; }
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.exam-card { position: relative; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 10px; padding: 20px 18px 18px; box-shadow: 5px 5px 0 var(--ink); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.exam-card:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 8px 8px 0 var(--ink); }
.exam-card .big { font-family: var(--serif); font-weight: 750; font-size: 40px; line-height: .95; letter-spacing: -.03em; color: var(--c); }
.exam-card .sub2 { font: 700 11.5px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.exam-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.exam-card .states { display: flex; flex-wrap: wrap; gap: 5px; }
.exam-card .states span { font: 700 11px var(--mono); padding: 2px 7px; border-radius: 5px; border: 1.5px solid var(--c); color: var(--c); }
.exam-card .go { margin-top: auto; font-family: var(--hand); font-size: 23px; color: var(--c); display: inline-flex; align-items: center; gap: 4px; }
.exam-card::after { content: attr(data-stamp); position: absolute; right: -8px; top: 14px; font: 800 10px var(--mono); letter-spacing: .14em; color: var(--c); border: 2px solid var(--c); padding: 3px 8px; border-radius: 6px; transform: rotate(14deg); opacity: .55; }
.exam-card.upsc { --c: #c22f26; } .exam-card.ssc { --c: #5b2bd6; } .exam-card.bank { --c: #0f7a8c; } .exam-card.pcs { --c: #a35c00; }
.also { margin-top: 18px; text-align: center; font-family: var(--hand); font-size: 22px; color: var(--ink-2); }
.also a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- sections */
section.block { padding: 100px 0; position: relative; }
.section-no { font: 800 13px var(--mono); letter-spacing: .14em; color: var(--red); text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.section-no::after { content: ""; width: 54px; height: 1.5px; background: var(--red); opacity: .6; }
h2.title { font-family: var(--serif); font-weight: 650; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin: 14px 0 14px; font-variation-settings: "SOFT" 50, "WONK" 1; }
h2.title i { font-style: italic; font-weight: 500; color: var(--violet); }
p.sub { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 0; }
.head { margin-bottom: 50px; }
.head.center { text-align: center; } .head.center p.sub { margin: 0 auto; }
.head.center .section-no::before { content: ""; width: 54px; height: 1.5px; background: var(--red); opacity: .6; }

/* four kinds of books: folders with tabs */
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kind { position: relative; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 0 14px 14px 14px; padding: 24px 20px 20px; box-shadow: 5px 5px 0 var(--ink); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; min-height: 330px; margin-top: 26px; }
.kind:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--ink); }
.kind .tab-label { position: absolute; top: -27px; left: -1.5px; padding: 3px 14px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; font: 800 11.5px var(--mono); letter-spacing: .08em; background: var(--k); }
.kind:nth-child(1) { --k: #ffe066; } .kind:nth-child(2) { --k: #b9f0ff; } .kind:nth-child(3) { --k: #ffc4d6; } .kind:nth-child(4) { --k: #d4c6ff; }
.kind h3 { font-family: var(--serif); font-size: 23px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.15; }
.kind p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.kind .mini { margin-top: auto; padding: 10px 12px; border-radius: 6px; background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(64, 104, 170, .15) 21px 22px), #fffef9; border: 1px solid var(--line); }
.mini .w { font-family: var(--hand); font-size: 19px; color: var(--violet); line-height: 22px; }
.mini .row { display: flex; justify-content: space-between; gap: 8px; font: 11.5px/22px var(--mono); color: var(--ink-2); }
.mini .row b { color: var(--ink); font: 600 13px/22px var(--sans); }
.mini .tick { color: var(--red); font-family: var(--hand); font-size: 22px; line-height: 1; }

/* samples: a bookshelf */
.shelf { position: relative; }
.shelf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.sample { display: flex; flex-direction: column; gap: 16px; perspective: 900px; }
.book3d { position: relative; width: 62%; max-width: 200px; margin: 0 auto; aspect-ratio: 260 / 368; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(3deg); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.sample:hover .book3d { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px) scale(1.04); }
.book3d .front { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: 0 22px 30px -12px rgba(30, 20, 60, .6); transform: translateZ(12px); background: #fff; }
.book3d .front img { width: 100%; height: 100%; object-fit: cover; }
.book3d .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 9%, transparent 93%, rgba(255, 255, 255, .2)); }
.book3d .spine { position: absolute; top: 0; bottom: 0; left: 0; width: 24px; transform-origin: left center; transform: rotateY(-90deg) translateX(-12px); background: linear-gradient(90deg, #2b1474, #4b2bb0); }
.book3d .pages { position: absolute; top: 3px; bottom: 3px; right: 0; width: 22px; transform-origin: right center; transform: rotateY(90deg) translateX(11px); background: repeating-linear-gradient(90deg, #f6f1e2 0 2px, #ddd4bd 2px 3px); }
.shelf-board { grid-column: 1 / -1; height: 18px; margin: -26px -12px 4px; background: linear-gradient(180deg, #c49566, #8a5f36); border-radius: 3px; box-shadow: 0 16px 24px -12px rgba(60, 30, 10, .55); }
.sample-card { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 10px; padding: 15px 16px; box-shadow: 4px 4px 0 var(--ink); position: relative; flex: 1; display: flex; flex-direction: column; }
.sample-card .exam { font: 800 11px var(--mono); letter-spacing: .1em; color: var(--red); text-transform: uppercase; }
.sample-card h3 { font-family: var(--serif); font-size: 19px; margin: 4px 0 6px; letter-spacing: -.015em; line-height: 1.2; }
.sample-card p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.s-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 12px; }
.s-meta span { font: 700 11px var(--mono); padding: 2px 8px; border-radius: 5px; background: var(--paper); border: 1px solid var(--line); }
.s-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.free-tag { position: absolute; top: -15px; right: 12px; font-family: var(--hand); font-size: 22px; color: #fff; background: var(--red); padding: 0 10px; border-radius: 6px; transform: rotate(4deg); box-shadow: 0 6px 12px -6px rgba(214, 52, 43, .7); }

/* how it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.instructions { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 24px 24px 14px; box-shadow: 6px 6px 0 var(--ink); }
.instructions h3 { font: 800 13px var(--mono); letter-spacing: .16em; margin: 0 0 10px; text-align: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 12px; }
.instructions ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.instructions li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 8px; border-bottom: 1px dashed rgba(29, 24, 56, .25); cursor: pointer; transition: background .3s; }
.instructions li:last-child { border-bottom: 0; }
.instructions li::before { content: counter(s); width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--mono); }
.instructions li.active { background: var(--high); }
.instructions li.active::before { background: var(--ink); color: #fff; }
.instructions li h4 { margin: 4px 0 2px; font-family: var(--serif); font-size: 19px; }
.instructions li p { margin: 0; color: var(--ink-2); font-size: 15px; }
.phone { width: min(370px, 100%); margin: 0 auto; border-radius: 42px; padding: 11px; background: #16122e; box-shadow: 0 40px 60px -30px rgba(20, 10, 60, .7), inset 0 0 0 2px #2c2650; transform: rotate(2.5deg); }
.screen { border-radius: 32px; overflow: hidden; background: #111027; color: #ecebfa; min-height: 540px; font-size: 13.5px; }
.screen-top { display: flex; align-items: center; gap: 9px; padding: 16px 16px 10px; border-bottom: 1px solid #252251; font-weight: 700; }
.screen-top img { width: 26px; height: 26px; border-radius: 7px; }
.chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.c-file { align-self: flex-end; border: 1px solid #353172; background: #18163a; padding: 6px 10px; border-radius: 10px; font-size: 12px; }
.c-user { align-self: flex-end; max-width: 86%; background: #201d4a; border: 1px solid #353172; padding: 9px 12px; border-radius: 14px 14px 4px 14px; }
.c-bot { display: flex; gap: 8px; color: #c7c4e8; }
.c-bot img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.c-card { border: 1px solid #353172; border-radius: 14px; padding: 12px; background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(24, 22, 58, .6)); }
.c-card b { display: block; } .c-card small { color: #9894c2; }
.c-stages { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.c-stages li { color: #6f6b9a; display: flex; gap: 7px; align-items: center; }
.c-stages li.done { color: #c7c4e8; } .c-stages li.done i { color: #4ade9b; }
.c-stages li.live { color: #fff; }
.c-stages i { width: 14px; font-style: normal; text-align: center; }
.spin { width: 12px; height: 12px; border: 2px solid #353172; border-top-color: #22d3ee; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.c-pdf { display: flex; gap: 10px; align-items: center; border: 1px solid #353172; border-radius: 12px; padding: 9px; background: #0d0c1f; }
.c-pdf .pdf { width: 30px; height: 38px; border-radius: 5px; background: #fff; color: #c2410c; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.d-hide { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.d-show { opacity: 1; transform: none; }
.typing::after { content: "▍"; color: #22d3ee; animation: blink 1s steps(2) infinite; }

/* guides: sticky notes on a pin board */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tab { font: 700 14.5px var(--sans); padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .15s; }
.tab:hover { transform: translateY(-2px); }
.tab.active { background: var(--ink); color: #fff; }
.board { border-radius: 14px; padding: 40px 30px 34px; background: #cfae84 radial-gradient(rgba(110, 70, 30, .2) 1px, transparent 1.5px) 0 0 / 8px 8px; border: 10px solid #8a5f36; box-shadow: inset 0 0 40px rgba(60, 30, 10, .35), 0 24px 40px -20px rgba(60, 30, 10, .5); }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide { position: relative; padding: 26px 20px 20px; background: var(--note); box-shadow: 0 18px 26px -16px rgba(40, 20, 0, .6), 0 2px 3px rgba(40, 20, 0, .15); transform: rotate(var(--r)); display: flex; flex-direction: column; gap: 10px; animation: pinned .5s both; }
.guide:nth-child(1) { --note: #fff3a6; --r: -1.8deg; } .guide:nth-child(2) { --note: #c9f2ff; --r: 1.4deg; animation-delay: .07s; } .guide:nth-child(3) { --note: #ffd6e2; --r: -.8deg; animation-delay: .14s; }
.guide::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #ff7b6b, #b5261c); box-shadow: 0 3px 4px rgba(0, 0, 0, .35); }
@keyframes pinned { from { opacity: 0; transform: translateY(-14px) rotate(var(--r)); } }
.guide .g-k { font: 800 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(29, 24, 56, .6); }
.guide h3 { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.guide ol { margin: 0; padding-left: 20px; font-family: var(--hand); font-size: 21px; line-height: 1.2; color: #2a2550; }
.guide li { margin: 3px 0; }
.prompt { margin-top: auto; background: rgba(255, 255, 255, .55); border: 1px dashed rgba(29, 24, 56, .35); border-radius: 6px; padding: 9px 10px; font-size: 13px; color: var(--ink-2); }
.prompt small { display: block; font: 800 10.5px var(--mono); letter-spacing: .1em; color: var(--red); margin-bottom: 2px; }
.guide .try { align-self: flex-start; }
.more-link { display: flex; justify-content: center; margin-top: 28px; }
.more-link a { font-family: var(--hand); font-size: 26px; color: var(--violet); display: inline-flex; gap: 6px; align-items: center; }
.more-link a:hover { text-decoration: underline; }

/* inside every book */
.inside { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.page-demo { position: relative; background: var(--sheet); padding: 32px 28px 28px 66px; border-radius: 3px; box-shadow: 0 30px 50px -24px rgba(30, 20, 70, .45), 0 2px 4px rgba(30, 20, 70, .1); transform: rotate(-1.5deg);
  background-image: linear-gradient(90deg, transparent 46px, rgba(224, 103, 90, .6) 46px 48px, transparent 48px); }
.page-demo .ph { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #2a1c6b; margin-bottom: 12px; }
.page-demo .meta { display: flex; justify-content: space-between; font: 700 11px var(--mono); color: var(--muted); margin-bottom: 4px; }
.page-demo .box { border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; font-size: 14.5px; }
.page-demo .bq { background: #f1effd; border: 1px solid #ddd6fe; }
.page-demo .ba { border: 1px solid #e7e5ee; background: #fff; }
.page-demo .bt { background: #ecfbf6; border: 1px solid #b9ecd9; }
.page-demo .bn { background: #fff6e5; border: 1px solid #f3d9a1; }
.page-demo .lbl { font: 800 10px var(--mono); letter-spacing: .1em; display: block; margin-bottom: 3px; color: #6b62b8; }
.page-demo .bt .lbl { color: #138a63; } .page-demo .bn .lbl { color: #a86a00; }
.page-demo .margin-note { position: absolute; left: 4px; width: 40px; text-align: center; font-family: var(--hand); color: var(--red); font-size: 22px; line-height: 1; transform: rotate(-8deg); }
.features { display: flex; flex-direction: column; gap: 20px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.feature .f-ic { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); background: var(--f); }
.feature h3 { margin: 2px 0 2px; font-family: var(--serif); font-size: 20px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* compare: two marked answer sheets */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.sheet-card { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 26px 24px 18px; position: relative; box-shadow: 6px 6px 0 var(--ink); }
.sheet-card.them { transform: rotate(-1deg); background: #faf8f1; }
.sheet-card.us { transform: rotate(1deg); }
.sheet-card .who { font: 800 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet-card h3 { margin: 4px 0 14px; font-family: var(--serif); font-size: 23px; }
.sheet-card ul { list-style: none; padding: 0; margin: 0; }
.sheet-card li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(29, 24, 56, .2); font-size: 15.5px; }
.sheet-card li:last-child { border-bottom: 0; }
.sheet-card li .m { font-family: var(--hand); font-size: 27px; line-height: .9; color: var(--red); }
.sheet-card .total { position: absolute; top: 14px; right: 20px; font-family: var(--hand); color: var(--red); font-size: 44px; transform: rotate(-8deg); line-height: .85; text-align: center; }
.sheet-card .total small { display: block; font-size: 18px; }
.sheet-card.them .total { color: #a08680; }

/* pricing: passbook + ledger */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
.passbook { color: #fff; border-radius: 10px 18px 18px 10px; padding: 30px 30px 30px 46px; position: relative; box-shadow: 0 30px 50px -24px rgba(10, 30, 70, .6); background: #183a6b linear-gradient(90deg, rgba(0, 0, 0, .28) 0 16px, transparent 16px); }
.passbook .bank { font: 800 11px var(--mono); letter-spacing: .2em; opacity: .7; }
.passbook h3 { font-family: var(--serif); font-size: 32px; margin: 6px 0 6px; letter-spacing: -.02em; }
.passbook p { margin: 0 0 16px; opacity: .85; }
.passbook ul { margin: 0 0 24px; padding: 0; list-style: none; }
.passbook li { padding: 5px 0; display: flex; gap: 10px; }
.passbook li::before { content: "✓"; color: #ffe066; font-weight: 800; }
.passbook .btn { background: #ffe066; color: var(--ink); border-color: var(--ink); }
.ledger { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.ledger .lh { display: grid; grid-template-columns: 1fr auto; padding: 12px 20px; background: var(--ink); color: #fff; font: 800 12px var(--mono); letter-spacing: .1em; }
.ledger .lr { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 15px 20px; border-top: 1px dashed rgba(29, 24, 56, .22); align-items: center; }
.ledger .lr b { font-family: var(--serif); font-size: 18px; display: block; }
.ledger .lr span { color: var(--muted); font-size: 14px; }
.ledger .amt { font: 800 19px var(--mono); white-space: nowrap; }
.ledger .amt.h { font-family: var(--hand); font-size: 25px; color: var(--red); font-weight: 600; }

/* faq: a question paper */
.qpaper { max-width: 880px; margin: 0 auto; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 6px 30px; box-shadow: 6px 6px 0 var(--ink); }
.qpaper details { border-bottom: 1px dashed rgba(29, 24, 56, .25); }
.qpaper details:last-child { border-bottom: 0; }
.qpaper summary { list-style: none; cursor: pointer; padding: 18px 0; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.qpaper summary::-webkit-details-marker { display: none; }
.qpaper summary .qn { font: 800 14px var(--mono); color: var(--red); }
.qpaper summary .mk { font: 600 12px var(--mono); color: var(--muted); }
.qpaper details p { margin: 0 0 18px 54px; font-family: var(--hand); font-size: 22.5px; line-height: 1.28; color: var(--violet); }

/* final + footer */
.final { position: relative; text-align: center; padding: 70px 24px; background: var(--navy); color: #fff; border-radius: 10px; box-shadow: 10px 10px 0 var(--violet); overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .05) 31px 32px); }
.final h2 { position: relative; font-family: var(--serif); font-weight: 650; font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.04; }
.final h2 i { color: #ffe066; font-weight: 500; }
.final p { position: relative; color: #c9c4ef; margin: 0 auto 28px; max-width: 560px; font-size: 18px; }
.final .btn { position: relative; background: #ffe066; color: var(--ink); border-color: #fff; box-shadow: 4px 4px 0 #fff; }
.final .hand { position: relative; display: block; margin-top: 18px; color: #ffb3c7; font-size: 24px; }
footer { padding: 70px 0 40px; margin-top: 100px; border-top: 1.5px dashed rgba(29, 24, 56, .3); color: var(--ink-2); font-size: 14.5px; position: relative; }
footer .end { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--paper); padding: 0 16px; font: 800 13px var(--mono); letter-spacing: .3em; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
footer h4 { margin: 0 0 12px; font: 800 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
footer a { display: block; padding: 4px 0; } footer a:hover { color: var(--violet); }
footer .legal { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* exam & legal pages */
.page-hero { padding: 46px 0 26px; text-align: center; }
.page-hero h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -.03em; margin: 16px auto 14px; max-width: 920px; }
.page-hero p { color: var(--ink-2); max-width: 720px; margin: 0 auto 26px; font-size: 18.5px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px var(--mono); padding: 5px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--sheet); }
.badge b { color: var(--red); }
.chip { display: inline-flex; padding: 5px 12px; border-radius: 8px; border: 1.5px dashed rgba(29, 24, 56, .4); font-weight: 600; font-size: 14px; background: rgba(255, 253, 246, .7); }
.chip:hover { border-style: solid; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panel { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px; box-shadow: 4px 4px 0 var(--ink); }
.panel h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 21px; display: flex; gap: 8px; align-items: center; }
.panel li, .panel p { color: var(--ink-2); font-size: 15px; }
.panel ul { margin: 0; padding-left: 18px; }
.prose { max-width: 800px; margin: 0 auto; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 30px 34px; box-shadow: 6px 6px 0 var(--ink); color: var(--ink-2); }
.prose h2 { font-family: var(--serif); color: var(--ink); font-size: 24px; margin: 26px 0 8px; }
.prose a { color: var(--violet); text-decoration: underline; }
.prose .panel { box-shadow: none; margin: 14px 0; }
.crumbs { font: 600 13px var(--mono); color: var(--muted); } .crumbs a:hover { color: var(--violet); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .desk { height: 480px; min-height: 0; }
  .kinds, .picker-grid { grid-template-columns: repeat(2, 1fr); }
  .how, .inside, .pricing, .compare { grid-template-columns: 1fr; }
  .shelf-row { grid-template-columns: repeat(2, 1fr); }
  .guides, .cards3 { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu.open { display: flex; flex-direction: column; padding: 6px 20px 16px; background: var(--paper); border-bottom: 1.5px dashed var(--line); }
  .mobile-menu a { padding: 10px 4px; font-weight: 600; }
}
@media (max-width: 640px) {
  body { background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); }
  section.block { padding: 72px 0; }
  .kinds, .guides, .cards3, .shelf-row, .picker-grid { grid-template-columns: 1fr; }
  .desk { height: 400px; transform: scale(.8); transform-origin: top center; margin-bottom: -70px; }
  .omr { left: -6%; } .booklet { right: -8%; }
  .nav .btn.hide-sm { display: none; }
  .board { padding: 30px 16px; border-width: 7px; }
  .qpaper { padding: 4px 16px; } .qpaper summary { grid-template-columns: 34px 1fr; } .qpaper summary .mk { display: none; } .qpaper details p { margin-left: 44px; }
  footer .cols { grid-template-columns: 1fr; }
  .prose { padding: 22px 18px; }
  .page-demo { padding-left: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mark path { stroke-dashoffset: 0; }
}

/* exam stamps strip */
.stamps { padding: 22px 0; border-block: 1.5px dashed rgba(29, 24, 56, .25); overflow: hidden; background: rgba(255, 253, 246, .55); }
.stamps .track { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; width: max-content; animation: slide 55s linear infinite; padding: 6px 0; }
.stamps:hover .track { animation-play-state: paused; }
.stamps .stamp { flex: none; font-size: 13px; opacity: .8; }
.stamps .stamp:nth-child(3n) { color: var(--violet); transform: rotate(3deg); }
.stamps .stamp:nth-child(3n+1) { transform: rotate(-4deg); }
.stamps .stamp:nth-child(3n+2) { color: #127a8c; transform: rotate(1.5deg); }
@keyframes slide { to { transform: translateX(-50%); } }
.logo { white-space: nowrap; }
@media (max-width: 640px) {
  .logo { font-size: 17px; gap: 8px; } .logo img { width: 32px; height: 32px; }
  .nav .wrap { gap: 10px; }
  .logo-tile { display: none; }
  .desk { margin-bottom: -90px; }
}

/* invite banner (opened from a friend's link) */
.invite-banner { position: relative; z-index: 70; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 44px 10px 16px; background: #ffe066; border-bottom: 1.5px solid var(--ink); font-size: 15px; text-align: center; }
.invite-banner .gift { font-size: 22px; }
.invite-banner .x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* never let decorations widen the page (iOS Safari ignores overflow-x on body alone) */
html, body { overflow-x: clip; }
.hero, .picker, section.block, .stamps { overflow-x: clip; }
@media (max-width: 1060px) and (min-width: 641px) {
  .shelf-row { gap: 30px 22px; }
  .sample-card h3 { font-size: 18px; }
  .s-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .book3d { width: 54%; }
  .s-actions .btn { flex: 1 1 100%; }
  .sample-card { padding: 14px; }
}
