/* The product site: the web app's own dark colours (web/src/theme.css) and its body face. */

@font-face {
  font-family: Bricolage;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0;
}
@font-face {
  font-family: Bricolage;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC;
}
@font-face {
  font-family: Jakarta;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0;
}
@font-face {
  font-family: Jakarta;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC;
}

:root {
  --bleed: clamp(-140px, calc((1240px - 100vw) / 2 - 8px), -8px);
  color-scheme: dark;
  --bg: #16140f;
  --card: #211e19;
  --card2: #2b2721;
  --line: #37322b;
  --fg: #f3efe8;
  --dim: #b3aca0;
  --faint: #8f887c;
  --tea: #e08a5f;
  --tea-ink: #20110a;
  --amber: #e0b04a;
  --amber-bg: #2a2010;
  --amber-deep: #1b1509;
  --amber-line: #4a3a16;
  --amber-fg: #cfc3a4;
  --ok: #5fc08c;
  --ok-bg: #173325;
  --frame: #0b0a08;
  --head: Bricolage, Jakarta, "Segoe UI", system-ui, sans-serif;
  --body: Jakarta, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--tea);
  outline-offset: 3px;
}
main {
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
section {
  scroll-margin-top: 24px;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
h1,
h2,
.num {
  font-family: var(--head);
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 5;
  background: var(--tea);
  color: var(--tea-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

/* Top */
.top .wrap {
  display: flex;
  align-items: center;
  height: 84px;
  gap: 28px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 24px var(--head);
  letter-spacing: -0.02em;
}
.mark i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tea);
  color: var(--tea-ink);
  display: grid;
  place-items: center;
  font: 700 19px var(--body);
  font-style: normal;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--dim);
  white-space: nowrap;
}
nav a:hover {
  background: var(--card);
  color: var(--fg);
}
.pill {
  background: var(--tea);
  color: var(--tea-ink);
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
}

/* Opening */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 40px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 999px;
  padding: 7px 14px;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
h1 {
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 22px 0 0;
}
h1 em {
  font-style: normal;
  color: var(--tea);
}
.hero p {
  color: var(--dim);
  font-size: 19px;
  max-width: 46ch;
  margin: 28px 0 0;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
}
.btn.main {
  background: var(--tea);
  color: var(--tea-ink);
}
.btn.line {
  border: 1.5px solid var(--line);
  background: var(--card);
}
.comp {
  position: relative;
  padding: 0 0 70px 0;
  margin-right: -180px;
}
.tablet {
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55);
}
.phone {
  position: absolute;
  left: -36px;
  bottom: 0;
  width: clamp(150px, 27%, 210px);
  border-radius: 30px;
  padding: 7px;
  background: var(--frame);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}
.phone img {
  border-radius: 24px;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 15.5px;
  color: var(--dim);
}
.strip b {
  color: var(--fg);
  font-weight: 600;
}

/* Chapters */
.ch {
  display: grid;
  grid-template-columns: 110px 1fr 1.25fr;
  gap: 36px;
  padding: 120px 0 0;
  align-items: start;
}
.num {
  font-size: 84px;
  line-height: 0.85;
  font-weight: 700;
  color: var(--card2);
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px var(--line);
}
h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.ch p {
  color: var(--dim);
  margin: 20px 0 0;
  max-width: 42ch;
}
.tags {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15.5px;
  font-weight: 500;
}
.shot {
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  /* Out past the column, but never past the window's edge: the picture is not cut. */
  margin-right: var(--bleed);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.shot .zoom {
  display: none;
}
.ch.flip {
  grid-template-columns: 1.25fr 110px 1fr;
}
.ch.flip .shot {
  order: -1;
  margin-right: 0;
  margin-left: var(--bleed);
}
.duo {
  display: flex;
  align-items: flex-start; /* the second phone sits lower; the first is not stretched to it */
  gap: 22px;
}
.duo .ph {
  flex: 1;
  max-width: 270px;
  border-radius: 32px;
  padding: 8px;
  background: var(--frame);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.duo .ph img {
  border-radius: 25px;
}
.duo .ph + .ph {
  margin-top: 64px;
}

/* Okey */
.okey {
  margin-top: 130px;
  background: var(--amber-bg);
  border-top: 1px solid var(--amber-line);
  border-bottom: 1px solid var(--amber-line);
}
.okey .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 96px;
  align-items: center;
}
.okey .label {
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.okey h2 {
  margin-top: 14px;
}
.okey p {
  color: var(--amber-fg);
  margin: 20px 0 0;
  max-width: 46ch;
}
.okey p.aside {
  font-size: 15px;
  opacity: 0.8;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.three div {
  background: var(--amber-deep);
  border: 1px solid var(--amber-line);
  border-radius: 14px;
  padding: 16px;
}
.three b {
  display: block;
  color: var(--amber);
  font: 700 26px var(--head);
  letter-spacing: -0.02em;
}
.three span {
  font-size: 14px;
  color: var(--amber-fg);
}
.okey .shot {
  border-color: var(--amber-line);
}

/* Everything in it */
.list {
  padding-top: 120px;
}
.list .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 14px;
}
.col h3 {
  margin: 0 0 12px;
  font: 700 22px var(--head);
  letter-spacing: -0.02em;
  color: var(--tea);
}
.col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.col li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.col li span {
  color: var(--faint);
}

/* Setup and price */
.setup {
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.setup ol {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 36px 0 0;
}
.setup ol li {
  counter-increment: s;
  position: relative;
  padding: 0 0 26px 62px;
  color: var(--dim);
}
.setup ol li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card2);
  color: var(--tea);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.setup ol b {
  color: var(--fg);
  display: block;
}
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  scroll-margin-top: 24px;
}
.price h3 {
  font: 700 30px var(--head);
  letter-spacing: -0.03em;
  margin: 0;
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.price li {
  padding: 13px 0 13px 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.price li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--ok);
  font-weight: 700;
}
.small {
  color: var(--faint);
  font-size: 15px;
  margin: 18px 0 0;
}

/* The last word */
.end {
  margin: 130px 32px 32px;
  border-radius: 32px;
  background: var(--tea);
  color: var(--tea-ink);
  padding: 84px 40px;
  text-align: center;
}
.end h2 {
  font-size: clamp(36px, 5.4vw, 76px);
  max-width: 15ch;
  margin: 0 auto;
}
.end p {
  font-size: 19px;
  font-weight: 500;
  margin: 18px 0 0;
}
.end .cta {
  justify-content: center;
}
.end .btn.main {
  background: var(--tea-ink);
  color: var(--fg);
}
.end .btn.line {
  background: transparent;
  border-color: rgba(32, 17, 10, 0.45);
}
.end a:focus-visible {
  outline-color: var(--tea-ink);
}
.end .mail {
  font-size: 16px;
  margin-top: 26px;
}
.end .mail a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer {
  padding: 26px 18px 40px;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1080px) {
  nav {
    display: none;
  }
  .pill {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  .hero,
  .okey .wrap,
  .setup {
    grid-template-columns: 1fr;
  }
  .comp,
  .shot,
  .ch.flip .shot {
    margin-right: 0;
    margin-left: 0;
  }
  .comp {
    padding-left: 40px;
  }
  .phone {
    left: 0;
    width: 34%;
  }
  .ch,
  .ch.flip {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 84px;
  }
  .ch.flip .shot {
    order: 0;
  }
  .shot .zoom {
    display: block;
    padding: 9px 14px;
    border-top: 1px solid var(--line);
    background: var(--card);
    color: var(--dim);
    font-size: 13.5px;
    text-align: center;
  }
  .num {
    font-size: 56px;
  }
  .list .grid,
  .three {
    grid-template-columns: 1fr;
  }
  .okey {
    margin-top: 90px;
  }
  .okey .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .list,
  .setup {
    padding-top: 84px;
  }
  .wrap {
    padding: 0 18px;
  }
  .top .wrap {
    height: 72px;
  }
  .end {
    margin: 90px 12px 12px;
    padding: 60px 22px;
  }
  .btn {
    height: 54px;
    padding: 0 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The page a wrong address gets */
.lost {
  min-height: 62vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.lost h1 {
  margin: 0;
}
.lost p {
  margin: 0;
  color: var(--dim);
  font-size: 18px;
}

/* A wide picture at full size, over the page (no script: the link's target is shown). On a phone
   the picture keeps a readable width and is moved with a finger. */
.big {
  display: none;
}
.big:target {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: rgba(14, 12, 9, 0.97);
}
.big-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 14.5px;
}
.big-close {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
}
.big-pic {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.big-pic img {
  max-width: none;
  width: max(100%, 1100px);
}
@media (min-width: 1160px) {
  .big-bar span {
    visibility: hidden; /* the picture fits: nothing to move */
  }
  .big-pic {
    display: grid;
    place-items: center;
    border: 0;
  }
  .big-pic img {
    width: auto;
    max-width: 100%;
    /* the window less the «Kapat» row and the gaps: the whole picture in sight */
    max-height: calc(100vh - 104px);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
}
