/* Align — alignyourday.com
   Colours and type follow the Align brand guideline: navy #000637, dark blue #121248,
   accent dark #0A0A2B, silver, Montserrat (regular for headings, light for body). */

/* Montserrat is self-hosted (SIL Open Font License, see fonts/OFL.txt), so the site makes no third-party requests. */
@font-face { font-family: 'Montserrat'; font-weight: 300; font-display: swap; src: url('fonts/montserrat-300.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url('fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600 700; font-display: swap; src: url('fonts/montserrat-600.woff2') format('woff2'); }

:root {
  --navy: #000637;
  --navy-deep: #0a0a2b;
  --blue: #121248;
  --blue-line: #23256a;
  --sky: #4f7fd0;
  --text: #ffffff;
  --text-soft: #c9cde4;
  --text-muted: #9aa1c4;
  --silver: linear-gradient(135deg, #ffffff 0%, #c9cdd6 45%, #8e94a6 60%, #f4f5f9 100%);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #dfe4ff; text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0; }
strong { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.silver-text {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 6, 55, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.brand span {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.34em;
}

.nav { display: flex; gap: 28px; }

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover, .nav a[aria-current='page'] { color: #fff; }

@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .nav .hide-sm { display: none; }
  .brand span { display: none; }
}

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

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 24px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.2;
}

.btn small {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.btn strong { font-size: 18px; font-weight: 600; }

.btn-primary { background: var(--silver); color: var(--navy); }
.btn-primary small { color: #3d4470; }
.btn-primary:hover { color: var(--navy); filter: brightness(1.05); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 18, 72, 0.6);
  color: #fff;
}
.btn-ghost small { color: var(--text-muted); }

.btn[aria-disabled='true'] { cursor: default; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.store-note { margin-top: 14px; font-size: 14px; color: var(--text-muted); }

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(60, 90, 220, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(18, 18, 72, 0.9), transparent 60%),
    var(--navy);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-logo { width: 132px; margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 18px 0 20px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 34em;
  margin: 0;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-logo { margin: 0 auto 24px; }
  .hero p.lead { margin: 0 auto; }
  .store-buttons { justify-content: center; }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #e9ebf2, #6f7488 40%, #20223d 60%, #c9cdd6);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 39px;
  background: var(--navy-deep);
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
}

.phone::after {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
}

.hero .phone { transform: rotate(2deg); }

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

section { padding: 96px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 16px; }

.section-head p { color: var(--text-soft); margin: 0; font-size: 18px; }

.alt { background: var(--navy-deep); }

/* Features */

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

.feature {
  background: linear-gradient(180deg, rgba(18, 18, 72, 0.95), rgba(18, 18, 72, 0.55));
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 28px;
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.feature .icon svg { width: 24px; height: 24px; stroke: #e6e9f5; }

.feature h3 { font-size: 20px; margin-bottom: 10px; }

.feature p { margin: 0 0 12px; color: var(--text-soft); }

.feature ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 15px; }

.feature li + li { margin-top: 4px; }

/* Screens gallery */

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(184px, 1fr);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px;
}

.screens figure { margin: 0; scroll-snap-align: center; text-align: center; }

.screens .phone { width: 100%; max-width: 240px; padding: 8px; border-radius: 40px; }
.screens .phone img { border-radius: 33px; }
.screens .phone::after { top: 17px; height: 17px; }

.screens figcaption { margin-top: 22px; }
.screens figcaption strong { display: block; font-size: 17px; margin-bottom: 4px; }
.screens figcaption span { font-size: 14px; color: var(--text-muted); }

/* Split (privacy promise) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 14px 0 18px; }
.split p { color: var(--text-soft); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; }

.checks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text-soft);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--silver);
  -webkit-mask: radial-gradient(circle, #000 0 100%);
}

.checks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* CTA */

.cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(60, 90, 220, 0.3), transparent 70%),
    var(--navy);
}

.cta h2 { font-size: clamp(30px, 4.5vw, 46px); margin: 16px 0 10px; }
.cta .store-buttons { justify-content: center; }

/* ---------- Document pages (privacy, terms, support, delete) ---------- */

.doc { padding: 64px 0 96px; }

.doc .wrap { max-width: 760px; }

.doc h1 { font-size: clamp(32px, 4.4vw, 44px); margin: 12px 0 10px; }

.doc .meta { color: var(--text-muted); font-size: 15px; margin: 0 0 32px; }

.doc h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  padding-top: 8px;
}

.doc h3 { font-size: 18px; margin: 28px 0 6px; }

.doc p, .doc li { color: var(--text-soft); }

.doc ul, .doc ol { padding-left: 22px; }

.doc li + li { margin-top: 6px; }

.card {
  background: var(--blue);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 8px 26px;
  margin: 24px 0;
}

.card > :last-child { margin-bottom: 20px; }
.card h2, .card h3 { margin-top: 20px; }

.toc { columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; }
@media (max-width: 600px) { .toc { columns: 1; } }

.table-wrap { overflow-x: auto; margin: 16px 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--blue-line);
  color: var(--text-soft);
}

th { color: #fff; font-weight: 600; }

td ul { margin: 0; padding-left: 18px; }

details {
  background: var(--blue);
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  padding: 0 22px;
  margin: 12px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details > :last-child { margin-bottom: 18px; }

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.contact-box p { margin: 16px 0; }

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--navy-deep);
  padding: 44px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.tagline { font-style: normal; letter-spacing: 0.04em; }

/* Accessibility */

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid #9fb4ff; outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
