/* TalkLike / Talk Like — static site (matches app tone: calm teal + accent) */

:root {
  --bg: #e8f8f5;
  --bg-elevated: #f5fcfb;
  --surface: #f5fcfb;
  --text: #1a1a1c;
  --text-muted: #5c5c66;
  --accent: #7362fa;
  --accent-hover: #5d4ee0;
  --border: rgba(26, 26, 28, 0.08);
  --shadow: 0 12px 40px rgba(26, 26, 28, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1040px;
  --prose: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(115, 98, 250, 0.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

/* —— Hero —— */

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
}

.btn--ghost:hover {
  background: #fff;
  text-decoration: none;
}

.chip-muted {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 999px;
}

/* —— Sections —— */

.section {
  padding: 2.5rem 0 3.5rem;
}

.section--tight {
  padding-top: 1rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* —— Feature grid —— */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(115, 98, 250, 0.15), rgba(115, 98, 250, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Flow strip —— */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.flow span {
  color: var(--text);
  font-weight: 600;
}

.flow .sep {
  color: var(--border);
  user-select: none;
}

/* —— CTA band —— */

.cta {
  margin: 2rem 0 0;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(115, 98, 250, 0.12), rgba(232, 248, 245, 1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cta p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(245, 252, 251, 0.6);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.site-footer__links a {
  font-weight: 500;
}

/* —— Legal / prose pages —— */

.page-hero {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: var(--prose);
}

.prose {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--text);
}

.prose a {
  font-weight: 500;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* —— Layout wrapper for sticky footer —— */

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout main {
  flex: 1;
}
