/* Ceteris website: a notebook on the desk. Same world as the app (Security Print). */
:root {
  --desk: #DCE0E8; --paper: #FFFFFF; --surface: #F8F9FB; --surface-2: #EFF1F5;
  --line: #CBD1DC; --line-2: #DDE1E8; --text: #11152A; --text-2: #4A5269; --text-3: #646C82;
  --ink-1: #161B38; --ink-2: #1F2547; --on-ink: #EEF0F7;
  --accent: #C2352B;
  --f: 'Mona Sans', -apple-system, 'Helvetica Neue', sans-serif; --mono: 'Martian Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sh-page: 0 1px 2px rgba(14, 18, 40, .12), 0 22px 50px -24px rgba(14, 18, 40, .38);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--desk) var(--desk-field, none) center top / 900px auto; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2.5px solid #3E64C8; outline-offset: 3px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: .86em; }

/* ---------- the two bars (the app's own navigation, working) ---------- */
.bars { position: sticky; top: 0; z-index: 20; }
.navrow, .toolrow { display: grid; align-items: center; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.navrow { grid-template-columns: auto auto 1fr auto; gap: 22px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--line-2); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand b { font-weight: 900; font-stretch: 125%; font-size: 25px; letter-spacing: -.04em; line-height: 1; }
.brand-mark { width: 30px; height: 30px; background: var(--brand-mark) center / contain no-repeat; }
.lock { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 560; color: var(--text-2); padding-left: 18px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; justify-self: center; }
.tabs a { padding: 8px 13px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-2); transition: background-color .15s, color .15s; }
.tabs a:hover, .tabs a[aria-current="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.toolrow { grid-template-columns: 1fr auto 1fr; height: 54px; padding: 0 28px; box-shadow: 0 1px 0 var(--line-2), 0 10px 20px -16px rgba(14, 18, 40, .45); overflow: hidden; transition: height .45s var(--ease), opacity .3s; }
.bars.compact .toolrow { height: 0; opacity: 0; pointer-events: none; }
.tr-l { justify-self: start; }
.tools { display: flex; gap: 4px; }
.tool, .icon { position: relative; width: 48px; height: 42px; border: 0; border-radius: 12px; background: none; display: grid; place-items: center; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s, transform .12s var(--ease); }
.icon { width: 42px; }
.tool:hover, .icon:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.tool:active, .icon:active { transform: scale(.92); }
.tool[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tool .dot { position: absolute; bottom: 4px; left: 50%; width: 16px; height: 3.5px; margin-left: -8px; border-radius: 2px; background: var(--tc, transparent); }
.quick { display: flex; align-items: center; gap: 8px; justify-self: end; }
.hint { font-weight: 540; font-stretch: 92%; font-size: 13.5px; color: var(--text-3); margin-right: 6px; }
.fav { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .15s; }
.fav[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 12px; border: 0; text-decoration: none; font-weight: 660; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color .18s, box-shadow .18s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16.5px; border-radius: 14px; }
.btn-primary { background: var(--ink-1); color: var(--on-ink); box-shadow: 0 1px 2px rgba(14, 18, 40, .2), 0 8px 18px -10px rgba(14, 18, 40, .6); }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--paper); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--text-3); }

/* ---------- pages ---------- */
.desk { position: relative; display: grid; gap: 46px; justify-items: center; padding: 46px 24px 70px; }
.desk::before { content: ''; position: absolute; left: calc(50% - 540px - 34px); top: 46px; bottom: 70px; width: 22px; background: var(--thread) center / 22px 100% no-repeat; opacity: .5; pointer-events: none; }
@media (max-width: 1190px) { .desk::before { display: none; } }
.page { position: relative; width: min(1080px, 100%); background: var(--paper); box-shadow: var(--sh-page); padding: 40px clamp(24px, 6vw, 76px) 64px; overflow: hidden; }
.phead { position: relative; z-index: 3; display: flex; align-items: baseline; gap: 14px; padding-right: 140px; margin-bottom: clamp(30px, 5vw, 54px); min-height: 52px; }
.phead b { font-weight: 860; font-stretch: 125%; font-size: 22px; letter-spacing: -.02em; color: var(--pink, var(--accent)); white-space: nowrap; }
.phead span { color: var(--text-3); font-size: 15px; }
.pseal { position: absolute; right: 0; top: -8px; display: flex; align-items: center; gap: 10px; }
.pseal .ring { position: relative; width: 66px; height: 66px; display: grid; place-items: center; background: var(--seal) center / contain no-repeat; }
.pseal .ring::before { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); }
.pseal i { position: relative; font-style: normal; font-weight: 860; font-stretch: 112%; font-size: 16px; color: var(--pink); }
.pseal small { font-weight: 560; font-stretch: 92%; font-size: 14px; color: var(--text-3); white-space: nowrap; }
h1, h2 { font-weight: 880; font-stretch: 118%; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: .98; max-width: 17ch; margin-bottom: 18px; }
.sub { max-width: 62ch; color: var(--text-2); font-size: 18px; margin: 0 0 34px; text-wrap: pretty; }

/* page 1 */
.hero { min-height: max(560px, min(740px, calc(100vh - 250px))); }
.hero::after { content: ''; position: absolute; right: -300px; bottom: -330px; width: 600px; height: 600px; background: var(--wm) center / contain no-repeat; opacity: .12; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 540px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: .95; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.5; color: var(--text-2); margin: 24px 0 30px; max-width: 46ch; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.margin-note { position: absolute; z-index: 2; right: clamp(24px, 6vw, 76px); bottom: 30px; margin: 0; max-width: 260px; text-align: right; font-weight: 540; font-stretch: 92%; font-size: 14px; color: var(--text-3); pointer-events: none; }
.foil-edge { position: absolute; z-index: 2; left: clamp(10px, 2.4vw, 30px); top: 0; bottom: 0; width: 22px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 22px, transparent 5px, rgba(255, 255, 255, .85) 5.5px, transparent 6.5px) 0 0 / 22px 44px repeat-y,
    linear-gradient(180deg, transparent 15%, rgba(255, 255, 255, .9) 40%, rgba(255, 190, 250, .6) 48%, rgba(150, 255, 230, .55) 56%, transparent 80%) 0 var(--sheen, 30%) / 100% 260% no-repeat,
    linear-gradient(180deg, #C9D6FF, #F4C9F0 20%, #C8F2E4 40%, #FFF1C2 60%, #D2C9FF 80%, #BFEFFF);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .9), inset -1px 0 0 rgba(255, 255, 255, .9); opacity: .9; }
.ink-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: none; cursor: crosshair; }

/* page 2: ruled paper */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 56px; margin-top: 28px; }
.feat { padding: 16px 0 20px; border-top: 1px solid var(--line-2); }
.feat b { display: block; font-weight: 760; font-stretch: 108%; font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--text-2); font-size: 16px; text-wrap: pretty; }
.snap { width: 240px; height: 64px; margin-top: 10px; }
.snap path { fill: none; stroke: var(--pink); stroke-width: 3.2; stroke-linecap: round; }
.snap .straight { opacity: 0; }
.snap.play .wobbly { animation: wob 1.6s var(--ease) both; }
.snap.play .straight { animation: str .5s .9s var(--ease) both; }
@keyframes wob { 0% { stroke-dasharray: 300; stroke-dashoffset: 300; } 55% { stroke-dashoffset: 0; opacity: 1; } 70%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes str { from { opacity: 0; } to { opacity: 1; } }

/* page 3: the syllabus */
.syl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; align-items: start; }
.units { display: grid; gap: 22px; }
.unit-h { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 6px; }
.unit-h b { font-weight: 900; font-stretch: 125%; font-size: 40px; line-height: .8; letter-spacing: -.05em; color: var(--uc); }
.unit-h span { font-weight: 720; font-stretch: 106%; font-size: 15px; line-height: 1.1; }
.sublist { display: flex; flex-wrap: wrap; gap: 4px; }
.sublist button { text-align: left; border: 0; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 8px; cursor: pointer; transition: background-color .15s, color .15s; }
.sublist button b { font-family: var(--mono); font-stretch: 87.5%; font-weight: 600; font-size: 11px; color: var(--uc); margin-right: 5px; }
.sublist button:hover { color: var(--text); }
.sublist button[aria-pressed="true"] { background: color-mix(in srgb, var(--uc) 14%, var(--paper)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--uc); }
.qcard { position: sticky; top: 140px; background: var(--paper); border-radius: 18px; padding: 20px 22px; box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -26px rgba(14, 18, 40, .45); }
.qtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.qtop .num { font-weight: 900; font-stretch: 125%; font-size: 28px; letter-spacing: -.04em; color: var(--uc); line-height: 1; }
.qtop .tt { font-weight: 760; font-stretch: 106%; font-size: 15.5px; line-height: 1.15; flex: 1; min-width: 160px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-2); }
.seg button { border: 0; background: none; font: inherit; font-weight: 640; font-size: 13.5px; color: var(--text-2); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--text); box-shadow: 0 1px 2px rgba(14, 18, 40, .14), 0 2px 6px -2px rgba(14, 18, 40, .14); }
.keybtn { margin-left: auto; border: 0; font: inherit; font-weight: 650; font-size: 13.5px; padding: 8px 12px; border-radius: 9px; cursor: pointer; background: var(--surface-2); color: var(--text); }
.keybtn[aria-pressed="true"] { background: #1C7553; color: #fff; }
.qcase { font-weight: 780; font-stretch: 106%; font-size: 18px; margin: 4px 0 8px; }
.qpara { display: grid; grid-template-columns: 26px 1fr; gap: 4px; font-size: 14.5px; margin: 0 0 8px; color: #23283C; }
.qpara small { font-family: var(--mono); font-stretch: 87.5%; color: var(--text-3); padding-top: 2px; }
.qpart { display: grid; grid-template-columns: 52px 1fr auto; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.qpart .mk { font-family: var(--mono); font-stretch: 87.5%; font-weight: 650; font-size: 12px; padding-top: 2px; }
.qkey { grid-column: 2 / -1; margin-top: 6px; padding: 9px 12px; border-radius: 10px; background: #EEF6F1; color: #133D2D; font-size: 13.5px; }
.qkey ul { margin: 0; padding-left: 18px; }
.qtotal { display: flex; justify-content: space-between; border-top: 2px solid var(--text); padding-top: 9px; margin-top: 4px; font-weight: 760; }
.qtotal .mono { font-size: 13px; }

/* page 4: issue a notebook */
.issue { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 52px; align-items: center; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > span { font-weight: 640; font-size: 14px; color: var(--text-2); }
.input { height: 54px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-size: 22px; font-weight: 700; font-stretch: 112%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pink); }
.inks { display: flex; gap: 9px; flex-wrap: wrap; }
.inks button { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--c); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.inks button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); transform: scale(1.04); }
.segs { display: flex; gap: 6px; flex-wrap: wrap; }
.segs button { border: 0; font: inherit; font-weight: 620; font-size: 14px; padding: 9px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.segs button[aria-pressed="true"] { background: var(--ink-1); color: var(--on-ink); }
.small { color: var(--text-3); font-size: 14.5px; max-width: 52ch; margin: 6px 0 0; }
.issue-cover { justify-self: center; width: 100%; max-width: 360px; }

/* covers (same as the app) */
.cover { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 6px 16px 16px 6px; overflow: hidden; container-type: inline-size; box-shadow: 0 1px 1px rgba(14, 18, 40, .22), 0 30px 50px -22px rgba(14, 18, 40, .55); transform: rotate(2.5deg); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .c-ser { position: absolute; left: 19%; top: 6.1%; font-family: var(--mono); font-stretch: 87.5%; font-weight: 520; font-size: 3.4cqi; color: var(--ink); }
.cover .c-lv { position: absolute; left: 88%; top: 11%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 9.6cqi; height: 9.6cqi; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 .7cqi rgba(255, 255, 255, .55); font-weight: 900; font-stretch: 125%; font-size: 3.6cqi; color: #FBFAF6; }
.cover .c-name { position: absolute; left: 19%; right: 5%; top: 88.6%; color: #FBFAF6; }
.cover .c-eng { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.cover .c-name i { display: block; font-style: normal; font-weight: 560; font-stretch: 108%; font-size: 5.6cqi; line-height: 1.1; transform: translateY(-50%); }
.cover .c-ser2 { position: absolute; right: 6.5%; bottom: 3.8%; font-family: var(--mono); font-stretch: 87.5%; font-size: 3.1cqi; color: #FBFAF6; opacity: .72; }
.cover .foil { position: absolute; left: 9%; top: 0; bottom: 0; width: 6.67%; mix-blend-mode: soft-light; background: linear-gradient(165deg, transparent 18%, rgba(255, 255, 255, .95) 42%, rgba(255, 170, 255, .7) 50%, rgba(140, 255, 230, .6) 58%, transparent 78%); background-size: 100% 300%; background-position: 0 var(--sheen, 40%); }
.cover.printing > img { animation: press 1.15s var(--ease) both; }
.cover.printing .c-name, .cover.printing .c-eng, .cover.printing .c-ser, .cover.printing .c-ser2, .cover.printing .c-lv { animation: inkup .7s .7s var(--ease) both; }
.cover.printing .foil { animation: catch 1.1s 1s var(--ease) both; }
@keyframes press { from { clip-path: inset(0 0 100% 0); filter: blur(1.5px) saturate(.4); } 70% { filter: none; } to { clip-path: inset(0); } }
@keyframes inkup { from { opacity: 0; transform: translateY(4px); } }
@keyframes catch { from { background-position: 0 100%; } }

/* page 5: the PDF */
.pdf-show { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 10px 4% 0; }
.pdf-show canvas { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(14, 18, 40, .14), 0 30px 50px -24px rgba(14, 18, 40, .5); background: #fff; }
.pdf-cover { transform: rotate(-2deg); }
.pdf-page { transform: rotate(1.5deg) translateY(26px); }

/* page 6: install */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 36px; display: grid; gap: 4px; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 70px 1fr; column-gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: .9; color: var(--pink); letter-spacing: -.05em; }
.steps b { font-weight: 760; font-stretch: 106%; font-size: 20px; }
.steps span { color: var(--text-2); }

.foot { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; max-width: 1080px; margin: 0 auto; padding: 0 24px 70px; color: var(--text-2); font-size: 14.5px; }
.foot b { color: var(--text); font-size: 16px; }
.foot p { margin: 6px 0 0; max-width: 80ch; }

@media (max-width: 900px) {
  .hero { padding-bottom: calc(76vw + 40px); }
  .hero::after { display: none; }
}
@media (max-width: 980px) {
  .tabs { display: none; }
  .navrow { grid-template-columns: auto auto 1fr auto; }
  .syl, .issue { grid-template-columns: 1fr; }
  .qcard { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
}
.phone-only { display: none; }
@media (max-width: 640px) {
  .phone-only { display: grid; place-items: center; min-height: calc(100vh - 60px); padding: 40px 24px; text-align: center; }
  .phone-in { display: grid; justify-items: center; gap: 18px; max-width: 360px; }
  .phone-mark { width: 120px; height: 120px; background: var(--brand-mark) center / contain no-repeat; }
  .phone-only h1 { font-size: 38px; line-height: .98; }
  .phone-only p { margin: 0; color: var(--text-2); }
  .phone-only .lock { border: 0; padding: 0; }
  .desk, .foot, .toolrow, .tabs, .navrow .lock, .navrow > .btn { display: none !important; }
  .navrow { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
