/* MrTag sales page.
   Palette taken from the product's own logo: navy #022150 and green #099B6E.
   Deliberately single-theme — the page is an ad, and it must look identical to
   every prospect regardless of how their phone is set. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/mrtag/assets/fonts/archivo-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/mrtag/assets/fonts/archivo-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/mrtag/assets/fonts/archivo-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/mrtag/assets/fonts/archivo-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/mrtag/assets/fonts/source-sans-3-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/mrtag/assets/fonts/source-sans-3-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/mrtag/assets/fonts/source-sans-3-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/mrtag/assets/fonts/source-sans-3-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/mrtag/assets/fonts/source-sans-3-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/mrtag/assets/fonts/source-sans-3-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #032046;
  --navy-deep: #01162f;
  --navy-soft: #143563;
  --green: #099b6e;
  --green-dark: #06815b;
  --green-light: #21c48e;
  --green-wash: #e6f5ef;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --sunk: #eef2f1;
  --ink: #0d1b2a;
  --ink-soft: #4a5b68;
  --ink-faint: #7e8c96;
  --rule: #e1e8e6;
  --danger: #c0392b;
  --warn: #b45309;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 74rem;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.05), 0 8px 24px -18px rgba(13, 27, 42, 0.25);
  --shadow-md: 0 20px 48px -32px rgba(3, 32, 70, 0.45);
  --shadow-lg: 0 40px 80px -48px rgba(3, 32, 70, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }

.wrap { width: min(100% - 2.25rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 52rem; }

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.3rem + 3.6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.85rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 700; }
.feature-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
h2 + .lede, h2 + p, h1 + .lede { margin-top: 0.9rem; }
strong { font-weight: 700; }

.lede { font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.28rem); color: var(--ink-soft); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-wash);
  border-radius: 2rem;
  padding: 0.4rem 0.85rem;
  margin: 0 0 1.1rem;
}
.kicker.on-dark { color: #9ff0d4; background: rgba(33, 196, 142, 0.16); }

/* ------------------------------------------------------------------ chrome */

header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-in { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0; }
.brand img { height: 1.85rem; width: auto; }
@media (max-width: 639px) { .top-cta .btn { display: none; } }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.langs { display: flex; gap: 0.1rem; font-size: 0.78rem; }
.langs a { color: var(--ink-faint); text-decoration: none; padding: 0.25rem 0.4rem; border-radius: 0.4rem; font-weight: 600; }
.langs a[aria-current='true'] { color: var(--navy); background: var(--sunk); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -14px rgba(9, 155, 110, 0.9);
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 0.5rem 0.85rem; font-size: 0.88rem; border-radius: 0.5rem; }
.btn.big { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); box-shadow: none; }
.btn.ghost:hover { background: var(--sunk); }
.btn.on-dark { background: #fff; color: var(--navy); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8); }
.btn.on-dark:hover { background: #eaf3f0; }
.btn.ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn.ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }
:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }

/* ------------------------------------------------------------------ layout */

section { padding: clamp(3.25rem, 2rem + 5vw, 6rem) 0; scroll-margin-top: 4.25rem; }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-top: 0.8rem; }
.paper { background: var(--paper); }
.ruled { border-top: 1px solid var(--rule); }

.dark {
  background:
    radial-gradient(90rem 40rem at 15% -10%, rgba(9, 155, 110, 0.35), transparent 60%),
    radial-gradient(60rem 30rem at 110% 20%, rgba(33, 196, 142, 0.18), transparent 60%),
    var(--navy);
  color: #eaf2f7;
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: #c2d4e2; }
.dark .lede { color: #c9dbe8; }

/* ------------------------------------------------------------------ hero */

.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
/* On a phone the device sits between the headline and the copy: a prospect
   arriving from an ad should see the product before the paragraph. */
.hero-head { order: 1; }
.hero-art { order: 2; }
.hero-body { order: 3; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 1.1rem; }
.hero-trust { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: #a9c2d4; max-width: 42ch; }
.hero-trust svg { flex: none; margin-top: 0.28rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  overflow: hidden;
}
.stat { background: rgba(3, 32, 70, 0.65); padding: 1rem 1.1rem; }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; color: #fff; line-height: 1; }
.stat span { display: block; margin-top: 0.35rem; font-size: 0.82rem; color: #a9c2d4; line-height: 1.35; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0.8rem; padding-bottom: 2rem; }
.hero-art .phone { width: min(52%, 12.5rem); }
.hero-art .phone.behind { width: min(42%, 10.5rem); transform: translateY(-1.25rem) rotate(-4deg); opacity: 0.96; }
.hero-label {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(64%, 17rem);
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

/* proof bar under the hero */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #9fb8ca;
}
.proof b { color: #fff; font-family: var(--display); }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.card .ico {
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  display: grid; place-items: center;
  background: var(--green-wash); color: var(--green-dark);
  margin-bottom: 0.9rem;
}
.card.pain { border-top: 3px solid var(--danger); }
.card.pain .ico { background: #fdecea; color: var(--danger); }
.card.pain h3 { color: var(--danger); }

/* feature grid */
.feature { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature .ico { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; margin: 0; }
.feature .feature-title { margin-bottom: 0.2rem; }
.feature p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.step { display: grid; gap: 1.5rem; align-items: center; }
.step-n {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}
.step p { color: var(--ink-soft); }
.step-art { display: flex; justify-content: center; }
.step-art .phone { width: min(58%, 13rem); }
.checks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.checks li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.checks li::before { content: '✓'; color: var(--green); font-weight: 800; flex: none; }
.dark .checks li { color: #c2d4e2; }
.dark .checks li::before { color: var(--green-light); }

/* phone frame */
.phone {
  width: min(100%, 14rem);
  border: 7px solid #101c26;
  border-radius: 1.9rem;
  overflow: hidden;
  background: #101c26;
  box-shadow: var(--shadow-md);
}
.phone img { border-radius: 1.3rem; }
figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.7rem; text-align: center; }
.dark figcaption { color: #8fa9bd; }

/* ------------------------------------------------------------------ label anatomy */

.anatomy { display: grid; gap: 1.75rem; align-items: center; }
.anatomy-figure { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 0.9rem; padding: 0.75rem; box-shadow: var(--shadow-md); }
.anatomy-figure img { border-radius: 0.4rem; }
.pin {
  position: absolute;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(9, 155, 110, 0.22);
}
.anatomy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.anatomy-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; }
.anatomy-list .n {
  flex: none;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--green-wash); color: var(--green-dark);
  font-family: var(--display); font-size: 0.78rem; font-weight: 700;
  display: grid; place-items: center;
}
.anatomy-list b { display: block; }
.anatomy-list span { color: var(--ink-soft); font-size: 0.9rem; }

/* ------------------------------------------------------------------ table */

.table-hint { font-size: 0.82rem; color: var(--ink-faint); margin: 0 0 0.6rem; }
@media (min-width: 900px) { .table-hint { display: none; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 1rem; border: 1px solid var(--rule); background: #fff; }
table.compare { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.compare thead th { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); background: var(--paper); }
table.compare thead th.us { color: #fff; background: var(--navy); }
table.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
table.compare td.us { background: rgba(9, 155, 110, 0.07); font-weight: 600; color: var(--ink); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--green-dark); font-weight: 700; }
.no { color: var(--danger); }

/* ------------------------------------------------------------------ app */

.app-grid { display: grid; gap: 2rem; align-items: center; }
.app-box { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 1rem; padding: 1.25rem; }
.app-box .feature-title { color: #fff; margin-bottom: 0.35rem; }
.app-box p { font-size: 0.92rem; margin: 0; }
.demo-creds { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; color: #9ff0d4; }

/* ------------------------------------------------------------------ price */

.price-card {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 1.2rem;
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
}
.price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.price-value { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
.price-unit { color: var(--ink-faint); font-size: 0.95rem; }
.price-split { display: grid; gap: 1.1rem; margin: 1.2rem 0; }
.price-split > div { padding-bottom: 1.1rem; border-bottom: 1px dashed var(--rule); }
.price-split > div:last-child { border-bottom: 0; padding-bottom: 0; }
.price-note { font-size: 0.88rem; color: var(--ink-faint); }
.guarantees { display: grid; gap: 0.9rem; align-content: start; }
.guarantee { display: flex; gap: 0.7rem; align-items: flex-start; }
.guarantee b { display: block; }
.guarantee p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ form */

.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 1.2rem; padding: 1.5rem; box-shadow: var(--shadow-md); }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); background: #fff; }
.field textarea { min-height: 5.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.8rem; }
.form-status { margin-top: 0.9rem; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; color: var(--green-dark); font-weight: 700; }
.form-status.err { display: block; color: var(--danger); font-weight: 700; }

/* ------------------------------------------------------------------ faq */

details.faq { border-bottom: 1px solid var(--rule); padding: 0.95rem 0; }
details.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.03rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--green); font-weight: 800; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ------------------------------------------------------------------ footer */

footer.site { padding: 2.5rem 0 3.5rem; color: #93aabd; font-size: 0.9rem; }
footer.site a { color: #d5e3ee; }
footer.site img { height: 2rem; width: auto; margin-bottom: 1rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; }

/* sticky mobile CTA — the ad lands on a phone and the offer must stay reachable */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.sticky-cta .btn { flex: 1; }
.sticky-cta strong { font-family: var(--display); font-size: 0.88rem; line-height: 1.2; }
.sticky-cta .btn { font-size: 0.95rem; padding: 0.8rem 1rem; white-space: nowrap; }
body { padding-bottom: 4.75rem; }

/* entrance animation: content is visible first, motion is decoration only */
.reveal { animation: rise 0.5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 639px) {
  /* One device plus the printed label, stacked: overlapping them on a narrow
     screen hides the very screen the hero is meant to show. */
  .hero-art { flex-direction: column; align-items: center; padding-bottom: 0; }
  .hero-art .phone.behind { display: none; }
  .hero-art .phone { width: min(58%, 12.5rem); }
  .hero-label { position: static; width: min(88%, 20rem); margin-top: -2rem; transform: rotate(-2deg); }
}

@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: 'head art' 'body art';
    gap: 0.5rem 3rem;
    align-items: center;
  }
  .hero-head { grid-area: head; align-self: end; }
  .hero-body { grid-area: body; align-self: start; }
  .hero-art { grid-area: art; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .grid.features { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
  .step { grid-template-columns: 1fr 16rem; gap: 3.5rem; }
  .step:nth-child(even) { grid-template-columns: 16rem 1fr; }
  .step:nth-child(even) .step-art { order: -1; }
  .anatomy { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .price-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
  .form-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: start; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
  .phone { width: min(100%, 15rem); }
}

/* ------------------------------------------------------------------ gallery */

.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem 0 0.5rem;
  scrollbar-width: thin;
}
.gallery .shot { flex: none; scroll-snap-align: center; width: 11rem; }
.gallery .phone { width: 100%; }
.gallery figcaption { font-size: 0.82rem; margin-top: 0.5rem; }

/* ------------------------------------------------------------------ devices */

/* Laptop: a lid with a hinge bar, so a wide screenshot reads as a computer
   rather than as a floating rectangle. */
.laptop { width: 100%; }
.laptop .lid {
  border: 8px solid #101c26;
  border-bottom-width: 6px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #101c26;
  box-shadow: var(--shadow-md);
}
.laptop .base {
  height: 0.7rem;
  width: 100%;
  border-radius: 0 0 0.9rem 0.9rem;
  background: linear-gradient(#243241, #0f1b24);
  position: relative;
  box-shadow: 0 18px 30px -22px rgba(3, 32, 70, 0.75);
}
.laptop .base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 0.28rem;
  transform: translateX(-50%);
  border-radius: 0 0 0.3rem 0.3rem;
  background: #0a1219;
}

.tablet {
  border: 9px solid #101c26;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #101c26;
  box-shadow: var(--shadow-md);
}

/* The three-device lineup: phone in front, tablet beside it, laptop behind. */
.devices { display: grid; gap: 1.5rem; justify-items: center; }
.devices .laptop { max-width: 100%; }
.devices .tablet { width: min(62%, 20rem); }
.devices .phone { width: min(42%, 11rem); }

@media (min-width: 900px) {
  /* The smaller devices sit in front of the laptop and hang below its base, so
     the group reads as one desk rather than three pasted rectangles. */
  .devices {
    grid-template-columns: 1fr;
    position: relative;
    padding-bottom: 4.5rem;
  }
  .devices .laptop { width: 88%; margin-right: auto; }
  .devices .tablet {
    position: absolute;
    right: 0;
    bottom: 1.5rem;
    width: 27%;
    z-index: 2;
  }
  .devices .phone {
    position: absolute;
    left: 6%;
    bottom: 0;
    width: 12.5%;
    z-index: 3;
  }
}

.device-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.device-legend div { display: flex; gap: 0.5rem; align-items: flex-start; }
.device-legend b { font-family: var(--display); }
.device-legend span { color: var(--ink-soft); }
.dark .device-legend span { color: #b8d0e0; }
