/* taptalk.ca
   Layout: a story that alternates light and deep-navy bands. Product screens are shown large, in
   phone and browser frames, sitting on four-color "puzzle" tiles taken from the TapTalk logo.
   The puzzle colors carry the brand; everything else stays calm and readable.
   Brand kit: navy #0B1F44, communication blue #0EA5FF, sunshine yellow #FFD600, growth green #22C55E,
   energy red #FF3B30, accent purple #8B5CF6; Rubik (headings) and Inter (text). */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0b1f44;
  --muted: #4f5f76;
  --line: #dfe5ee;
  --navy: #0b1f44;
  --sky: #0ea5ff;
  --royal: #1e56c7;  /* the deep blue puzzle piece in the app icon */
  --yellow: #ffd600;
  --green: #22c55e;
  --red: #ff3b30;
  --purple: #8b5cf6;
  --green-soft: #e1f7ea; --royal-soft: #e5eefc;
  --font-display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius: 24px;
  --shadow: 0 1px 2px rgb(11 31 58 / .06), 0 12px 32px -12px rgb(11 31 58 / .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424; --surface: #12203a; --ink: #eef3fa; --muted: #a9b6c9; --line: #22355a;
    --green-soft: #0f3324; --royal-soft: #15284a;
    --shadow: 0 0 0 1px rgb(255 255 255 / .04), 0 18px 40px -16px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1424; --surface: #12203a; --ink: #eef3fa; --muted: #a9b6c9; --line: #22355a;
  --green-soft: #0f3324; --royal-soft: #15284a;
  --shadow: 0 0 0 1px rgb(255 255 255 / .04), 0 18px 40px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
:root[data-theme="dark"] a { color: #7cc4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #7cc4ff; } }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .logo { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--royal); }
@media (max-width: 860px) { .nav .hide-sm { display: none; } .brand .logo { height: 42px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px; border-radius: 16px; font-weight: 700; font-size: 1.03rem; text-decoration: none; border: 2px solid var(--line); background: var(--surface); color: var(--ink) !important; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--sky); border-color: var(--sky); color: var(--navy) !important; box-shadow: 0 5px 0 #0779c2; }
.btn.primary:active { transform: translateY(4px); box-shadow: 0 1px 0 #0779c2; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: .95rem; border-radius: 12px; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Puzzle motif: four brand tiles, like the logo ---------- */
.puzzle { position: absolute; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: 48px; overflow: hidden; transform: rotate(-6deg); box-shadow: 0 40px 80px -30px rgb(11 31 58 / .45); }
.puzzle i:nth-child(1) { background: var(--sky); } .puzzle i:nth-child(2) { background: var(--yellow); }
.puzzle i:nth-child(3) { background: var(--royal); } .puzzle i:nth-child(4) { background: var(--green); }

/* ---------- Phones and browser frames ---------- */
.phone { position: relative; width: 280px; max-width: 100%; aspect-ratio: 585 / 1266; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #1c2533, #0a0f17); box-shadow: 0 2px 0 1px #2c3747 inset, 0 40px 70px -28px rgb(5 15 30 / .55); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.browser { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #edf1f7; color: #4f5f76; font-size: .82rem; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; }
.browser .bar i:nth-child(1) { background: #ff6159; } .browser .bar i:nth-child(2) { background: #ffbd2e; } .browser .bar i:nth-child(3) { background: #28c941; }
.browser .bar span { margin-left: 12px; padding: 4px 14px; border-radius: 999px; background: #fff; }
.browser img { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(60px, 8vw, 110px); background:
  radial-gradient(900px 500px at 85% 20%, color-mix(in srgb, var(--sky) 16%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--yellow) 14%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--navy); background: var(--surface); box-shadow: var(--shadow); padding: 8px 16px 8px 8px; border-radius: 999px; }
.eyebrow .dots { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; padding: 5px; border-radius: 9px; background: var(--bg); }
.eyebrow .dots i { width: 9px; height: 9px; border-radius: 3px; }
:root[data-theme="dark"] .eyebrow { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--ink); } }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5rem); margin: 22px 0 22px; }
.hero h1 .hl { background: linear-gradient(90deg, var(--sky), var(--royal) 55%, #16a34a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.12rem, 2vw, 1.32rem); color: var(--muted); max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.mini-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mini-proof span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }
.mini-proof span i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.stage { position: relative; min-height: 600px; display: grid; place-items: center; }
.stage .puzzle { width: 84%; aspect-ratio: 1; right: -8%; top: 6%; }
.stage .phone.front { position: relative; z-index: 3; width: 290px; transform: rotate(3deg) translateX(4%); }
.stage .phone.back { position: absolute; z-index: 2; width: 230px; left: -2%; top: 16%; transform: rotate(-9deg); }
.bubble { position: absolute; z-index: 4; left: 4%; bottom: 12%; background: var(--surface); border-radius: 24px 24px 24px 8px; padding: 14px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; box-shadow: var(--shadow); border: 3px solid var(--sky); }
.bubble small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.chiprow { position: absolute; z-index: 4; right: 0; top: 10%; display: grid; gap: 10px; }
.chiprow span { padding: 9px 16px; border-radius: 14px; font-weight: 700; color: #0b1f3a; border: 3px solid var(--e); background: var(--f); box-shadow: 0 4px 0 color-mix(in srgb, var(--e) 70%, #000); }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bob 6s ease-in-out infinite; }
  .chiprow span:nth-child(2) { animation: bob 7s ease-in-out infinite .6s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}

/* ---------- Proof band ---------- */
.band-dark { background: var(--navy); color: #eef3fa; }
.proof { padding-block: 26px; }
.proof .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.proof div { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; }
.proof svg { width: 34px; height: 34px; flex: none; padding: 7px; border-radius: 10px; background: rgb(255 255 255 / .08); color: var(--c); }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(70px, 9vw, 120px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 6px; border-radius: 99px; background: var(--c, var(--sky)); }
.dash .kicker { color: #b8c6da; }
.section-head { max-width: 44em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* How it works: three phones */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.how article { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px 24px 0; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto auto auto 1fr; }
.how .num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); background: var(--c); margin-bottom: 16px; }
.how h3 { font-size: 1.4rem; margin-bottom: 8px; }
.how p { color: var(--muted); margin-bottom: 24px; }
.how .shot { align-self: end; height: 310px; overflow: hidden; margin: 0 auto; width: 230px; }
.how .shot .phone { width: 230px; border-radius: 40px 40px 0 0; }
.how .shot .phone img { border-radius: 30px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease; border-top: 5px solid var(--c); }
.feature:hover { transform: translateY(-3px); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 18px; }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.28rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 1.02rem; }

/* Alternating highlights */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.spot + .spot { margin-top: clamp(70px, 9vw, 120px); }
.spot.flip .art { order: 2; }
.spot .art { position: relative; min-height: 580px; display: grid; place-items: center; }
.spot .art .tile { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 56px; background: var(--c); transform: rotate(var(--r, -6deg)); }
.spot .art .tile::after { content: ""; position: absolute; inset: 14%; border-radius: 40px; background: rgb(255 255 255 / .16); }
.spot .art .phone { z-index: 2; width: 270px; }
.spot h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.spot .body > p { color: var(--muted); font-size: 1.15rem; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 30px; height: 30px; border-radius: 10px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b85a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Dashboard band */
.dash { padding-block: clamp(80px, 10vw, 130px); position: relative; overflow: hidden; color: #eef3fa; background:
  radial-gradient(700px 400px at 90% 0%, rgb(0 168 255 / .22), transparent 70%),
  radial-gradient(600px 400px at 0% 100%, rgb(18 184 90 / .16), transparent 70%), var(--navy); }
.dash .section-head { margin-bottom: 0; }
.dash .section-head p { color: #b8c6da; }
.dash .grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.dash .ticks li::before { background-color: rgb(18 184 90 / .18); }
.dash .shots { position: relative; padding-bottom: 70px; }
.dash .shots .float { position: absolute; width: 52%; right: -4%; bottom: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -24px rgb(0 0 0 / .7); border: 6px solid #fff; background: #fff; }
.dash .btn { background: transparent; color: #fff !important; border-color: rgb(255 255 255 / .3); margin-top: 30px; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.story blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.2; }
.story blockquote::after { content: ""; display: block; width: 180px; height: 8px; border-radius: 99px; margin-top: 28px; background: linear-gradient(90deg, var(--sky), var(--royal), var(--green), var(--yellow), var(--red), var(--purple)); }
.story .body { display: grid; gap: 16px; color: var(--muted); font-size: 1.1rem; background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.story .body b { color: var(--ink); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.faq details { background: var(--surface); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--sky); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); display: grid; gap: 10px; }
.faq ol { margin: 0; padding-left: 1.3em; }

/* Final CTA */
.final { padding-block: 0 clamp(70px, 9vw, 110px); }
.final .box { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(44px, 7vw, 80px) 28px; text-align: center; display: grid; gap: 18px; justify-items: center; color: #fff;
  background: linear-gradient(135deg, #12306b 0%, var(--navy) 70%); }
.final .box::before, .final .box::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 60px; transform: rotate(18deg); }
.final .box::before { background: var(--yellow); left: -110px; bottom: -150px; }
.final .box::after { background: var(--green); right: -100px; top: -160px; }
.final .box > * { position: relative; z-index: 1; }
.final img.icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgb(0 0 0 / .3); }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.final p { opacity: .92; max-width: 30em; font-size: 1.15rem; }
.final .btn { background: var(--sky); color: var(--navy) !important; border-color: var(--sky); box-shadow: 0 5px 0 #0779c2; }
.final .tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--yellow); letter-spacing: .02em; }

/* Footer */
footer { background: var(--navy); color: #b8c6da; padding-block: 44px 52px; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
footer img { height: 40px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: #dbe5f2 !important; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Privacy page */
.doc { max-width: 780px; padding-block: clamp(40px, 6vw, 72px); }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.doc .muted { color: var(--muted); }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc .tablewrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .proof .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap, .spot, .dash .grid, .story { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 540px; }
  .spot.flip .art { order: 0; }
  .spot .art { min-height: 500px; }
  .how { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 470px; }
  .stage .phone.front { width: 210px; transform: rotate(3deg) translateX(16%); }
  .stage .phone.back { width: 170px; left: 0; }
  .chiprow { right: -4px; top: 4%; }
  .bubble { font-size: 1.1rem; left: 0; bottom: 6%; }
  .spot .art { min-height: 440px; }
  .spot .art .phone { width: 220px; }
  .dash .shots .float { position: relative; width: 86%; right: auto; margin: -40px 0 0 auto; }
  .dash .shots { padding-bottom: 0; }
}
