/* ==========================================================================
   Retrograde: Tracking Mercury — design system
   Derived from the app icon: deep night teal, a single orbit ring,
   mint + coral planets, and a soft dawn horizon.
   ========================================================================== */

:root {
  color-scheme: dark;
  --night: #06161d;
  --night-2: #0a2029;
  --night-3: #0e2a35;
  --panel: rgba(238, 248, 245, 0.04);
  --panel-strong: rgba(238, 248, 245, 0.07);
  --line: rgba(238, 248, 245, 0.12);
  --line-soft: rgba(238, 248, 245, 0.07);
  --text: #eef8f5;
  --muted: rgba(238, 248, 245, 0.66);
  --faint: rgba(238, 248, 245, 0.42);
  --mint: #9fdccf;
  --teal: #35bd98;
  --coral: #f28791;
  --gold: #e9c268;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 82% -10%, rgba(53, 189, 152, 0.14), transparent 60%),
    radial-gradient(900px 620px at -12% 32%, rgba(242, 135, 145, 0.10), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 58%, var(--night-3) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(238, 248, 245, 0.5), transparent 100%),
    radial-gradient(1px 1px at 28% 64%, rgba(238, 248, 245, 0.34), transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(238, 248, 245, 0.28), transparent 100%),
    radial-gradient(1px 1px at 58% 78%, rgba(238, 248, 245, 0.3), transparent 100%),
    radial-gradient(2px 2px at 71% 12%, rgba(238, 248, 245, 0.4), transparent 100%),
    radial-gradient(1px 1px at 84% 52%, rgba(238, 248, 245, 0.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 93% 84%, rgba(238, 248, 245, 0.34), transparent 100%),
    radial-gradient(1px 1px at 6% 88%, rgba(238, 248, 245, 0.26), transparent 100%);
  opacity: 0.55;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

::selection {
  background: rgba(159, 220, 207, 0.32);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--mint);
}

.wrap,
.site-header,
.site-footer,
.section,
.legal-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 22, 29, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.brand small {
  display: block;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}

.nav a {
  text-decoration: none;
  transition: color 140ms ease;
}

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

.nav .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 24px;
  background: var(--panel-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  background: rgba(238, 248, 245, 0.12);
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: var(--mint);
  color: #06161d;
  box-shadow: 0 8px 30px rgba(159, 220, 207, 0.25);
}

.button.primary:hover {
  background: #b4e5da;
  box-shadow: 0 10px 36px rgba(159, 220, 207, 0.35);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 64px;
  padding: 84px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.9rem, 6.4vw, 4.9rem);
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.price-line {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 0.92rem;
  font-weight: 550;
}

.price-line strong {
  color: var(--gold);
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
}

/* Hero visual — echoes the app icon */

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: min(120%, 560px);
  aspect-ratio: 1.5;
  border: 1.5px solid rgba(159, 220, 207, 0.32);
  border-radius: 50%;
  transform: rotate(-16deg);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: rotate(-16deg) translateY(-6px); }
  to { transform: rotate(-14deg) translateY(6px); }
}

.planet {
  position: absolute;
  border-radius: 999px;
  z-index: 2;
}

.planet.mint {
  width: 52px;
  height: 52px;
  left: 4%;
  top: 12%;
  background: radial-gradient(circle at 32% 30%, #c8ece3, var(--mint) 70%);
  box-shadow: 0 10px 30px rgba(159, 220, 207, 0.35);
}

.planet.coral {
  width: 86px;
  height: 86px;
  right: 6%;
  bottom: 14%;
  background: radial-gradient(circle at 32% 30%, #f8adb4, var(--coral) 70%);
  box-shadow: 0 14px 40px rgba(242, 135, 145, 0.35);
}

.planet.tiny {
  width: 16px;
  height: 16px;
  right: 16%;
  top: 8%;
  background: var(--teal);
  box-shadow: 0 6px 18px rgba(53, 189, 152, 0.5);
}

.status-card {
  position: relative;
  z-index: 3;
  width: min(100%, 400px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  background: linear-gradient(160deg, rgba(20, 42, 52, 0.92), rgba(10, 28, 36, 0.94));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(53, 189, 152, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 189, 152, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(53, 189, 152, 0.06); }
}

.status-badge {
  display: inline-flex;
  margin-top: 22px;
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(53, 189, 152, 0.16);
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge[data-phase="retrograde"] {
  background: rgba(242, 135, 145, 0.16);
  color: var(--coral);
}

.status-badge[data-phase="pre-shadow"],
.status-badge[data-phase="post-shadow"] {
  background: rgba(233, 194, 104, 0.14);
  color: var(--gold);
}

.status-answer {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 560;
  line-height: 1.12;
}

.status-detail {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.status-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.status-days strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 520;
  line-height: 1;
  color: var(--mint);
}

.status-days span {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-source {
  max-width: 140px;
  color: var(--faint);
  font-size: 0.72rem;
  text-align: right;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}

.section-intro {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.centered {
  text-align: center;
}

.centered h2,
.centered .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.centered .eyebrow::before {
  display: none;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 160ms ease, background 160ms ease;
}

.feature:hover {
  border-color: var(--line);
  background: var(--panel-strong);
}

.feature .mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mint);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
}

.feature h3 {
  margin-top: 22px;
  font-size: 1.45rem;
}

.feature p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Privacy section */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 56px;
  align-items: center;
  margin-top: 12px;
}

.privacy-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--muted);
  font-size: 1rem;
}

.privacy-list li::before {
  content: "◦";
  color: var(--teal);
  font-size: 1.2rem;
  line-height: 1;
}

.privacy-list strong {
  color: var(--text);
  font-weight: 650;
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--panel);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 520;
  line-height: 1;
  color: var(--mint);
}

.stat.coral strong {
  color: var(--coral);
}

.stat.gold strong {
  color: var(--gold);
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

.fine-print {
  margin: 26px 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}

/* Pricing */

.pricing-card {
  max-width: 640px;
  margin: 48px auto 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 44px 44px 40px;
  background: linear-gradient(160deg, rgba(20, 42, 52, 0.8), rgba(10, 28, 36, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.price-figure {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 5rem);
  font-weight: 520;
  line-height: 1;
}

.price-figure sub {
  bottom: 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: baseline;
}

.pricing-includes {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.pricing-includes li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--teal);
  font-weight: 700;
}

.pricing-card .actions {
  justify-content: center;
}

.pricing-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 44px auto 0;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: var(--line);
  background: var(--panel-strong);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 630;
  font-size: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--mint);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Final CTA */

.cta-band {
  position: relative;
  overflow: hidden;
  margin: 0 0 96px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 72px 40px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(53, 189, 152, 0.18), transparent 65%),
    radial-gradient(500px 300px at 10% 100%, rgba(242, 135, 145, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(20, 42, 52, 0.85), rgba(10, 28, 36, 0.95));
  text-align: center;
}

.cta-band h2 {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.cta-band .section-intro {
  max-width: 520px;
}

.cta-band .actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

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

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-page {
  max-width: 760px;
  padding: 64px 0 100px;
}

.legal-page h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.legal-page h2 {
  margin-top: 44px;
  font-size: 1.3rem;
}

.legal-page > p {
  color: var(--muted);
}

.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--mint);
}

/* --------------------------------------------------------------------------
   App preview page
   -------------------------------------------------------------------------- */

.preview-body {
  background:
    radial-gradient(1000px 640px at 85% -8%, rgba(53, 189, 152, 0.16), transparent 60%),
    radial-gradient(800px 560px at -10% 60%, rgba(242, 135, 145, 0.1), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 58%, var(--night-3) 100%);
}

.app-preview-stage {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(350px, 430px);
  align-items: center;
  gap: 64px;
  margin: 0 auto;
  padding: 40px 0 72px;
}

.preview-copy h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
}

.preview-copy .hero-copy {
  max-width: 480px;
}

.preview-hints {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-hints li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.preview-hints li::before {
  content: "→";
  color: var(--teal);
}

.device-shell {
  width: min(430px, 100%);
  margin-left: auto;
  border: 1px solid rgba(238, 248, 245, 0.14);
  border-radius: 46px;
  padding: 16px;
  background: linear-gradient(170deg, #0f242e, #081a22);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(238, 248, 245, 0.08);
}

.device-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 14px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 650;
}

.device-status span:last-child {
  text-align: right;
}

.device-pill {
  width: 88px;
  height: 26px;
  border-radius: 999px;
  background: #030d12;
}

.app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 16px;
}

.app-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 560;
}

.app-subtitle {
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-chrome img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.preview-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(238, 248, 245, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.preview-tab:hover {
  background: rgba(238, 248, 245, 0.1);
}

.preview-tab.active {
  background: var(--mint);
  color: #06161d;
}

.phone-screen {
  min-height: 640px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 189, 152, 0.2), transparent 34%),
    radial-gradient(circle at 90% 76%, rgba(242, 135, 145, 0.14), transparent 32%),
    linear-gradient(150deg, #050f14, #0b2430 55%, #071e28);
}

.preview-view {
  display: none;
  min-height: 640px;
  padding: 26px 22px;
}

.preview-view.active {
  display: block;
}

/* Today view */

.native-now-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.native-now-header h2 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 540;
}

.native-now-header p {
  margin: 6px 0 0;
  color: var(--faint);
  font-weight: 550;
  font-size: 0.92rem;
}

.native-orbit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--mint);
  font-size: 1.3rem;
}

.native-dashboard {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(20, 38, 48, 0.8);
}

.native-dashboard::after {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(53, 189, 152, 0.2);
  content: "";
  filter: blur(30px);
  right: -60px;
  top: -60px;
}

.dashboard-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.native-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(238, 248, 245, 0.08);
  color: var(--text);
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.native-badge::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
}

.dashboard-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.phase-ring-preview {
  --phase-progress: 0deg;
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--coral) var(--phase-progress), rgba(238, 248, 245, 0.12) 0deg);
}

.phase-ring-preview::before {
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: #12242e;
  content: "";
}

.phase-ring-preview div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  color: var(--text);
}

.phase-ring-preview strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 540;
  line-height: 1;
}

.phase-ring-preview span {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-main h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 550;
  line-height: 1.1;
}

.dashboard-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
  margin-top: 12px;
}

.mini-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(20, 38, 48, 0.8);
}

.mini-grid span {
  display: block;
  color: var(--mint);
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 520;
  line-height: 1;
}

.mini-grid strong,
.mini-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mini-grid small {
  margin-top: 0;
  color: var(--mint);
}

.mini-grid article small + strong {
  margin-top: 10px;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Calendar view */

.calendar-head,
.timeline-head,
.alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--text);
}

.calendar-head strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 550;
}

.round-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.round-button:hover {
  background: var(--panel-strong);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 999px;
}

.dot.retro {
  border: 2px solid var(--teal);
}

.dot.shadow {
  background: rgba(159, 220, 207, 0.3);
}

.dot.today {
  background: var(--coral);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.weekdays {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.days {
  margin-top: 10px;
}

.calendar-day {
  display: grid;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  aspect-ratio: 1;
  place-items: center;
}

.calendar-day.is-shadow {
  background: rgba(159, 220, 207, 0.14);
  color: var(--text);
}

.calendar-day.is-retro {
  border: 2px solid var(--teal);
  color: var(--text);
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2.5px var(--coral);
  color: var(--text);
}

.calendar-day.muted {
  opacity: 0;
}

/* Timeline + alerts views */

.timeline-head h2,
.alerts-head h2 {
  margin-top: 6px;
  font-size: 1.9rem;
  font-weight: 550;
}

#timeline-year {
  color: rgba(238, 248, 245, 0.1);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 600;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(20, 38, 48, 0.8);
}

.timeline-dot {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border: 2px solid var(--teal);
  border-radius: 999px;
}

.timeline-item strong {
  color: var(--text);
  font-weight: 650;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.switch-row,
.alert-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(20, 38, 48, 0.8);
  color: var(--text);
  font-weight: 550;
  font-size: 0.94rem;
}

.switch-row input {
  width: 46px;
  height: 27px;
  accent-color: var(--teal);
}

.alert-time {
  color: var(--muted);
}

.alert-time strong {
  color: var(--mint);
  font-family: var(--display);
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 920px) {
  .hero,
  .privacy-grid,
  .app-preview-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 72px;
    gap: 48px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 18px;
  }

  .device-shell {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .wrap,
  .site-header,
  .site-footer,
  .section,
  .legal-page {
    width: calc(100% - 32px);
  }

  .nav a:not(.button) {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .hero-visual {
    min-height: 440px;
  }

  .status-card {
    padding: 22px 20px;
  }

  .cta-band {
    padding: 52px 24px;
  }

  .pricing-card {
    padding: 34px 24px;
  }

  .app-preview-stage {
    width: calc(100% - 24px);
    gap: 40px;
  }

  .preview-copy .hero-copy,
  .preview-hints {
    max-width: none;
  }

  .device-shell {
    padding: 10px;
    border-radius: 34px;
  }

  .phone-screen,
  .preview-view {
    min-height: 600px;
  }

  .preview-view {
    padding: 20px 16px;
  }

  .preview-tab {
    font-size: 0.7rem;
  }
}
