
:root {
  --gold: #F2C230;
  --ink: #121212;
  --muted: #4D3F10;
  --white: #FFFFFF;
  --line: rgba(18, 18, 18, .36);
  --C: 2;
  --cell: calc(min(100vw, 1600px) / var(--C));
  --b: 7px;
  --pad: 18px;
  --display: "Kola", "Andika", sans-serif;
  --text: "Andika", system-ui, sans-serif;
}
@media (min-width: 1180px) {
  :root { --C: 4; --b: 9px; --pad: clamp(30px, calc(var(--cell) * .14), 58px); }
}
@media (min-width: 640px) and (max-width: 1179px) {
  :root { --pad: 34px; }
}
html { background: var(--gold); }
body {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1180px) { body { font-size: 18px; } }
em, i { font-style: normal; }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  width: calc(var(--C) * var(--cell));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--b) + var(--pad)) 0 calc(var(--b) + var(--pad));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .01em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 400; }
.nav-links a { text-decoration: none; padding: 6px 0; }
.nav-links .wide { display: none; }
@media (min-width: 1180px) { .nav { height: 92px; } .nav-links .wide { display: inline; } }

/* ---------- The cloth ---------- */
.panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--C), var(--cell));
  grid-auto-rows: var(--cell);
  width: calc(var(--C) * var(--cell));
  margin: 0 auto;
}
.comb {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 0 1px, transparent 1px 3px, var(--line) 3px 4px, transparent 4px 6px, var(--line) 6px 7px, transparent 7px),
    linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 3px, var(--line) 3px 4px, transparent 4px 6px, var(--line) 6px 7px, transparent 7px);
  background-size: var(--cell) var(--cell);
}
@media (min-width: 1180px) {
  .comb {
    background-image:
      linear-gradient(to right, var(--line) 0 1px, transparent 1px 4px, var(--line) 4px 5px, transparent 5px 8px, var(--line) 8px 9px, transparent 9px),
      linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 4px, var(--line) 4px 5px, transparent 5px 8px, var(--line) 8px 9px, transparent 9px);
  }
}
.kit-js:not(.is-static) .comb { clip-path: inset(0% 100% 100% 0%); }
.foot-band { width: calc(var(--C) * var(--cell)); margin: 0 auto; height: var(--b); position: relative; }
.foot-band .comb { background-size: var(--cell) var(--cell); }

/* every grid item masks the comb inside it but keeps its own top and left lines */
.cell {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: linear-gradient(var(--gold), var(--gold)) var(--b) var(--b) / calc(100% - var(--b)) calc(100% - var(--b)) no-repeat;
  padding: calc(var(--b) + var(--pad)) var(--pad) var(--pad) calc(var(--b) + var(--pad));
  grid-column: span var(--mc, 2);
  grid-row: span var(--mr, 1);
}
@media (min-width: 1180px) {
  .cell { grid-area: var(--a); }
}
.in { display: flex; flex-direction: column; min-height: 100%; }

/* ---------- Type ---------- */
h1, h2, .display { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: clamp(48px, calc(var(--cell) * .255), 92px); line-height: .98; }
@media (min-width: 1180px) { h1 { font-size: calc(var(--cell) * .235); } }
h2 { font-size: clamp(34px, calc(var(--cell) * .19), 64px); line-height: 1.02; }
@media (min-width: 1180px) { h2 { font-size: calc(var(--cell) * .135); } }
.lead { max-width: 26em; color: var(--ink); }
.small { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.cap { font-size: 12.5px; line-height: 1.35; color: var(--muted); font-weight: 400; }
@media (min-width: 1180px) { .cap { font-size: 13px; } }

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn {
  --k-fill: var(--white);
  --k-fill-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), color .45s cubic-bezier(.7, 0, .2, 1);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.link { font-size: 16px; font-weight: 400; text-decoration: none; padding: 4px 0; }

/* ---------- Stamps ---------- */
.stamp { display: grid; place-items: center; }
.stamp .ink { width: 62%; height: auto; aspect-ratio: 1; color: var(--ink); transform-origin: 50% 50%; }
.stamp.big .ink { width: 70%; }
.stamp .cap { position: absolute; left: calc(var(--b) + var(--pad) * .7); bottom: calc(var(--pad) * .6); right: var(--pad); }
.kit-js:not(.is-static) .stamp .ink { opacity: 0; transform: scale(1.08); }

/* ---------- Hero ---------- */
.hero-text .in { justify-content: space-between; gap: 40px; }
.hero-text .bottom { display: grid; gap: 30px; }

/* ---------- Chat ---------- */
.chat-head .in { justify-content: space-between; gap: 22px; }
.note .in { justify-content: flex-end; }
.note p { font-size: 20px; line-height: 1.35; max-width: 11em; }
@media (min-width: 1180px) { .note p { font-size: 22px; } }
.phone-cell { padding: calc(var(--b) + 28px) 16px 28px calc(var(--b) + 16px); }
.phone-cell .in { align-items: center; justify-content: center; }
.phone { font-size: 14px; width: 21.6em; height: 45.6em; flex: none; background: var(--ink); border-radius: 3.5em; padding: .55em; }
@media (min-width: 640px) { .phone { font-size: 15.5px; } }
@media (min-width: 1180px) { .phone { font-size: 16px; } }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 2.95em; overflow: hidden; background: var(--gold); display: flex; flex-direction: column; font-family: var(--text); }
.ph-top { background: var(--white); border-bottom: 1px solid rgba(18, 18, 18, .1); }
.ph-status { height: 3.35em; display: flex; align-items: center; justify-content: space-between; padding: .45em 1.75em 0 2.15em; }
.ph-time { font-size: 1.02em; font-weight: 500; letter-spacing: .01em; }
.ph-icons { display: flex; align-items: center; gap: .36em; }
.ph-icons svg { height: .78em; width: auto; }
.ph-island { position: absolute; top: .68em; left: 50%; width: 6.8em; height: 1.95em; margin-left: -3.4em; background: var(--ink); border-radius: 1em; }
.ph-head { display: flex; align-items: center; gap: .6em; padding: .35em .9em .7em .6em; }
.ph-back { width: 1.4em; height: 1.4em; }
.ph-avatar { width: 2.35em; height: 2.35em; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; }
.ph-avatar svg { width: 1.45em; height: 1.45em; }
.ph-name { font-size: 1em; font-weight: 500; line-height: 1.2; }
.ph-sub { font-size: .76em; color: var(--muted); line-height: 1.2; font-weight: 400; }
.ph-head .ph-call { margin-left: auto; width: 1.35em; height: 1.35em; }
.ph-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .38em; padding: .7em .7em .8em; overflow: hidden; }
.chip { align-self: center; font-size: .72em; font-weight: 500; background: rgba(18, 18, 18, .08); color: var(--muted); padding: .3em .8em; border-radius: 1em; margin-bottom: .3em; }
.bub { max-width: 80%; font-size: .9em; line-height: 1.38; padding: .5em .75em .45em; border-radius: 1.2em; font-weight: 300; }
.bub b { font-weight: 500; }
.bub.rx { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: .35em; }
.bub.tx { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: .35em; }
.bub.rx + .bub.rx { border-top-left-radius: .35em; }
.meta { display: inline-flex; align-items: center; gap: .25em; float: right; margin: .35em 0 -.1em .7em; font-size: max(11px, .72em); opacity: .72; font-weight: 400; }
.meta svg { width: 1.25em; height: .8em; }
.bub.photo { padding: .28em .28em .4em; width: 74%; }
.paper { background: var(--white); color: var(--ink); border-radius: .95em; padding: .75em .85em .85em; background-image: repeating-linear-gradient(to bottom, transparent 0 1.3em, rgba(18, 18, 18, .07) 1.3em calc(1.3em + 1px)); }
.paper .src { font-size: max(11px, .74em); color: var(--muted); font-weight: 400; display: block; margin-bottom: .45em; }
.paper .q { font-size: 1.02em; line-height: 1.35; font-weight: 400; }
.paper .eq { display: block; font-weight: 500; font-size: 1.08em; letter-spacing: .01em; margin-top: .15em; white-space: nowrap; }
.bub.photo .meta { margin-right: .45em; }
.typing { align-self: flex-start; background: var(--white); border-radius: 1.2em; border-bottom-left-radius: .35em; padding: .62em .8em; display: flex; gap: .28em; }
.typing span { width: .42em; height: .42em; border-radius: 50%; background: var(--muted); opacity: .45; animation: dot 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: .9; transform: translateY(-.15em); } }
.ph-input { background: var(--white); border-top: 1px solid rgba(18, 18, 18, .1); display: flex; align-items: center; gap: .65em; padding: .55em .85em 2.05em; }
.ph-input svg { width: 1.35em; height: 1.35em; flex: none; }
.ph-field { flex: 1; height: 2.15em; border: 1px solid rgba(18, 18, 18, .16); border-radius: 1.1em; display: flex; align-items: center; padding: 0 .85em; font-size: .86em; color: rgba(18, 18, 18, .58); font-weight: 300; }
.ph-home { position: absolute; bottom: .5em; left: 50%; width: 8.6em; height: .32em; margin-left: -4.3em; border-radius: .2em; background: var(--ink); }

/* ---------- Steps ---------- */
.steps-head .in { justify-content: space-between; gap: 22px; }
.t .num { font-family: var(--display); font-size: 34px; line-height: 1; display: block; margin-bottom: 18px; }
.t h3 { font-size: 19px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.t p { font-size: 17px; line-height: 1.5; }
.t .in { justify-content: flex-end; }
@media (max-width: 1179px) {
  .step-stamp { grid-column: var(--pcol, 1) / span 1; }
  .t { grid-column: 1 / span 2; }
  .t p { max-width: 20em; }
}
@media (min-width: 1180px) {
  .t { transition: none; }
  .t:not(.on) { opacity: 0; }
  .t .num { font-size: 40px; }
  .t h3 { font-size: 21px; }
}
@media (max-width: 639px) {
  .t .num { font-size: 28px; margin-bottom: 12px; }
  .t h3 { font-size: 17px; }
}

/* ---------- Teachers ---------- */
.teach-text .in { justify-content: space-between; gap: 32px; }
.teach-text .bottom { display: grid; gap: 22px; }
.legend { display: flex; align-items: center; gap: 12px; }
.legend .ramp { display: flex; gap: 3px; }
.legend .ramp span { width: 18px; height: 18px; background: var(--ink); }
.grid-cell .in { justify-content: center; }
.classgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; aspect-ratio: 1; }
.sq { position: relative; border: 1px solid rgba(18, 18, 18, .32); padding: 10px 11px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.sq .fill { position: absolute; inset: 4px; opacity: var(--d); }
.sq .fill span { position: absolute; inset: 0; background: var(--ink); filter: url(#inkpx); }
.sq .k, .sq .v { position: relative; }
.sq .k { font-size: 12px; line-height: 1.25; font-weight: 400; }
.sq .v { font-family: var(--display); font-size: 22px; line-height: 1; }
.sq.dark { color: var(--white); }
@media (min-width: 640px) { .sq { padding: 14px 16px; } .sq .k { font-size: 14px; } .sq .v { font-size: 30px; } .classgrid { gap: 9px; } .sq .fill { inset: 5px; } }
.kit-js:not(.is-static) .sq .fill span { opacity: 0; }

/* ---------- Photos ---------- */
.photo { padding: 0; }
.frame { position: absolute; inset: var(--b) 0 0 var(--b); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.quote .in { justify-content: space-between; gap: 28px; }
.quote blockquote p { font-size: 22px; line-height: 1.4; font-weight: 300; }
@media (min-width: 1180px) { .quote blockquote p { font-size: calc(var(--cell) * .066); } }
.story .in { justify-content: space-between; gap: 22px; }

/* ---------- Start ---------- */
.price .in { justify-content: space-between; gap: 18px; }
.price .lead { font-size: 20px; line-height: 1.4; font-weight: 400; }
@media (min-width: 1180px) { .price .lead { font-size: 22px; } }
.count .top { position: absolute; left: calc(var(--b) + var(--pad) * .7); top: calc(var(--b) + var(--pad) * .6); }
.count .ink { width: 74%; }
.cta .in { justify-content: flex-end; gap: 24px; }
.cta .small { max-width: 18em; }

/* ---------- Footer ---------- */
.foot .in { justify-content: space-between; gap: 36px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.foot-top .brand { font-size: 40px; }
.key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.key li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: var(--muted); font-weight: 400; }
.key li b { display: block; color: var(--ink); font-weight: 500; }
.key svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 13px; color: var(--muted); font-weight: 400; }
.foot-bottom nav { display: flex; gap: 24px; }
.foot-bottom a { text-decoration: none; }
@media (min-width: 1180px) { .key { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
