/* Backmark website. Light only, Inter, one Brass accent, no trackers. */

:root {
  --page: #f2f2f7;
  --card: #f9f9fb;
  --card-edge: rgba(255, 255, 255, 0.9);
  --ink: #000000;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --brass: #82642c;
  --green: #34c759;
  --orange: #ff9500;
  --grey: #8e8e93;
  --footer: #e5e5ea;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "New York", ui-serif, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* Navigation */

.nav { position: sticky; top: 0; z-index: 20; padding: 18px 16px 0; }
.nav__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(1088px, 100%); margin-inline: auto;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav__cta { justify-self: end; }

.download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #000; color: #fff; text-decoration: none;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
}
.download svg { width: 15px; height: 15px; fill: currentColor; margin-top: -2px; }
.download--large { padding: 15px 28px; font-size: 22px; }
.download--large svg { width: 21px; height: 21px; }

@media (max-width: 760px) {
  .nav__bar { grid-template-columns: 1fr auto; padding: 6px 6px 6px 12px; }
  .nav__links { display: none; }
  .brand { font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .download { font-size: 13px; padding: 8px 14px; gap: 6px; }
  .download svg { width: 13px; height: 13px; }
}

/* Hero */

.hero { min-height: calc(100vh - 90px); display: flex; align-items: center; padding: 60px 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; width: min(900px, 100% - 32px); margin-inline: auto; }
.hero h1 { font-size: clamp(48px, 6.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.hero p { margin: 22px 0 30px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink-2); max-width: 17em; }
.hero__phone { width: min(330px, 80vw); justify-self: center; }

@media (max-width: 800px) {
  .hero { min-height: 0; padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
}

/* Real iPhone frame: the bezel image with the capture laid into its measured screen */

.iphone { position: relative; aspect-ratio: 1022 / 2082; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.16)); }
.iphone > img.bezel { width: 100%; height: 100%; }
.iphone__screen {
  position: absolute; z-index: 1; overflow: hidden; background: #111;
  left: 5.088%; top: 2.209%; width: 89.824%; height: 95.581%;
  border-radius: 13.725% / 6.332%;
}
.iphone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Bento */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 40px 0; }

.tile {
  position: relative; overflow: hidden;
  border-radius: 40px; background: var(--card);
  box-shadow: inset 0 0 0 2px var(--card-edge), 0 18px 40px rgba(0, 0, 0, 0.035);
  min-height: 500px;
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.tile h3 { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.tile h3.xl { font-size: clamp(44px, 5vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.tile p { margin-top: 8px; font-size: 19px; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink-2); }

.tile__copy { position: absolute; z-index: 2; }
.at-bottom-right { right: 36px; bottom: 36px; left: 36px; text-align: right; }
.at-center { inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 60px; }
.at-top-left { left: 48px; top: 56px; max-width: 290px; }
.at-top-center { left: 40px; right: 40px; top: 44px; text-align: center; }
.at-right { right: 64px; top: 50%; transform: translateY(-50%); max-width: 300px; }
.at-bottom-center { left: 40px; right: 40px; bottom: 44px; text-align: center; }

@media (max-width: 860px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .at-right { right: 32px; left: 32px; max-width: none; top: auto; bottom: 36px; transform: none; }
}
@media (max-width: 520px) {
  .bento { gap: 16px; }
  .tile { border-radius: 32px; min-height: 460px; }
  .tile h3 { font-size: 26px; }
}

/* Tile art */

.float { position: absolute; border-radius: 26px; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16); }

.mark-card { width: 200px; height: 240px; left: 50%; top: 44px; margin-left: -100px; transform: rotate(-4deg); overflow: hidden; background: #333; }
.mark-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

.pill {
  position: absolute; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px 16px 16px; border-radius: 24px; background: #fff;
  font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}
.pill svg { width: 30px; height: 30px; flex: none; }
.pill small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.pill--strong { left: 7%; top: 48px; transform: rotate(-6deg); }
.pill--possible { right: 6%; top: 70px; transform: rotate(5deg); }
.pill--unsure { left: 50%; bottom: 44px; transform: translateX(-50%) rotate(-2deg); }
.pill--strong svg { color: var(--green); }
.pill--possible svg { color: var(--orange); }
.pill--unsure svg { color: var(--grey); }

@media (max-width: 520px) {
  .pill { font-size: 16px; padding: 12px 16px 12px 12px; }
  .pill svg { width: 24px; height: 24px; }
  .pill small { display: none; }
  .pill--strong { left: 16px; top: 34px; }
  .pill--possible { right: 16px; top: 104px; }
  .pill--unsure { bottom: 34px; }
}

.phone-peek { position: absolute; width: 300px; right: 48px; top: 60px; }
.phone-peek--center { left: 50%; right: auto; margin-left: -150px; top: 190px; }

.price-card {
  position: absolute; left: 50%; top: 40px; width: 230px; margin-left: -115px; transform: rotate(3deg);
  padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.12);
}
.price-card img { width: 100%; height: 104px; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }
.price-card span { display: block; font-size: 14px; color: var(--muted); }
.price-card strong { display: block; font: 700 30px/1.1 var(--serif); letter-spacing: -0.01em; margin: 2px 0 4px; }

.cand { position: absolute; width: 300px; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.09); }
.cand strong { display: block; font: 600 20px/1.2 var(--serif); }
.cand span { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; color: var(--muted); }
.cand i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.cand--a { left: 56px; top: 70px; transform: rotate(-3deg); }
.cand--b { left: 250px; top: 200px; transform: rotate(2deg); }
.cand--c { left: 80px; top: 340px; transform: rotate(-1deg); }
.cand-photo { position: absolute; left: 420px; top: 40px; width: 124px; height: 124px; border-radius: 28px; object-fit: cover; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14); transform: rotate(6deg); }
.dot-possible { background: var(--orange); }
.dot-unsure { border: 2px dashed var(--grey); }

.circles { position: absolute; left: 50%; top: 70px; width: 380px; height: 240px; margin-left: -190px; }
.circle { position: absolute; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); border: 8px solid #fff; }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle--1 { width: 150px; height: 150px; left: 0; top: 50px; }
.circle--2 { width: 190px; height: 190px; left: 95px; top: 0; z-index: 1; }
.circle--3 { width: 120px; height: 120px; right: 0; top: 80px; }

@media (max-width: 860px) {
  .tile--phone { min-height: 720px; }
  .tile--phone .at-top-left { left: 32px; right: 32px; top: 40px; max-width: none; }
  .tile--phone .phone-peek { left: 50%; right: auto; margin-left: -140px; width: 280px; top: 230px; }
  .tile--cands { min-height: 760px; }
  .tile--cands .cand { width: min(280px, 100% - 48px); }
  .tile--cands .cand--a { left: 24px; top: 40px; }
  .tile--cands .cand--b { left: auto; right: 24px; top: 150px; }
  .tile--cands .cand--c { left: 30px; top: 262px; }
  .tile--cands .cand-photo { left: auto; right: 30px; top: 340px; width: 90px; height: 90px; }
}
@media (max-width: 520px) { .circles { transform: scale(0.8); } }

/* Values */

.values-title { font-size: clamp(34px, 4vw, 44px); font-weight: 700; letter-spacing: -0.035em; margin: 90px 12px 34px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  padding: 36px 34px 44px; border-radius: 40px; background: var(--card);
  box-shadow: inset 0 0 0 2px var(--card-edge), 0 18px 40px rgba(0, 0, 0, 0.035);
}
.value svg { width: 38px; height: 38px; margin-bottom: 90px; }
.value h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.value p { margin-top: 4px; font-size: 19px; line-height: 1.2; color: var(--muted); letter-spacing: -0.01em; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .value svg { margin-bottom: 40px; } }

/* Closing and footer */

.closing { display: flex; justify-content: center; padding: 150px 0 170px; }

.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; border-radius: 32px; background: var(--footer);
}
.footer__bar img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.footer__note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 32px 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  .footer__bar { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .footer__bar img { width: 38px; height: 38px; }
  .footer__links { gap: 18px; }
  .footer__links a { font-size: 14px; }
  .footer__note { font-size: 12px; padding: 16px 24px 36px; }
}

/* Legal pages */

.doc { width: min(760px, 100% - 32px); margin: 70px auto 80px; }
.doc__card { padding: clamp(28px, 6vw, 64px); border-radius: 40px; background: var(--card); box-shadow: inset 0 0 0 2px var(--card-edge), 0 18px 40px rgba(0, 0, 0, 0.035); }
.doc h1 { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 22px; }
.doc h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 44px 0 10px; }
.doc h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 28px 0 6px; }
.doc p, .doc li { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc .lead { font-size: 23px; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.doc a { color: var(--brass); }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc .updated { margin-top: 40px; font-size: 16px; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Motion */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 10px; }

/* Language switch (24 Sep 2026) */
.nav__end { justify-self: end; display: inline-flex; align-items: center; gap: 14px; }
.nav__end .nav__cta { justify-self: auto; }
.lang { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 4px; }
.lang:hover { color: #000; }
@media (max-width: 760px) { .nav__end { gap: 8px; } .lang { font-size: 13px; } }
