/* ── Tokens ── */
:root {
  --primary:              #1a6bde;
  --on-primary:           #ffffff;
  --primary-container:    #d8e2ff;
  --on-primary-container: #001258;
  --surface:              #faf9ff;
  --surface-container:    #eeedf4;
  --on-surface:           #1a1b21;
  --on-surface-var:       #44464f;
  --outline-var:          #c5c6d0;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Google Sans', system-ui, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 5vw, 32px);
  border-bottom: 1px solid var(--outline-var);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand img {
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500;
  color: var(--on-surface-var);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--primary); }

/* ── Footer ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--outline-var);
  padding: clamp(16px, 3vw, 24px) clamp(16px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--on-surface-var);
  text-decoration: none;
}

.footer-links a:hover { color: var(--primary); }

/* ── Landing: Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 10vw, 96px) clamp(16px, 6vw, 48px) clamp(40px, 8vw, 72px);
}

.app-icon {
  width: clamp(80px, 15vw, 108px);
  height: clamp(80px, 15vw, 108px);
  border-radius: clamp(20px, 3vw, 28px);
  overflow: hidden;
  margin-bottom: clamp(20px, 4vw, 28px);
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-family: 'Google Sans Display', sans-serif;
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--on-surface);
  margin-bottom: clamp(12px, 2vw, 16px);
}

h1 span { color: var(--primary); }

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 400;
  color: var(--on-surface-var);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: clamp(28px, 5vw, 40px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(14px, 2vw, 15px);
  font-weight: 500;
  padding: 14px clamp(20px, 4vw, 28px);
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.15s;
  width: min(100%, 320px);
}

.btn-primary:hover { opacity: 0.9; }

/* ── Landing: Features grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(10px, 2vw, 16px);
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px) clamp(56px, 10vw, 96px);
}

.feature-card {
  background: var(--surface-container);
  border-radius: clamp(16px, 3vw, 20px);
  padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 24px);
  min-width: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--on-primary-container);
}

.feature-card h3 {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.feature-card p {
  font-size: clamp(13px, 1.8vw, 14px);
  color: var(--on-surface-var);
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* ── Privacy: Layout ── */
main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 5vw, 32px) clamp(48px, 8vw, 80px);
  flex: 1;
}

.page-label {
  display: inline-block;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.last-updated {
  font-size: 13px;
  color: var(--on-surface-var);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.highlight {
  background: var(--primary-container);
  border-radius: clamp(14px, 2.5vw, 16px);
  padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 24px);
  margin-bottom: 12px;
}

.highlight p {
  font-size: clamp(14px, 2vw, 15px);
  color: var(--on-primary-container);
  line-height: 1.7;
  font-weight: 500;
  overflow-wrap: break-word;
}

.section {
  background: var(--surface-container);
  border-radius: clamp(14px, 2.5vw, 20px);
  padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 24px);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 600;
  margin-bottom: 10px;
}

.section p,
.section li {
  font-size: clamp(13px, 2vw, 15px);
  color: var(--on-surface-var);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.section ul {
  padding-left: 20px;
  margin-top: 8px;
}

.section li { margin-bottom: 6px; }

.section a {
  color: var(--primary);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-all;
}

.section a:hover { text-decoration: underline; }

code {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* ── Breakpoints ── */
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .nav-links a:not(:last-child) { display: none; }
  .features { grid-template-columns: 1fr; }
}
