/* ==========================================================================
   Tablr landing page
   Values match the B1 design at 1440px wide and scale down to phones.
   ========================================================================== */

:root {
  --blue: #1B3BFF;
  --black: #000000;
  --white: #FFFFFF;
  --grey-100: #F2F2F2;
  --grey-200: #DDDDDD;
  --grey-700: #333333;
  --muted: #6B6B6B;
  --muted-dark: #A6A6A6;
  --placeholder-text: #4D4D4D;
  --hero-note: #D6DCFF;

  --font: 'Archivo', system-ui, sans-serif;
  --radius: 16px;
  --radius-btn: 8px;

  /* 120px side gutter at 1440px, 20px minimum on phones */
  --gutter: clamp(20px, 8.34vw, 120px);

  /* vertical spacing, scaled from the 1440px design */
  --s-40: clamp(24px, 2.8vw, 40px);
  --s-80: clamp(48px, 5.6vw, 80px);
  --s-120: clamp(64px, 8.34vw, 120px);
  --s-160: clamp(80px, 11.1vw, 160px);
  --s-200: clamp(96px, 13.9vw, 200px);

  /* height of the sticky header (logo row + padding) */
  --header-h: 102px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: var(--header-h); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* placeholder values still to be filled in: remove the <mark> once real */
mark.todo {
  background: #FFE94D;
  color: #000;
  padding: 0 .15em;
  border-radius: 3px;
}

/* ---------- type ---------- */
.h-96, .h-72, .h-64, .h-56, .h-48 { font-weight: 800; }
.h-96 { font-size: clamp(52px, 6.67vw, 96px); line-height: .9;  letter-spacing: -0.05em; }
.h-72 { font-size: clamp(42px, 5vw, 72px);    line-height: .945; letter-spacing: -0.04em; }
.h-64 { font-size: clamp(40px, 4.45vw, 64px); line-height: .97; letter-spacing: -0.04em; }
.h-56 { font-size: clamp(40px, 3.9vw, 56px);  line-height: 1;   letter-spacing: -0.04em; }
.h-48 { font-size: clamp(36px, 3.34vw, 48px); line-height: 1.04; letter-spacing: -0.03em; }

.body-20 { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.body-19 { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.58; }
.body-18 { font-size: clamp(17px, 1.25vw, 18px); line-height: 1.56; }
.body-17 { font-size: 17px; line-height: 26px; }
.muted { color: var(--muted); }
.muted-dark { color: var(--muted-dark); }

.stack-28 { display: flex; flex-direction: column; gap: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: opacity .15s, background-color .15s;
}
.btn:hover { opacity: .88; }
.btn--sm { padding: 13px 20px; font-size: 16px; }
.btn--lg { white-space: normal; padding: 20px 30px; font-size: 18px; font-weight: 700; }
.btn--xl { padding: 22px 34px; font-size: 19px; font-weight: 700; flex-shrink: 0; }
.btn--white { background: var(--white); color: var(--black); }
.btn--black { background: var(--black); color: var(--white); }
.btn--outline-white { border: 2px solid var(--white); }
.btn--outline-white.btn--lg { padding: 18px 24px; }
.btn--outline-black { border: 2px solid var(--black); padding: 13px; }
.btn--outline-white:hover, .btn--outline-black:hover { opacity: 1; background: rgba(127,127,127,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; }
.logo--footer { align-items: flex-start; align-self: flex-start; }
.logo--footer svg { width: 26px; height: 26px; }
.logo--footer span { font-size: 24px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: var(--white);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .18); }
.site-header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* the hero fills the rest of the first screen below the header */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding-block: clamp(24px, 5svh, 64px);
}
.main-nav { display: flex; gap: 36px; font-size: 16px; font-weight: 500; }
.main-nav a:hover, .header-login:hover { opacity: .75; }
.main-nav__login { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-login { padding: 12px 18px; font-size: 16px; font-weight: 600; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  transition: transform .2s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 780px) 1fr;
  column-gap: 40px;
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4svh, 36px);
}
.hero h1 {
  /* sized by both width and height so the whole hero fits on laptop screens */
  font-size: clamp(56px, min(11.67vw, 17svh), 168px);
  line-height: .88;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.hero__lede { max-width: 560px; font-size: 21px; line-height: 32px; }
.hero__note { font-size: 15px; line-height: 22px; color: var(--hero-note); }

/* phone mockup */
.phone {
  justify-self: end;
  margin-right: clamp(0px, 2.1vw, 30px);
  /* shrink the phone on short screens so it fits in the first view */
  height: clamp(520px, calc(100svh - var(--header-h) - 2 * clamp(24px, 5svh, 64px)), 740px);
  aspect-ratio: 360 / 740;
  padding: 12px;
  border-radius: 52px;
  background: var(--black);
  position: relative;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__shop { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.phone__shop strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.phone__shop span { font-size: 14px; color: var(--muted); }
.phone__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 0 18px 22px;
}
.phone__item { display: flex; flex-direction: column; gap: 5px; min-height: 0; font-size: 13px; }
.phone__item b { font-weight: 600; }
/* thumbnails shrink with the phone so labels never get clipped */
.phone__thumb { flex: 1; min-height: 40px; border-radius: 12px; background: var(--grey-100); position: relative; overflow: hidden; }
.phone__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- photo placeholders ---------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  line-height: 22px;
  color: var(--placeholder-text);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--phone {
  flex-shrink: 0;
  aspect-ratio: 336 / 200;
  border-radius: 0;
  padding: 16px;
  font-size: 12px;
  line-height: 17px;
}
.photo--problem { height: 560px; }
.photo--tile { aspect-ratio: 384 / 460; }
.photo--dark { background: var(--grey-700); color: var(--muted-dark); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* problem */
.problem {
  padding-top: var(--s-200);
  padding-bottom: var(--s-120);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  align-items: center;
}

/* how */
.how {
  padding-top: var(--s-80);
  padding-bottom: var(--s-120);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--black);
}
.step__num { font-size: 20px; font-weight: 800; }
.step h3 { font-size: 24px; line-height: 30px; font-weight: 700; }
.step p { font-size: 17px; line-height: 26px; color: var(--muted); }

/* shared section head: title left, blurb right */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

/* whatever you sell */
.sell {
  padding-top: var(--s-80);
  padding-bottom: var(--s-120);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 18px; }
.tile h3 { font-size: 24px; font-weight: 700; }
.tile p { font-size: 17px; line-height: 26px; color: var(--muted); }

/* features */
.features {
  padding-top: var(--s-80);
  padding-bottom: var(--s-160);
  display: grid;
  grid-template-columns: 368fr 784fr;
  column-gap: 48px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 40px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-200);
}
.feature h3 { font-size: 21px; font-weight: 700; }
.feature p { font-size: 16px; line-height: 24px; color: var(--muted); }

/* payments */
.payments { background: var(--black); color: var(--white); padding-block: var(--s-120); }
.payments__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  align-items: center;
}
.payments__visual { position: relative; height: 620px; }
.payments__visual .photo { position: absolute; left: 0; top: 0; width: 76.4%; height: 560px; }
.payout {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.payout__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.payout__rows { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.payout__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--grey-200);
}
.payout__rows dt { color: var(--muted); }
.payout__rows dd { margin: 0; font-weight: 600; white-space: nowrap; }
.payout__rows > .payout__total { padding: 12px 0 0; border-top: 2px solid var(--black); }
.payout__total dt { color: var(--black); font-weight: 700; }
.payout__total dd { font-weight: 800; }

/* pricing */
.pricing {
  padding-top: var(--s-160);
  padding-bottom: var(--s-120);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--grey-100);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan--dark { background: var(--black); color: var(--white); }
.plan__head { display: flex; flex-direction: column; gap: 6px; }
.plan__name { font-size: 22px; font-weight: 700; }
.plan__for { font-size: 16px; color: var(--muted); }
.plan--dark .plan__for { color: var(--muted-dark); }
.plan__pricing { display: flex; flex-direction: column; gap: 6px; }
.plan__price { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; }
.plan__price small { margin-left: 4px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan--dark .plan__price small { color: var(--muted-dark); }
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--grey-200);
  color: var(--black);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  vertical-align: 1px;
  white-space: nowrap;
}
.plan--dark .soon { background: var(--grey-700); color: var(--white); }

/* features shared by every plan, listed once under the cards */
.plans-includes {
  display: grid;
  grid-template-columns: 368fr 784fr;
  column-gap: 48px;
  row-gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-200);
}
.plans-includes h3 { font-size: 21px; font-weight: 700; }
.plans-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 48px;
  font-size: 16px;
  line-height: 22px;
}
.plans-includes li { position: relative; padding-left: 28px; }
.plans-includes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid var(--blue);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan ul {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 22px;
}

/* faq */
.faq {
  padding-top: var(--s-40);
  padding-bottom: var(--s-160);
  display: grid;
  grid-template-columns: 368fr 784fr;
  column-gap: 48px;
}
.faq__intro { display: flex; flex-direction: column; gap: 20px; }
.faq__list { display: flex; flex-direction: column; }
.qa {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--black);
}
.qa:last-child { border-bottom: 1px solid var(--black); }
.qa h3 { font-size: 21px; line-height: 28px; font-weight: 600; }
.qa p { font-size: 17px; line-height: 26px; color: var(--muted); }

/* footer */
.site-footer { background: var(--black); color: var(--white); padding: var(--s-120) 0 48px; }
.site-footer > .container { display: flex; flex-direction: column; gap: 64px; }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-700);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer-col span { font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.footer-col a:hover { opacity: .75; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-dark);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* small laptops / tablets landscape: collapse the nav into a menu */
@media (max-width: 1080px) {
  .header-login { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% - 12px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 20;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 12px;
    background: var(--white);
    color: var(--black);
    font-size: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  }
  .main-nav a { padding: 14px 16px; border-radius: 8px; }
  .main-nav a:hover { opacity: 1; background: var(--grey-100); }
  .main-nav__login { display: block; font-weight: 600; border-top: 1px solid var(--grey-200); }
  .nav-open .main-nav { display: flex; }
}

/* tablet: single-column layouts */
@media (max-width: 1024px) {
  /* no phone mockup on tablets and phones: the hero is just the copy, centred in the screen */
  .hero { padding-block: 32px 48px; }
  .hero__body { grid-template-columns: minmax(0, 1fr); align-items: center; }
  .hero h1 { font-size: clamp(56px, 16vw, 150px); }
  .phone { display: none; }
  .problem { padding-top: var(--s-120); }

  .problem,
  .features,
  .faq,
  .payments__inner { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .photo--problem { height: auto; aspect-ratio: 4 / 3; }

  .payments__visual { height: auto; }
  .payments__visual .photo { position: relative; width: 82%; height: auto; aspect-ratio: 440 / 560; }
  .payout { position: relative; margin: -180px 0 0 auto; width: min(340px, 88%); }

  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .plans-includes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .plans-includes ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .steps, .tiles { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tiles .photo--tile { aspect-ratio: 4 / 3; }
  .section-head, .footer-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .how { gap: 40px; }
  .footer-cta { gap: 32px; }
}

/* phones */
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .logo svg { width: 26px; height: 26px; }
  .logo span { font-size: 24px; }
  .header-actions { gap: 4px; }
  .btn--sm { padding: 11px 14px; font-size: 15px; }
  .menu-toggle { margin-right: -10px; }

  .hero__copy { gap: 28px; }
  .hero__lede { font-size: 18px; line-height: 28px; }
  .btn-row .btn { flex: 1 1 100%; }

  .features__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .step h3, .tile h3 { font-size: 22px; line-height: 28px; }
  .qa h3 { font-size: 19px; line-height: 26px; }
  .plan { padding: 28px; }
  .payout { padding: 22px; margin-top: -120px; width: 92%; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer-links .logo { grid-column: 1 / -1; }
  .btn--xl { width: 100%; }
}

@media (max-width: 360px) {
  .btn--sm { padding: 10px 11px; font-size: 14px; }
}
