/* =========================================================
   ANIAH Digital Albums — Landing page styles
   File: css/landing.css
   Themes: sunrise (light, default, multi-colour sections), midnight (dark)
   ========================================================= */

/* ---------- Theme 1: Sunrise Cream (light, default) ---------- */
html.theme-sunrise {
  --bg: #fff6ec;
  --bg-alt: #ffeadb;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #5b6479;
  --accent: #cf4520;
  --accent-hover: #ad3515;
  --on-accent: #ffffff;
  --border: #f0d5bd;
  --header-bg: rgba(255, 246, 236, 0.92);
  --footer-bg: #1f2a44;
  --footer-text: #f4e9dc;
  --footer-link: #ffb48f;
  --shadow: 0 6px 20px rgba(31, 42, 68, 0.10);

  /* section colours (overridden per section below) */
  --sec-fill: var(--accent);
  --sec-on: var(--on-accent);
  --sec-ink: var(--accent);
  --sec-border: var(--border);
  --sec-head: var(--text);
}

/* ---------- Theme 2: Midnight Navy & Sky (dark) ---------- */
html.theme-midnight {
  --bg: #0f1830;
  --bg-alt: #14203d;
  --card: #1a2a4d;
  --text: #f3efe3;
  --muted: #aab3c7;
  --accent: #6cc4f5;
  --accent-hover: #a5dcfa;
  --on-accent: #0b1426;
  --border: #2c3f6b;
  --header-bg: rgba(15, 24, 48, 0.92);
  --footer-bg: #0a1122;
  --footer-text: #d9dcea;
  --footer-link: #6cc4f5;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

  --sec-fill: var(--accent);
  --sec-on: var(--on-accent);
  --sec-ink: var(--accent);
  --sec-border: var(--border);
  --sec-head: var(--text);
}

/* ---------- Sunrise: a different colour-wheel colour for each section ---------- */
html.theme-sunrise .hero,
html.theme-sunrise .section { --sec-head: var(--sec-ink); }

/* Hero — Rose pink */
html.theme-sunrise .hero {
  background: #fde7f0;
  --sec-fill: #d6336c;
  --sec-on: #ffffff;
  --sec-ink: #a61e4d;
  --sec-border: #f3b5cc;
}
/* Why we built ANIAH — Orange */
html.theme-sunrise #story {
  background: #ffe9d0;
  --sec-fill: #f28e1c;
  --sec-on: #1f2a44;
  --sec-ink: #b35900;
  --sec-border: #f2c590;
}
/* How it works — Green */
html.theme-sunrise #how {
  background: #e3f4e0;
  --sec-fill: #2e8b3a;
  --sec-on: #ffffff;
  --sec-ink: #1f7a2c;
  --sec-border: #aedaa8;
}
/* Features — Blue */
html.theme-sunrise #features {
  background: #e1ecfb;
  --sec-fill: #2f5ca8;
  --sec-on: #ffffff;
  --sec-ink: #2f5ca8;
  --sec-border: #adc6ec;
}
/* Your privacy — Violet */
html.theme-sunrise #privacy {
  background: #ece2f6;
  --sec-fill: #62308f;
  --sec-on: #ffffff;
  --sec-ink: #62308f;
  --sec-border: #c9b0e0;
}
/* Install — Red-orange */
html.theme-sunrise #install {
  background: #ffe2d6;
  --sec-fill: #cf4520;
  --sec-on: #ffffff;
  --sec-ink: #b83a14;
  --sec-border: #f4b9a0;
}
/* Free trial — Indigo */
html.theme-sunrise #trial {
  background: #e8e7fb;
  --sec-fill: #4338ca;
  --sec-on: #ffffff;
  --sec-ink: #3730a3;
  --sec-border: #b9b6ee;
}
/* Video library — Cocoa brown */
html.theme-sunrise #videos {
  background: #f1e5dc;
  --sec-fill: #7a4a32;
  --sec-on: #ffffff;
  --sec-ink: #6a3c26;
  --sec-border: #dcc4b3;
}
/* FAQ — Blue-green */
html.theme-sunrise #faq {
  background: #d9f1ec;
  --sec-fill: #12786b;
  --sec-on: #ffffff;
  --sec-ink: #0f6b5f;
  --sec-border: #9fd5cb;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}
h2 { color: var(--sec-head, var(--text)); }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--sec-ink, var(--accent)); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--footer-bg);
  --text: var(--footer-text);
  --muted: var(--footer-link);
  --border: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
}
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-name small {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- Theme picker ---------- */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.theme-dots {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.theme-dot {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
/* each circle shows the theme's own colours */
.theme-dot[data-theme="sunrise"]  { background: linear-gradient(135deg, #fff6ec 50%, #cf4520 50%); }
.theme-dot[data-theme="midnight"] { background: linear-gradient(135deg, #0f1830 50%, #6cc4f5 50%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--sec-fill, var(--accent));
  color: var(--sec-on, var(--on-accent));
}
.btn-primary:hover { filter: brightness(0.9); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--sec-ink, var(--accent));
}
.btn-outline:hover {
  background: var(--sec-fill, var(--accent));
  border-color: var(--sec-fill, var(--accent));
  color: var(--sec-on, var(--on-accent));
}
.btn-small { padding: 8px 18px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background: var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.highlight { color: var(--sec-ink, var(--accent)); }
.lead {
  font-size: 1.12rem;
  color: var(--muted);
}
.lead strong { color: var(--text); }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}
.center .hero-buttons { justify-content: center; }
.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--sec-border, var(--border));
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-card-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: contain;
  background: #ffffff;
  margin-bottom: 12px;
}
.hero-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.chip-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hero-card-foot {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sec-ink, var(--accent));
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
  scroll-margin-top: 70px;
}
.section-alt { background: var(--bg-alt); }
.section-lead {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.08rem;
}
.center .section-lead,
.section-lead.center { margin-left: auto; margin-right: auto; }
.narrow .section-lead { margin-bottom: 24px; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--sec-ink, var(--accent));
}
.text-link:hover { filter: brightness(0.8); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--card);
  border: 1px solid var(--sec-border, var(--border));
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--sec-fill, var(--accent));
  color: var(--sec-on, var(--on-accent));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.step p { margin: 0; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--sec-border, var(--border));
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ---------- Trust list ---------- */
.trust-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.trust-list li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--card);
  border: 1px solid var(--sec-border, var(--border));
  border-radius: 16px;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sec-fill, var(--accent));
  color: var(--sec-on, var(--on-accent));
  font-weight: 700;
  text-align: center;
  line-height: 26px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ---------- Install ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.plain-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}
.plain-steps li { margin-bottom: 8px; }
.plain-steps strong { color: var(--text); }

/* ---------- Trial ---------- */
.trial {
  background: var(--bg);
  border-top: 1px solid var(--sec-border, var(--border));
  border-bottom: 1px solid var(--sec-border, var(--border));
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--sec-border, var(--border));
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--sec-ink, var(--accent));
  transition: color 0.25s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ---------- Card hover: change colour (never static) ---------- */
.hero-card,
.step,
.card,
.trust-list li,
.faq-item {
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover,
.step:hover,
.card:hover,
.trust-list li:hover,
.faq-item:hover {
  background: var(--sec-fill, var(--accent));
  border-color: var(--sec-fill, var(--accent));
  color: var(--sec-on, var(--on-accent));
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(31, 42, 68, 0.22);
}

:is(.hero-card, .step, .card, .trust-list li, .faq-item):hover
  :is(h3, p, li, strong, summary, .hero-card-foot) {
  color: var(--sec-on, var(--on-accent));
}

.step:hover .step-number,
.trust-list li:hover::before {
  background: var(--sec-on, var(--on-accent));
  color: var(--sec-fill, var(--accent));
}

.hero-card:hover .chip {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.7);
}

.faq-item:hover summary::after {
  color: var(--sec-on, var(--on-accent));
}

/* ---------- Video library ---------- */
[hidden] { display: none !important; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.video-card {
  background: var(--card);
  border: 1px solid var(--sec-border, var(--border));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--sec-fill, var(--accent));
  box-shadow: 0 12px 28px rgba(31, 42, 68, 0.22);
}
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--sec-fill, var(--accent));
  color: var(--sec-on, var(--on-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.video-thumb:hover .video-play { transform: scale(1.1); }
.video-title {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.video-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.site-footer .brand-logo { width: 36px; height: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================================
   RESPONSIVE (mobile first fixes)
   ========================================================= */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}

@media (max-width: 800px) {
  .hero { padding: 36px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .brand-name { font-size: 1.05rem; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 380px) {
  .theme-label { display: none; }
  .theme-dot { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}