/* Everzoom's page, in the style of its App Store screenshots (November 2026): cream paper, soft
   colour washes, a bold rounded title with a handwritten second line on a violet highlighter, the
   real editor in a device, photo cards for the next level of the zoom. Light only, as the
   screenshots are. Pictures: img/ (made from reports/appstore/tall in the app's repository). */

:root {
  --paper: #faf6ee;
  --ink: #16161a;
  --muted: #5e5868;
  --violet: #7a4df0;
  --violet-soft: #ece4fd;
  --card: #ffffff;
  --line: rgba(22, 22, 26, 0.1);
  --bezel: #101012;
  --title: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    url("img/paper.jpg") repeat,
    var(--paper);
  background-size: auto, 768px 768px, auto;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* The site's header, quiet. */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.top nav { display: flex; gap: 4px; }

.top nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.top nav a:hover { background: rgba(22, 22, 26, 0.06); color: var(--ink); }

/* Washes and doodles: the screenshots' own pieces, behind everything. */
.washes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.wash { position: absolute; width: clamp(280px, 40vw, 520px); }

.doodle { position: absolute; pointer-events: none; z-index: 1; }

/* Titles: a bold rounded first line, a handwritten second line on the highlighter. */
.title {
  margin: 0;
  font-family: var(--title);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.title .line1 { display: block; font-size: clamp(42px, 6.2vw, 78px); }

.title .line2 {
  position: relative;
  display: inline-block;
  margin-top: -0.06em;
  padding: 0 0.12em;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(60px, 9vw, 116px);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.title .line2::before {
  content: "";
  position: absolute;
  left: -0.18em;
  right: -0.18em;
  bottom: 0.02em;
  height: 0.62em;
  background: url("img/highlighter.webp") center / 100% 100% no-repeat;
  opacity: 0.92;
  transform: rotate(-1.5deg);
  z-index: -1;
}

.title .line2 span { position: relative; }

.lead {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}

/* The hero. */
.hero { position: relative; padding-bottom: clamp(56px, 8vw, 110px); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(24px, 5vw, 64px);
}

.hero-grid > * { min-width: 0; }

.app-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.app-line img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 0 0 1px var(--line);
}

.app-line strong { display: block; font-size: 20px; line-height: 1.2; }

.app-line span { color: var(--muted); font-size: 14px; }

/* The two laurels. */
.laurels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
}

.laurel {
  display: flex;
  align-items: center;
  gap: 4px;
}

.laurel > img { width: 25px; height: auto; }

/* The branches are our own drawing (img/laurel.svg, the left one); the right one is it mirrored. */
.laurel > img.flip { transform: scaleX(-1); }

.laurel .mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--title);
  line-height: 1.15;
}

.laurel .big { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }

.laurel .small { font-weight: 600; font-size: 12px; color: var(--muted); }

.laurel svg { width: 13px; height: 13px; }

/* The fifth star of 4.4 is grey with its first 40% filled, drawn in the page itself (clip-path #forty). */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store:hover { transform: translateY(-2px); }

.store svg { width: 18px; height: 18px; }

.note { color: var(--muted); font-size: 14px; }

/* Devices with the real editor, and the photo cards beside them. */
.stage { position: relative; }

.device {
  position: relative;
  background: var(--bezel);
  padding: clamp(7px, 1vw, 12px);
  border-radius: clamp(22px, 3vw, 38px);
  box-shadow: 0 0 0 2px #3a3a3e, 0 30px 70px rgba(40, 30, 20, 0.22);
}

/* The screen: the capture, with the photo cards and the violet marks laid out in its own
   proportions (the marks in the capture's pixels, the cards in shares of the screen), so they stay
   where they belong at any size. */
.screen { position: relative; container-type: inline-size; }

.screen > img { width: 100%; border-radius: clamp(15px, 2.1vw, 27px); }

.device.tall { width: min(100%, 400px); margin: 0 auto; }

.photo {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 4.5% 4.5% 0;
  background: var(--card);
  border-radius: 9%/7%;
  box-shadow: 0 22px 46px rgba(40, 30, 20, 0.28);
}

.photo img { width: 100%; border-radius: 6%/5%; }

.photo figcaption {
  padding: 3% 0 5%;
  text-align: center;
  font-family: var(--hand);
  font-weight: 700;
  font-size: max(15px, 5.2cqw);
  line-height: 1.1;
  white-space: nowrap;
}

.photo.plain { padding-bottom: 4.5%; border-radius: 12%/6%; }

.photo.plain img { border-radius: 10%/5%; }

.doodle.inline { position: relative; display: block; margin-bottom: 18px; }

.marks { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }

.marks path, .marks circle, .marks ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.marks .under { stroke: #fff; stroke-opacity: 0.9; stroke-width: 26; }

.marks .over { stroke: var(--violet); stroke-width: 13; }

/* The chapters: one per App Store screenshot. */
.chapter { position: relative; padding-block: clamp(56px, 9vw, 120px); }

.chapter-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.chapter-grid > * { min-width: 0; }

.chapter.flip .chapter-grid > .stage { order: -1; }

.points {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.points svg { width: 22px; height: 22px; margin-top: 3px; color: var(--violet); }

.points b { font-weight: 700; }

/* The dive: the paywall's ten pictures, a drawing zoomed into step by step. */
.dive { position: relative; z-index: 2; margin-top: clamp(48px, 7vw, 84px); }

.dive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.dive-head h3 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}

.dive-head p { margin: 0; color: var(--muted); font-size: 15px; }

.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.strip figure {
  flex: 0 0 clamp(190px, 22vw, 250px);
  margin: 0;
  scroll-snap-align: start;
}

.strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
}

.strip figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.strip figcaption span { color: var(--violet); font-family: var(--text); font-size: 12px; font-weight: 700; padding-top: 5px; }

/* Everything else: small cards. */
.more { position: relative; padding-block: clamp(56px, 8vw, 110px); }

.section-title {
  margin: 0 0 8px;
  font-family: var(--title);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-lead { margin: 0; color: var(--muted); max-width: 36em; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.tile {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.tile svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
}

.tile h3 { margin: 14px 0 4px; font-size: 17px; line-height: 1.3; }

.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Plans. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.plan.best { border: 2px solid var(--ink); }

.plan .kind {
  font-family: var(--title);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.plan .how {
  margin: 2px 0 18px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 24px;
  color: var(--violet);
  line-height: 1.2;
}

.plan ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }

.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }

.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--violet); }

/* Canvas Max. */
.carry {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 28px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(22px, 3vw, 34px);
  background: var(--violet-soft);
  border-radius: 28px;
}

.carry img { width: 72px; height: 72px; border-radius: 17px; }

.carry h3 { margin: 0 0 4px; font-family: var(--title); font-size: 24px; letter-spacing: -0.02em; }

.carry p { margin: 0; color: #4a4258; }

/* The last call, and the footer. */
.closing {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px);
  text-align: center;
}

.closing .title .line1 { font-size: clamp(38px, 5.4vw, 66px); }

.closing .actions { justify-content: center; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.foot a { text-decoration: none; }

.foot a:hover { color: var(--ink); }

/* Narrow screens: one column, the device first under its words. */
@media (max-width: 900px) {
  .hero-grid, .chapter-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .chapter-grid > .stage { order: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .hero .stage { margin-right: 6%; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav a { padding: 8px 10px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .carry { grid-template-columns: minmax(0, 1fr); }
  .doodle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
