:root {
  --ink: #111c2d;
  --muted: #65748a;
  --blue: #1677ef;
  --green: #28a96a;
  --line: #dfe7f1;
  --surface: #ffffff;
  --background: #f7faff;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.page { min-height: 100vh; }

.shell { width: min(100% - 40px, 1040px); margin: 0 auto; }

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 255, .94);
}

.site-header .shell,
.brand { display: flex; align-items: center; }

.site-header .shell { justify-content: space-between; gap: 18px; }

.brand { gap: 10px; text-decoration: none; font-weight: 800; }

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.site-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--blue); }

.hero { padding: clamp(64px, 10vw, 120px) 0 74px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(32px, 8vw, 92px); align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 710px; margin-bottom: 18px; font-size: clamp(42px, 7vw, 72px); letter-spacing: 0; line-height: 1.03; }
.hero-copy { max-width: 580px; margin-bottom: 26px; color: var(--muted); font-size: 19px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button[aria-disabled="true"] { background: #a8b6c9; cursor: not-allowed; }
.inline-note { margin: 0; color: var(--muted); font-size: 13px; }

.app-preview {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ecf5ff 0%, #ffffff 58%, #dff8e9 100%);
}

.app-icon { width: 152px; height: 152px; border-radius: 34px; box-shadow: 0 24px 54px rgba(20, 57, 94, .24); }
.preview-label { position: absolute; bottom: 24px; left: 24px; right: 24px; color: var(--muted); font-size: 14px; text-align: center; }

.band { padding: 68px 0; border-top: 1px solid var(--line); }
.band h2 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: 0; }
.section-intro { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 22px 0; border-top: 2px solid var(--line); }
.feature strong { display: block; margin-bottom: 7px; font-size: 18px; }
.feature p { margin-bottom: 0; color: var(--muted); }

.legal-page { padding: 54px 0 80px; }
.legal-page header { max-width: 760px; margin-bottom: 34px; }
.legal-page h1 { margin-bottom: 10px; font-size: clamp(36px, 5vw, 56px); }
.updated { color: var(--muted); font-size: 14px; }
.legal-intro { color: var(--muted); font-size: 18px; }

.legal-section { max-width: 800px; padding: 24px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 10px; font-size: 23px; }
.legal-section p, .legal-section li { color: #34455e; }
.legal-section ul { margin: 0; padding-left: 21px; }

.site-footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }

/* Embedded in the app (?embed=1): the hosting app already shows the page title
   and its own navigation, so the site chrome and duplicate heading are hidden. */
.embedded .site-header,
.embedded .site-footer { display: none; }
.embedded .legal-page { padding: 20px 0 48px; }
.embedded .legal-page header { margin-bottom: 18px; }
.embedded .legal-page .eyebrow,
.embedded .legal-page h1 { display: none; }
.embedded .legal-intro { margin-bottom: 0; font-size: 15px; }

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1040px); }
  .site-header .shell { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { justify-content: flex-start; gap: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .app-preview { min-height: 280px; }
  .feature-grid { grid-template-columns: 1fr; }
  .legal-page { padding: 32px 0 56px; }
  .legal-page h1 { font-size: 30px; }
  .legal-intro { font-size: 16px; }
  .legal-section { padding: 18px 0; }
  .legal-section h2 { font-size: 19px; }
}
