/* TalkMate website. Brand colours follow the app (teal primary, indigo to cyan hero). */
:root {
  --bg: #F6F9F9;
  --surface: #FFFFFF;
  --ink: #0B1020;
  --muted: #4E5869;
  --line: #DFE7E8;
  --teal: #0D9488;
  --teal-soft: #E1F5F2;
  --indigo: #4F46E5;
  --dark: #0A0B10;
  --dark-2: #14161F;
  --dark-line: rgba(255, 255, 255, 0.10);
  --dark-muted: #A3B1C2;
  --display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --body: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 720px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h3 + p, .prose p + h3, .prose ul + h3, .prose ol + p, .prose p + ol { margin-top: 14px; }
.prose h2 + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0 0; }
.prose li + li { margin-top: 6px; }
.prose h3 { margin-top: 26px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 249, 249, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 20px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; flex: 1; min-width: 0; gap: 22px; margin-left: auto; align-items: center; }
.nav a { flex-shrink: 0; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 18px; height: 18px; }
.mobile-menu nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; display: grid; gap: 2px; width: min(320px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 40px rgba(11, 16, 32, 0.16); }
.mobile-menu nav a { display: block; padding: 11px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.mobile-menu nav a.btn { margin-top: 4px; background: var(--ink); color: #fff; text-align: center; }
.mobile-menu nav a.btn:hover { background: #1E2537; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px; }
.btn:hover { background: #1E2537; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.nav a.btn { color: #fff; }
@media (max-width: 860px) { .top .wrap { gap: 12px; } .nav { display: none; } .mobile-menu { display: block; } }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, #E9FBF7 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 .k, .page-head h1 .k { color: var(--teal); }
.hero .lead { font-size: 20px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 40px; } }

/* Real app screens in a phone frame (the app's own layout, 392 × 850) */
.screen { width: 260px; height: auto; aspect-ratio: 392 / 850; border-radius: 34px; border: 7px solid #0B1020; background: #0A0B10; box-shadow: 0 30px 60px -28px rgba(11, 16, 32, 0.55); }
.spotlight .screen { border-color: #23283A; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.hero-shots { position: relative; justify-self: center; width: 440px; max-width: 100%; height: 600px; }
.hero-shots .screen { position: absolute; }
.hero-shots .back { left: 0; top: 46px; width: 236px; transform: rotate(-5deg); }
.hero-shots .front { right: 0; top: 0; width: 268px; }
@media (max-width: 860px) {
  .hero-shots { width: 100%; height: auto; display: flex; justify-content: center; }
  .hero-shots .back { display: none; }
  .hero-shots .front { position: static; width: min(268px, 78%); }
}

/* Sections */
section { padding: 72px 0; }
section.tint { background: var(--surface); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 42em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.stat span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; list-style: none; padding: 0; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps p { color: var(--muted); margin-top: 6px; }
.steps .screen { width: 100%; max-width: 230px; margin: 18px auto 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: flex; flex-direction: column; gap: 64px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.feature.flip { grid-template-columns: 260px 1fr; }
.feature.flip .feature-text { order: 2; }
.feature.two { grid-template-columns: 1fr auto; }
.feature.two.flip { grid-template-columns: auto 1fr; }
.feature-text p { color: var(--muted); margin-top: 10px; max-width: 38em; }
.feature-text ul { color: var(--muted); padding-left: 20px; margin: 10px 0 0; }
.feature-text li + li { margin-top: 4px; }
.feature-text .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.feature-text .more::after { content: ' →'; }
.duo { display: flex; gap: 18px; justify-content: center; }
.duo .screen { width: 230px; }
.duo .screen:nth-child(2) { margin-top: 40px; }
@media (max-width: 860px) {
  .feature, .feature.flip, .feature.two, .feature.two.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .feature > .screen { width: min(260px, 72%); margin: 0 auto; }
  .duo .screen { width: min(200px, 46%); }
}

/* The dark spotlight (Mirror) */
.spotlight { background: var(--dark); color: #F8FAFC; }
.spotlight .eyebrow { color: #2DD4BF; }
.spotlight h2, .spotlight h3 { color: #F8FAFC; }
.spotlight .section-lead, .spotlight .feature-text p, .spotlight .feature-text ul, .spotlight .checks li { color: var(--dark-muted); }
.spotlight a { color: #5EEAD4; }
.spotlight .btn { background: #2DD4BF; color: #04231F; }
.spotlight .btn:hover { background: #5EEAD4; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.spotlight .chips li { background: rgba(45, 212, 191, 0.12); color: #5EEAD4; }
.checks { list-style: none; padding: 0 !important; margin: 14px 0 0; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li + li { margin-top: 8px; }
.checks li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--teal); font-weight: 800; }
.spotlight .checks li::before { color: #2DD4BF; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; margin-top: 28px; }
.cols p { color: var(--muted); margin-top: 6px; }
.spotlight .cols p { color: var(--dark-muted); }

/* Cards that link to a feature page */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 28px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--teal); }
.card p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.card .more { display: inline-block; color: var(--teal); font-weight: 700; margin-top: 10px; font-size: 15px; }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 28px; }
.who div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.who p { color: var(--muted); margin-top: 6px; font-size: 16px; }

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-family: var(--display); font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--teal); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.faq-group + .faq-group { margin-top: 36px; }

.band { background: var(--dark); color: #F8FAFC; border-radius: 28px; padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band p { color: var(--dark-muted); margin-top: 8px; }
.band .btn { background: #2DD4BF; color: #04231F; }
.band .btn:hover { background: #5EEAD4; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tr.ours td { background: var(--teal-soft); }

/* Inner pages */
.page-head { padding: 44px 0 8px; background: linear-gradient(180deg, #E9FBF7 0%, var(--bg) 100%); }
.page-head .lead { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 40em; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.meta { font-size: 14px; color: var(--muted); margin-top: 14px; }
.disclosure { background: #FEF6E7; border: 1px solid #F4DDB0; border-radius: 12px; padding: 14px 18px; font-size: 15.5px; margin-top: 24px; max-width: 760px; }
.app-block { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.app-block h3 { font-size: 22px; margin-top: 0; }
.app-block .facts { color: var(--muted); font-size: 15px; margin-top: 4px; }
.legal h2 { font-size: 24px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); }
.room-card { max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin-top: 8px; }
.room-code { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink); margin-top: 6px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 48px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li + li { margin-top: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand p { margin-top: 10px; max-width: 22em; }
.copy { margin-top: 32px; font-size: 13.5px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot .brand { grid-column: 1 / -1; } }

@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  section { padding: 56px 0; }
  .hero { padding: 32px 0; }
  .hero .lead { font-size: 18px; }
  .page-head { padding-top: 32px; }
  .band { gap: 20px; padding: 30px 22px; border-radius: 20px; }
  .band .btn { width: 100%; justify-content: center; text-align: center; }
  .stat { padding: 16px; }
  .stats { gap: 10px; }
  .steps li { padding: 20px; }
  .feature, .features { gap: 36px; }
  .room-card { padding: 24px; }
  footer { padding: 36px 0; }
  .foot { gap: 24px 16px; }
}

@media (max-width: 360px) {
  .top .wrap { gap: 8px; }
  .logo { gap: 8px; font-size: 18px; }
  .logo img { width: 32px; height: 32px; }
  h1 { font-size: clamp(32px, 10vw, 36px); }
}
