:root {
  --teal: #0D9488;
  --teal-hover: #0A7A70;
  --teal-active: #086c63;

  --bg: #ffffff;
  --text: #1b1f1e;
  --muted: #5b6764;
  --border: #e3e8e7;
  --icon-shadow: rgba(13, 148, 136, 0.28);

  --radius-btn: 13px;
  --radius-icon: 23%;
  --max-width: 380px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          system-ui, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #14b8a6;
    --teal-hover: #2dd4bf;
    --teal-active: #5eead4;
    --bg: #0a100f;
    --text: #f1f4f3;
    --muted: #93a19e;
    --border: #20302d;
    --icon-shadow: rgba(20, 184, 166, 0.30);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 48px 24px 32px;
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-icon);
  box-shadow: 0 8px 24px var(--icon-shadow);
  /* hairline keeps the squircle crisp on white and dark alike */
  outline: 0.5px solid rgba(0, 0, 0, 0.04);
  outline-offset: -0.5px;
}

h1 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  max-width: var(--max-width);
  font-size: 17px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease,
              border-color 0.15s ease, color 0.15s ease;
}

.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--teal);
  color: #ffffff;
}
.btn-primary:hover { background: var(--teal-hover); }
.btn-primary:active { background: var(--teal-active); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--teal) 9%, transparent);
}

/* Disabled "coming soon" state (e.g. TestFlight before its public link is live) */
.btn-soon {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  cursor: default;
}
.btn-soon:hover { background: transparent; }
.btn-soon:active { transform: none; }

@media (prefers-color-scheme: dark) {
  .btn-primary { color: #04120f; }
}

.btn-icon {
  width: 19px;
  height: 19px;
  flex: none;
}

.note {
  margin: 6px 0 0;
  max-width: var(--max-width);
  font-size: 13.5px;
  color: var(--muted);
}

.footer {
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.footer strong { color: var(--text); font-weight: 600; }

/* Honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* Keyboard focus ring */
.btn:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
}
