/* ============================================================
   Subscribfy - paid ads landing page
   Palette, typography and layout measured directly on
   shopify.com/ro/free-trial (1440px):
     1038px container, 2 x 506.75 grid with a 56/24 gap,
     #f5f5f5 cards with 24px radius, hero card 40px radius, 32px padding,
     h1 44/44 ls -0.32px w500, body 18/22.5 at 60% black,
     FAQ rows with a 2px border, sections pt40 / pb80.
   No purple: the CTA band is black, like their buttons.
   ============================================================ */

/* ---------- font: variable Inter, the same files Shopify
   serves as "Shopify-Inter" (Inter is OFL, fine to self-host) ---- */

@font-face {
  font-family: 'InterVar';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-style: normal; font-weight: 100 900; font-display: swap;
  unicode-range: U+0-19F, U+1B1-24F, U+250-2FF, U+300-36F, U+2000-218F, U+2190-22FF, U+2400-2426, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2B00-2BFF, U+FB00-FB4F, U+FE20-FE2F;
}
@font-face {
  font-family: 'InterVar';
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  font-style: normal; font-weight: 100 900; font-display: swap;
  unicode-range: U+1A0-1A1, U+1AF-1B0, U+1E00-1EFF;
}

:root {
  --bg:        #ffffff;
  --hero-bg:   #ededed;   /* Shopify's hero section background */
  --card:      #f5f5f5;   /* feature cards */
  --card-2:    #ebebeb;
  --line:      #e5e7eb;

  --ink:    #000000;
  --ink-60: rgba(0,0,0,.6);   /* paragraphs */
  --ink-45: rgba(0,0,0,.45);  /* secondary text */
  --ink-30: rgba(0,0,0,.3);

  --dark:     #171717;   /* buttons, CTA band */
  --dark-2:   #000000;
  --on-dark:  #ffffff;

  --dark-panel: #0d100f;  /* backdrop behind our dark product renders */

  --r-card:  24px;
  --r-hero:  40px;
  --r-band:  32px;
  --r-md:    16px;

  --pad-x: clamp(16px, 5vw, 40px);
  --sec-pt: 40px;
  --sec-pb: clamp(56px, 6vw, 80px);
  --maxw: 1038px;

  --font: 'InterVar', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
#top, #start, #faq { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--pad-x) * 2); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- typography (measured values) --------------- */

h1, h2, h3 { margin: 0; color: var(--ink); }

h1 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.0;  letter-spacing: -0.32px; font-weight: 500; }
h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.04; letter-spacing: -0.8px;  font-weight: 450; }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -0.2px;  font-weight: 500; }
p  { margin: 0; }

.lede   { font-size: 18px; line-height: 1.25; color: var(--ink-60); font-weight: 400; }
.small  { font-size: 15px; line-height: 1.35; color: var(--ink-60); }
.cap    { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); }

/* ---------- buttons (black pills, like Shopify) --------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 500;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark   { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: var(--dark-2); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn-light  { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-outline{ background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink-45); }

/* Round arrow submit button. The bottom CTA band uses a black 52px circle
   on a white pill; the hero overrides it to Shopify's 60px dark button. */
.btn-arrow {
  width: 52px; height: 52px; flex: 0 0 52px; padding: 0; border-radius: 50%;
  background: var(--dark); color: #fff; line-height: 1;
}
.btn-arrow:hover { background: #3f3f46; transform: none; }
.btn-arrow svg { width: 22px; height: 22px; display: block; }
.hero-form .btn-arrow { width: 60px; height: 60px; flex-basis: 60px; background: #171717; }
.hero-form .btn-arrow:hover { background: #262626; }

/* ---------- navbar -------------------------------------- */

/* Only the logo, centred over the collage like Shopify's. Absolute, not
   fixed: it leaves with the hero on scroll. Shopify's logo box is 193x68
   at 31px from the top on both desktop and mobile; 60px of height gives our
   wordmark the same ~196px visible width. */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  padding: 31px var(--pad-x);
}
.nav .brand img {
  height: 60px; width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,.45));
}

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

.hero { position: relative; min-height: 900px; display: flex; align-items: center; overflow: hidden; background: var(--hero-bg); }

/* Collage: six columns of client photos. Shopify runs a 20s video here;
   we build the same effect from stills. */
.collage {
  position: absolute; inset: -24% -12%;
  display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 100%;          /* one row, as tall as the whole box */
  transform-origin: 58% 62%;
  z-index: 0; will-change: transform;
  /* Shopify's video cycle: 20s, the collage pushes forward on a diagonal
     while growing, then pulls back. `alternate` loops it with no jump. */
  animation: depth 10s ease-in-out infinite alternate;  /* 10s forward + 10s back = their 20s cycle */
}
@keyframes depth {
  from { transform: rotate(-7deg) scale(1.06) translate3d(0, 0, 0); }
  to   { transform: rotate(-7deg) scale(1.21) translate3d(-2.4%, -3.2%, 0); }
}
.collage .col { overflow: hidden; height: 100%; min-height: 0; }
/* Columns are static: the whole collage moves, not each column, so the
   tiles keep their relative positions.
   Coverage is guaranteed by CSS alone: the track is as tall as the column
   and the photos grow (flex-grow) as much as needed to fill it. Without
   this, when the cloning JS did not run, the collage stopped halfway
   down the hero. */
.collage .track { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.collage img {
  flex: 1 0 auto; min-height: 0;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); background: var(--card-2);
}

/* light scrim: the collage stays colourful, like Shopify's */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  /* desktop: no white fade at the bottom, the photos run right up to the
     logo band like Shopify's; only the top is darkened for the logo */
  background:
    radial-gradient(130% 100% at 50% 50%, rgba(0,0,0,.08) 0%, rgba(0,0,0,.24) 60%, rgba(0,0,0,.40) 100%),
    linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 12%, rgba(0,0,0,0) 26%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding: 130px 0 70px; }
.hero-stack { width: min(477px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.hero-card { background: #fff; border-radius: var(--r-hero); padding: 32px; box-shadow: 0 24px 64px rgba(0,0,0,.24); }
.hero-card h1 { margin-bottom: 12px; }
.hero-card p  { color: var(--ink-60); font-size: 18px; line-height: 1.25; }
.hero-card strong { color: var(--ink); font-weight: 600; }

/* "Start for free" card, measured on Shopify's .hero-cta-live:
   #02090a background, 40 radius, 16/10/10 padding, 24/36 w400 title,
   12px note at 50% white, then the full-width 68px email field */
.hero-form {
  background: #02090a; color: #fff; border-radius: var(--r-hero);
  padding: 16px 10px 10px; box-shadow: 0 24px 64px rgba(0,0,0,.24);
}
/* The card detaches and pins to the bottom after the hero, like
   Shopify's .hero-cta-live: fixed, 16px from the bottom edge, same width
   and radius. On mobile it stays in the page, exactly as theirs does. */
.hero-slot { display: block; }
.hero-form.pinned {
  position: fixed; left: 50%; bottom: 16px; z-index: 35;
  width: 477px; max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  animation: pinIn .55s cubic-bezier(.16, 1, .3, 1);
}
@keyframes pinIn {
  from { opacity: 0; transform: translateX(-50%) translateY(26px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-form h2 { font-size: 24px; line-height: 36px; letter-spacing: normal; font-weight: 400; color: #fff; padding: 0 20px; }
.hero-form .fine { font-size: 12px; line-height: 16px; color: rgba(255,255,255,.5); padding: 0 20px; margin-bottom: 14px; }
/* on mobile Shopify moves the note below the card in black; hidden on desktop */
.fine-out { display: none; }

/* Floating-label field, like Shopify's: empty placeholder + a label over
   the input. Their values: 20px label, on focus translate(0,-100%) +
   scale(.75) from the top-left corner, 28/24/8 input padding, and a
   .3s cubic-bezier(0,0,.2,1) transition. The base (white) style is for the
   bottom CTA band, where Shopify also uses a white pill; the hero
   overrides it to the dark version. */
.field {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 999px; padding: 4px;
  transition: box-shadow .3s cubic-bezier(0,0,.2,1);
}
.field:focus-within { box-shadow: 0 0 0 2px var(--dark); }
/* honeypot for bots: off screen, never focusable by people */
.field .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fld { position: relative; flex: 1; min-width: 0; display: block; align-self: stretch; }
.fld input {
  width: 100%; height: 100%; min-height: 60px;
  background: transparent; border: 0; outline: 0; border-radius: 999px;
  color: var(--ink); caret-color: var(--ink); font: inherit; font-size: 16px; line-height: 24px;
  padding: 28px 20px 8px;
}
.fld label {
  position: absolute; left: 16px; top: 50%;
  font-size: 20px; line-height: 28px; color: var(--ink); opacity: .55;
  transform: translateY(-50%); transform-origin: 0 0;
  pointer-events: none; white-space: nowrap;
  transition: transform .3s cubic-bezier(0,0,.2,1);
}
.fld input:focus + label,
.fld input:not(:placeholder-shown) + label { transform: translate(4px, -100%) scale(.75); }

/* Dark hero variant: #171717 pill with a 2px grey ring.
   Shopify turns the ring purple on focus; here it turns white. */
.hero-form .field { background: #171717; box-shadow: inset 0 0 0 2px #444645; }
.hero-form .field:focus-within { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.hero-form .fld input { color: #fff; caret-color: #fff; }
.hero-form .fld label { color: #fff; opacity: .7; }

/* ---------- logos -------------------------------------- */

/* Like Shopify: one static row of seven black logos on desktop, and every
   logo in a carousel on mobile. Each logo carries its own --h so wide
   wordmarks and square marks read at the same optical weight. */
.logos { padding: 56px 0 40px; }
.logos .cap { text-align: center; margin-bottom: 32px; }
.logo-rail { overflow: hidden; }
.logo-track { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-track img { flex: none; width: auto; height: var(--h); transition: transform .2s var(--ease); }
.logo-track img:hover { transform: scale(1.06); }
.logo-track img:not(.top) { display: none; }

@keyframes logo-run { to { transform: translateX(-50%); } }

/* ---------- feature grid ------------------------------- */

/* Four cards, as on Shopify: 2 x 2 grid, 507 x 380 panels (4:3) on #f5f5f5,
   24px radius, a white kicker pill (9px uppercase, 10px padding) at 16/16,
   title 24/33.6 w400 16px under the panel, then the description. */
.features { padding: var(--sec-pt) 0 var(--sec-pb); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }

.feat .panel {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--card); border-radius: var(--r-card);
  /* 3D tilt towards the cursor (--rx / --ry set by app.js on desktop) */
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .3s ease-out;
}
.feat:hover .panel { box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
/* soft light that follows the cursor (--gx / --gy) */
.feat .panel::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light;          /* brightens without washing out the blacks */
  opacity: 0; transition: opacity .3s ease-out;
}
.feat:hover .panel::after { opacity: 1; }
.feat .panel .tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: #fff; color: #000; border-radius: 999px; padding: 10px;
  font-size: 9px; line-height: 13.5px; font-weight: 500; letter-spacing: .225px; text-transform: uppercase;
}

/* Card art: the flat image (.shot) plus clipped copies of its elements
   (.hs), each cut to the element's outline (--c) and animated around its own
   centre (--o). A copy only ever scales up or rotates in place, so it always
   covers the original underneath and nothing doubles up. The whole .art
   settles in from a slight zoom when the card scrolls into view. */
.feat .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.js .feat.reveal .art { transform: scale(1.06); }
.js .feat.reveal.in .art { transform: none; }
/* fill, not cover: the copies use background-size 100% 100%, so the base must
   be stretched the same way (the panel is 380.25px tall, a hair off 4:3) */
.feat .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }

.feat .hs {
  position: absolute; inset: 0; display: block; pointer-events: none;
  background-size: 100% 100%; background-repeat: no-repeat;
  clip-path: var(--c); transform-origin: var(--o);
}
/* white UI cards rise a little while the card is hovered */
.feat .hs.lift { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.feat:hover .hs.lift { transform: scale(var(--s, 1.03)); }
/* coins breathe all the time, like Shopify's scale-coin (1 -> 1.06 -> 1) */
.feat .hs.coin { animation: coin-idle 3.2s ease-in-out var(--d, 0s) infinite; }
@keyframes coin-idle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* .play is added by app.js when the card enters the viewport and on every
   hover: coins hop, the checkbox pops, the renew icon spins, the credit bar
   refills and the revenue chart draws itself from left to right. */
.feat.play .hs.coin { animation: coin-hop .9s cubic-bezier(.3, 1.5, .5, 1) var(--d2, 0s) both; }
@keyframes coin-hop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.2); } 70% { transform: scale(.97); } }
.feat.play .hs.hop { animation: hop .7s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
@keyframes hop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.25); } }
.feat.play .hs.spin { animation: spin .9s cubic-bezier(.45, 0, .2, 1) .15s both; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* a curtain in the background colour covers the bar / chart, then slides off */
.feat .wipe { position: absolute; display: block; pointer-events: none; transform: scaleX(0); transform-origin: 100% 50%; }
.feat.play .wipe { animation: wipe 1.1s cubic-bezier(.45, 0, .2, 1) .1s both; }
@keyframes wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Placeholder until the photos arrive: dashed frame, the slot name and the
   size to export, with a slow sheen so the card doesn't read as broken. */
.feat .ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 64px 32px 32px; text-align: center; color: var(--ink-45);
  border-radius: inherit; outline: 2px dashed #d4d4d8; outline-offset: -14px;
  background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 65%)
              -160% 0 / 55% 100% no-repeat var(--card);
  animation: ph-sheen 3.2s ease-in-out infinite;
}
@keyframes ph-sheen { to { background-position: 260% 0; } }
.feat .ph svg { width: 34px; height: 34px; margin-bottom: 4px; opacity: .5; }
.feat .ph b { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink-60); }
.feat .ph span { font-size: 13px; line-height: 18px; max-width: 32ch; }
.feat .ph code { font: 500 12px/16px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-60);
                 background: #fff; border-radius: 6px; padding: 2px 6px; }

.feat .txt { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.feat .txt h3 { font-size: 24px; line-height: 33.6px; letter-spacing: -.24px; font-weight: 400; }
.feat .txt p { color: var(--ink-60); font-size: 18px; line-height: 22.5px; }

/* ---------- stats -------------------------------------- */

.stats { padding: var(--sec-pt) 0 var(--sec-pb); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-size: clamp(38px, 3.6vw, 48px); font-weight: 500; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 16px; line-height: 1.3; color: var(--ink-60); }
.stat .b { font-size: 13px; color: var(--ink-45); }

/* ---------- pull quote --------------------------------- */

.pull { padding: var(--sec-pt) 0 var(--sec-pb); }
/* Shopify's quote: 44/48.4 w500 across ~90% of the container (934 of 1038px) */
.pull blockquote { margin: 0; font-size: 44px; line-height: 48.4px; letter-spacing: -0.44px; font-weight: 500; max-width: 934px; }
.pull .by { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.pull .by img { height: 24px; width: auto; object-fit: contain; opacity: .5; }
.pull .by span { font-size: 24px; line-height: 33.6px; color: rgba(0, 0, 0, .5); }

/* ---------- CTA band (Shopify's current black band) ------- */
/* measured on shopify.com at 1440: #000, 1px border at 30% white, radius 24,
   padding 64; headline 64/69 w330 in #a1a1aa with one phrase in white;
   points 24px white with a check; email field 56px tall, 20% white, with a
   48px white round button. On mobile the band runs edge to edge. */
.cta-band { padding: var(--sec-pt) 0 var(--sec-pb); }
.cta-inner {
  background: #000; border: 1px solid rgba(255, 255, 255, .3); border-radius: 24px;
  padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.cta-copy h2 { font-size: 64px; line-height: 69px; font-weight: 330; letter-spacing: -1.6px; color: #a1a1aa; }
.cta-copy h2 span { color: #fff; }
.cta-points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-points li {
  position: relative; padding-left: 48px; color: #fff; font-size: 24px; line-height: 31px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 7.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 12px 9px / 14px 14px no-repeat;
}
.cta-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 32px; }
/* Subscribfy icon over the Built for Shopify badge, where Shopify puts its bag */
.cta-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
/* the SVG pads its S+ (~11% right, ~17% left): pull it so the glyph, not the
   box, lines up with the badge edge */
.cta-icon { width: 80px; height: 80px; border-radius: 16px; margin: 0 -9px -6px 0; }   /* -6px: badge ~8px under the glyph */
.cta-badge { height: 30px; width: auto; }
.cta-form { width: 100%; max-width: 495px; }
.cta-inner .field { background: rgba(255, 255, 255, .2); }
.cta-inner .field:focus-within { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.cta-inner .fld input { min-height: 48px; padding: 22px 20px 4px; color: #fff; caret-color: #fff; }
.cta-inner .fld label { font-size: 16px; line-height: 24px; color: #fff; opacity: .9; }
.cta-inner .btn-arrow { width: 48px; height: 48px; flex-basis: 48px; background: #fff; color: #000; }
.cta-inner .btn-arrow:hover { background: #e4e4e7; }
.cta-inner .fine { font-size: 12px; line-height: 20px; color: rgba(255, 255, 255, .7); padding: 4px 0 0 24px; }

/* ---------- FAQ (2px border, 16/400 button) ------------ */

.faq { padding: var(--sec-pt) 0 var(--sec-pb); }
.faq h2 { margin-bottom: 28px; }
.faq .item { border-bottom: 2px solid var(--line); }
.faq .q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 24px 56px 24px 0; position: relative;
  transition: opacity .18s var(--ease);
}
.faq .q:hover { opacity: .62; }
.faq .q::after {
  content: ''; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border-radius: 50%; background: var(--dark);
}
.faq .q::before {
  content: ''; position: absolute; right: 8px; top: 50%; z-index: 1; translate: 0 -50%;
  width: 16px; height: 16px;
  background: linear-gradient(#fff,#fff) center/16px 1.5px no-repeat,
              linear-gradient(#fff,#fff) center/1.5px 16px no-repeat;
  transition: background-size .28s var(--ease);
}
.faq .q[aria-expanded="true"]::before { background-size: 16px 1.5px, 1.5px 0; }
.faq .answer { overflow: hidden; height: 0; }
.faq .answer p { padding: 0 56px 24px 0; color: var(--ink-60); font-size: 16px; line-height: 1.45; max-width: 80ch; }

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

/* measured on Shopify's footer at 1440: mark 40px tall on the left, links in a
   row on the right, 16px w420 black, 40px apart; at 390 all centred and stacked. */
/* the bottom padding keeps the pinned "Start for free" card (160px + 16px) off
   the links at the very end of the page; Shopify leaves ~156px for the same reason */
.foot { padding: 40px 0 200px; }
.foot .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.foot .brand img { height: 40px; width: auto; display: block; }
.foot nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.foot nav li { line-height: 24px; }
.foot nav a { font-size: 16px; line-height: 20px; font-weight: 420; color: #000; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal on scroll ---------------------------- */

/* without JS the page stays fully visible: only hide when .js is present */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

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

@media (max-width: 1000px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-side { align-items: stretch; }
  .cta-brand { align-self: flex-end; }
  .feat-grid { grid-template-columns: 1fr; gap: 64px 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .collage   { grid-template-columns: repeat(4, 1fr); }
  .collage .col:nth-child(n+5) { display: none; }
  .hero      { min-height: 760px; }
}

/* Below 1000px the row of seven no longer fits: switch to Shopify's mobile
   carousel. Full-bleed, all logos plus a duplicate set, sliding left by
   exactly one set (--dur keeps their 24px/s). Each logo owns its right gap,
   so -50% lands precisely on the start of the copy. */
@media (max-width: 1000px) {
  .logo-rail { margin: 0 calc(var(--pad-x) * -1); }
  .logo-track { width: max-content; justify-content: flex-start; gap: 0; animation: logo-run var(--dur, 135s) linear infinite; }
  .logo-track img:not(.top) { display: block; }
  .logo-track img { height: calc(var(--h) * 1.15); margin-right: 56px; }
  .logo-track img:hover { transform: none; }
}

@media (max-width: 620px) {
  /* Shopify's footer on phones: mark and links centred, links stacked */
  .foot { padding-bottom: 72px; }   /* nothing is pinned on phones */
  .foot .row { flex-direction: column; align-items: center; gap: 32px; }
  .foot nav ul { flex-direction: column; align-items: center; margin: 0; }
  /* Shopify's band goes edge to edge on phones, one column, no mark */
  .cta-band { padding: var(--sec-pt) 0 0; }
  .cta-band .wrap { padding: 0; }
  .cta-inner { border: 0; border-radius: 0; padding: 40px; grid-template-columns: 1fr; }
  .cta-copy h2 { font-size: 56px; line-height: 60px; }
  .cta-points { margin-top: 28px; gap: 12px; }
  .cta-points li { font-size: 18px; line-height: 23px; padding-left: 32px; background-position: 2px 5px; }
  /* phones: icon and badge sit above the email field, left-aligned */
  .cta-side { gap: 24px; margin-top: 8px; }
  .cta-brand { align-self: flex-start; align-items: flex-start; gap: 0; }
  .cta-icon { width: 64px; height: 64px; border-radius: 13px; margin: 0 0 -4px -11px; }
  .cta-badge { height: 26px; }
  /* values measured on shopify.com/ro/free-trial at 390x844:
     h1 30/30, 359px hero card, single 343px column with a 64/16 gap */
  body { font-size: 17px; }
  /* the hero stack sits in the lower part of the screen, like Shopify's
     (their card starts at ~42% of the viewport height) */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-inner { padding: 104px 0 110px; }   /* Shopify leaves ~111px under the note */
  h1 { font-size: 30px; line-height: 30px; }
  h2 { font-size: 28px; line-height: 1.07; }
  :root { --pad-x: 16px; }
  /* two columns of big tiles, as in Shopify's portrait hero video */
  .collage { grid-template-columns: repeat(2, 1fr); }
  .collage .col:nth-child(n+3) { display: none; }
  .hero .wrap { padding: 0 8px; }
  .hero-stack { width: min(359px, 100%); gap: 8px; }
  .feat-grid { gap: 64px 16px; }
  .hero-card { padding: 32px 24px; }
  .hero-card p { font-size: 16px; line-height: 20px; }
  /* Shopify's dark block is wider than the white card on mobile (374 vs 359) */
  .hero-form { padding: 16px 8px 8px; margin: 0 -7px; }
  /* mobile: fade the bottom of the hero to white so the note below the card
     sits on a clean background, as on Shopify's portrait hero */
  .hero::after {
    background:
      radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,.06) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.3) 100%),
      linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 20%),
      linear-gradient(180deg, rgba(255,255,255,0) 74%, rgba(255,255,255,.92) 86%, #fff 100%);
  }
  .hero-form h2 { font-size: 24px; line-height: 36px; padding: 0 16px; margin-bottom: 4px; }
  .hero-form .fine { display: none; }
  .fine-out { display: block; font-size: 12px; line-height: 16px; color: #000; margin: 6px 0 0 2px; }
  .hero-form.pinned { position: static; width: auto; max-width: none; transform: none;
                      box-shadow: 0 24px 64px rgba(0,0,0,.24); animation: none; }
  .hero-slot { height: auto !important; }
  .logos { padding: 44px 0 32px; }
  .logos .cap { margin-bottom: 24px; }
  .stat-grid { grid-template-columns: 1fr; }
  /* Shopify mobile: 343 x 257 panels, title 22/26 */
  .feat .txt h3 { font-size: 22px; line-height: 26px; letter-spacing: -.11px; }
  .feat .txt p { font-size: 16px; line-height: 20px; }
  .feat .ph { padding: 56px 24px 24px; }
  .pull blockquote { max-width: none; font-size: 30px; line-height: 34.2px; letter-spacing: normal; }
  .pull .by span { font-size: 18px; line-height: 24px; }
  .pull .by img { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .collage { animation: none; transform: rotate(-7deg) scale(1.1); }
}
