/*
 * tabwell.ca home page, "Basics free" version (owner, 2026-10-22).
 *
 * Light theme only, by the owner's decision. Colours are the app's own
 * (packages/client/src/theme/colors.ts). The hero is an ink band; each
 * section after it answers one question, with a real capture of the app in a
 * device frame. Headlines use Bricolage Grotesque, served from this site
 * (landing/OFL.txt), because the CSP allows only fonts from 'self'.
 */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/landing/bricolage-grotesque-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F4F5F2;
  --surface: #FFFFFF;
  --chip: #EDEEEA;
  --ink: #17181A;
  --ink-2: #5C6063;
  --ink-3: #9BA0A2;
  --on-ink: #F4F5F2;
  --on-ink-2: #A9AEB1;
  --hair: #E4E6E2;
  --pos: #12855F;
  --pos-soft: #E4EFEA;
  --neg: #C8362F;
  --frame: #1B1C1F;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Bricolage Grotesque', var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
/* .btn sets display, which would otherwise show the hidden Google Play links. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; }

.in {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(56px, env(safe-area-inset-left, 0px));
  padding-right: max(56px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding-inline: 22px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 15.5px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost { color: var(--ink); padding-inline: 12px; }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 14.5px; border-radius: 10px; }
.btn:focus-visible { outline: 2px solid var(--pos); outline-offset: 3px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.note { font-size: 14px; color: var(--ink-2); }

/* ---------- device frames ---------- */
/* A 390 x 763 capture inside an iPhone's 47 px status bar and 34 px home band. */
.phone {
  width: 320px;
  max-width: 100%;
  border-radius: 46px;
  padding: 10px;
  font-size: 12.5px;
  background: var(--frame);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex: none;
}
.phone .scr { border-radius: 36px; overflow: hidden; background: var(--surface); display: grid; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 763; object-fit: cover; object-position: top; }
.sb {
  aspect-ratio: 390 / 47;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8% 0 11%;
  color: var(--ink);
  font-weight: 650;
  font-size: 1em;
  line-height: 1;
}
.sb .island {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 30%;
  height: 58%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
}
.sb .bat { width: 2.1em; height: 1em; border: 1.5px solid currentColor; border-radius: 0.32em; position: relative; opacity: 0.85; }
.sb .bat::after { content: ""; position: absolute; inset: 1.5px; right: 25%; background: currentColor; border-radius: 0.15em; }
.hb { aspect-ratio: 390 / 34; display: flex; align-items: center; justify-content: center; }
.hb::after { content: ""; width: 35%; height: 14%; border-radius: 99px; background: var(--ink); opacity: 0.85; }

.browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--frame);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.55);
  padding-top: 30px;
  position: relative;
}
.browser::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  width: 44px;
  height: 9px;
  background:
    radial-gradient(circle at 4.5px 4.5px, #E0645A 4px, transparent 4.5px),
    radial-gradient(circle at 21px 4.5px, #E3B341 4px, transparent 4.5px),
    radial-gradient(circle at 37.5px 4.5px, #58B865 4px, transparent 4.5px);
}
.browser img { display: block; width: 100%; height: auto; }

/* ---------- hero: an ink band ---------- */
.hero { background: var(--ink); color: var(--on-ink); padding-top: 8px; overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; text-decoration: none; }
.brand img { border-radius: 8px; }
.topnav { display: flex; gap: 10px; align-items: center; }
.hero .btn-ghost { color: var(--on-ink); }
.hero .btn-ink { background: var(--on-ink); color: var(--ink); }
.hero .btn-line { border-color: var(--on-ink-2); color: var(--on-ink); }
.hero .eyebrow { color: var(--on-ink-2); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: 48px;
}
.hero-copy { display: grid; gap: 26px; padding-bottom: 88px; }
.hero h1 { font-size: 62px; line-height: 1; }
.hero .lede { font-size: 19px; color: var(--on-ink-2); max-width: 470px; }
.hero-phones { display: flex; gap: 20px; justify-content: center; align-items: flex-end; margin-bottom: -150px; }
.hero-phones .phone { width: 220px; font-size: 8.5px; border-radius: 34px; padding: 8px; }
.hero-phones .phone .scr { border-radius: 27px; }
.hero-phones .phone:nth-child(2) { transform: translateY(-48px); }

/* ---------- question sections ---------- */
.q { border-top: 1px solid var(--hair); }
.q.first { border-top: 0; }
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 72px;
  align-items: center;
  padding-block: 64px;
}
.feat.flip { grid-template-columns: auto minmax(0, 1fr); }
.feat.flip .copy { order: 2; }
.copy { display: grid; gap: 16px; max-width: 470px; min-width: 0; }
.q h2 { font-size: 44px; line-height: 1.05; }
.q p { font-size: 17.5px; color: var(--ink-2); line-height: 1.55; }
.q .note { font-size: 14px; }
.qn { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.1em; }
.ans {
  justify-self: start;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--pos);
  background: var(--pos-soft);
  padding: 5px 12px;
  border-radius: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

/* 01: the free list */
.incl-card { width: 420px; max-width: 100%; }
.incl li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 2px 10px;
  padding-block: 13px;
  border-bottom: 1px solid var(--hair);
}
.incl li:last-child { border-bottom: 0; }
.incl li::before {
  content: "";
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--pos-soft) no-repeat center / 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.8 7 9 1' fill='none' stroke='%2312855F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.incl b { font-weight: 650; font-size: 16px; }
.incl span { grid-column: 2; font-size: 14px; color: var(--ink-2); }

/* 03: a receipt with one item unassigned */
.receipt { max-width: 420px; margin-top: 8px; }
.receipt .line { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--hair); font-size: 15px; }
.receipt .line:last-child { border-bottom: 0; }
.receipt .who { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.receipt .unassigned { color: var(--neg); }

/* 04: the desktop layout */
.desk { padding-block: 64px; display: grid; gap: 32px; }
.desk-copy { display: grid; gap: 16px; max-width: 720px; }

/* 05: languages */
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--hair); font-size: 14.5px; }

/* ---------- small things, end band, footer ---------- */
.small { padding-block: 72px; display: grid; gap: 26px; border-top: 1px solid var(--hair); }
.small h2 { font-size: 34px; }
.small-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.small-grid div { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.small-grid h3 { font-family: var(--sans); font-size: 18px; letter-spacing: -0.2px; }
.small-grid p { color: var(--ink-2); font-size: 15.5px; }

.end { background: var(--ink); color: var(--on-ink); padding-block: 72px; }
.end .in { display: grid; gap: 22px; justify-items: start; }
.end h2 { font-size: 46px; }
.end .btn-ink { background: var(--on-ink); color: var(--ink); }
.end .btn-line { border-color: var(--on-ink-2); color: var(--on-ink); }

.foot { padding-block: 28px 40px; font-size: 14px; color: var(--ink-2); }
.foot .in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .in {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
  .hero h1 { font-size: 50px; }
  .hero-phones .phone { width: 180px; font-size: 7px; border-radius: 28px; padding: 7px; }
  .hero-phones .phone .scr { border-radius: 22px; }
  .feat { gap: 40px; }
  .q h2 { font-size: 36px; }
  .phone { width: 280px; font-size: 11px; border-radius: 42px; }
  .phone .scr { border-radius: 33px; }
  .incl-card { width: 360px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .in {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .top { padding-block: 14px; }
  .top-create { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 20px; gap: 32px; }
  .hero-copy { padding-bottom: 0; gap: 20px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; }
  .hero-phones { margin-bottom: -110px; gap: 12px; }
  .hero-phones .phone { width: 165px; border-radius: 26px; padding: 6px; font-size: 6.5px; }
  .hero-phones .phone .scr { border-radius: 21px; }
  .hero-phones .phone:nth-child(2) { transform: translateY(-28px); }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 32px; padding-block: 52px; justify-items: center; }
  .feat.flip .copy { order: 0; }
  .copy { max-width: none; justify-self: stretch; }
  .q h2 { font-size: 31px; }
  .q p { font-size: 16.5px; }
  .phone { width: 270px; font-size: 10.5px; border-radius: 40px; padding: 9px; }
  .phone .scr { border-radius: 31px; }
  .incl-card, .receipt { width: 100%; max-width: none; }
  .card { padding: 18px; }
  .desk { padding-block: 52px; }
  .small { padding-block: 52px; }
  .small h2 { font-size: 28px; }
  .small-grid { grid-template-columns: 1fr; }
  .end { padding-block: 52px; }
  .end h2 { font-size: 34px; }
  .foot .in { flex-direction: column; }
  .foot nav { gap: 10px 18px; }
}
