/* Skyla's Choice apps: shared styles. Plain CSS, no build step. */

:root {
  --cream: #FFFBFA;
  --cream-deep: #F6F1EB;
  --blush: #F3D5CF;
  --rose: #D4908A;
  --rose-deep: #C27A73;
  /* Darker rose and slate used for text so they meet WCAG AA on cream. */
  --rose-text: #9A524C;
  --ink: #111111;
  --slate: #6E7686;
  --slate-text: #5B6373;
  --line: #EADFD8;
  --white: #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 12px 32px -12px rgba(154, 82, 76, 0.18);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, 0.05), 0 20px 44px -16px rgba(154, 82, 76, 0.28);

  --gutter: 16px;
  --max: 1080px;
  --prose: 680px;
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--rose-text);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 5.5vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 999px; z-index: 10;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--prose); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-text);
  margin: 0 0 0.9rem;
}
.lede { font-size: 1.15rem; color: var(--slate-text); }
.muted { color: var(--slate-text); }

/* ---------- Header and footer ---------- */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; background: var(--blush); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--slate-text); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 6px; }

.site-footer {
  margin-top: 96px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
  font-size: 0.95rem;
  color: var(--slate-text);
}
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Buttons and badge ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-soft { background: var(--blush); color: var(--ink); }
.btn-soft:hover { color: var(--ink); background: #EFC8C0; }

/* App Store badge placeholder: swap the inner markup for Apple's official badge SVG when available. */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  background: var(--ink); color: var(--white);
  border-radius: 14px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge small { font-size: 0.7rem; letter-spacing: 0.02em; opacity: 0.85; }
.store-badge strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Home page ---------- */

.home-hero { padding: 56px 0 40px; }
.home-hero h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); max-width: 14ch; }

.app-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 700px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }

.app-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.app-card:focus-within { outline: 3px solid var(--rose-text); outline-offset: 3px; }
.app-card img { width: 72px; height: 72px; border-radius: 18px; background: var(--blush); }
.app-card h2 { font-size: 1.6rem; margin: 2px 0 4px; }
.app-card h2 a { color: var(--ink); text-decoration: none; }
/* Whole card is clickable via the heading link. */
.app-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.app-card h2 a:focus-visible { outline: none; }
.app-card .tagline { font-family: var(--serif); font-style: italic; color: var(--rose-text); margin: 0 0 8px; }
.app-card p { margin: 0; color: var(--slate-text); font-size: 0.98rem; }
.app-card .more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ---------- LayerLook marketing ---------- */

.hero {
  position: relative;
  padding: 40px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; z-index: -1;
  width: 620px; height: 620px; border-radius: 50%;
  right: -220px; top: -160px;
  background: radial-gradient(closest-side, var(--blush), rgba(243, 213, 207, 0));
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

.hero-icon { width: 76px; height: 76px; border-radius: 20px; background: var(--blush); box-shadow: var(--shadow); margin-bottom: 22px; }
.hero h1 { margin-bottom: 0.15em; }
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--rose-text);
  margin: 0 0 0.5rem;
}
.hero .subtitle { font-size: 1.2rem; color: var(--ink); margin-bottom: 1.25rem; }
.hero .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.hero-note { font-size: 0.92rem; color: var(--slate-text); margin: 0; }

/* Phone frame: shows a soft blush panel if the screenshot is missing. */
.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  border-radius: 40px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(154, 82, 76, 0.45);
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cream-deep), var(--blush));
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 72px 0 8px; }
.section-head { max-width: 40rem; margin-bottom: 36px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif); font-size: 2rem; line-height: 1;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--slate-text); font-size: 0.98rem; }

/* Screenshot strip: scrolls sideways inside itself on phones, never the page. */
.shots {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.shots figure { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: center; }
.shots .phone { width: 100%; border-radius: 32px; padding: 8px; }
.shots .phone .screen { border-radius: 25px; }
.shots figcaption { text-align: center; font-size: 0.9rem; color: var(--slate-text); margin-top: 12px; }
@media (min-width: 1100px) { .shots { justify-content: center; } }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.panel {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
@media (min-width: 640px) { .panel { padding: 44px; } }
.panel-blush { background: linear-gradient(160deg, var(--blush), #F8E4DF); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 16px; height: 9px;
  border-left: 2px solid var(--rose-text);
  border-bottom: 2px solid var(--rose-text);
  transform: rotate(-45deg) translateY(-3px);
}

.people { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.people li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px; font-size: 0.95rem; font-weight: 500;
}

/* Pricing */
.plans { display: grid; gap: 20px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1.25fr; } }
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .plan { padding: 36px; } }
.plan-plus { border: 2px solid var(--rose); }
.plan h3 { font-size: 1.6rem; margin-bottom: 0.2em; }
.plan .price-line { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 4px; line-height: 1.1; }
.plan .price-sub { color: var(--slate-text); margin-bottom: 22px; }
.prices { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.prices li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prices strong { font-size: 1.15rem; }
.prices span { color: var(--slate-text); font-size: 0.95rem; }
.pill {
  display: inline-block;
  background: var(--blush); color: var(--ink);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px;
}
.fine { font-size: 0.9rem; color: var(--slate-text); margin-top: 22px; }

.cta-band { text-align: center; padding: 56px 24px; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band .hero-actions { justify-content: center; }

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

.doc-hero { padding: 40px 0 16px; }
.doc-hero h1 { font-size: clamp(2.3rem, 7vw, 3.5rem); }
.doc { padding-bottom: 8px; }
.doc h2 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.doc .updated { color: var(--slate-text); font-size: 0.95rem; }

.contact-card {
  display: grid; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 24px 0 8px;
}
.contact-card p { margin: 0; }
.contact-card a.email { font-size: 1.15rem; font-weight: 600; word-break: break-word; }

.toc {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 8px;
}
.toc h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; color: var(--slate-text); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 4px; break-inside: avoid; }

.faq { display: grid; gap: 12px; margin-top: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 20px;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif); font-size: 1.6rem; line-height: 1; font-weight: 400;
  color: var(--rose-text);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .answer { padding: 0 0 18px; color: #2B2F38; }
.faq .answer p:last-child, .faq .answer ul:last-child, .faq .answer ol:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--cream-deep); }

.placeholder { background: #FFF1B8; padding: 0 4px; border-radius: 4px; }

/* ---------- 404 ---------- */
.not-found { padding: 72px 0 24px; text-align: center; }
.not-found .big { font-family: var(--serif); font-size: clamp(5rem, 22vw, 9rem); line-height: 1; color: var(--rose-deep); margin: 0 0 8px; }
.not-found .hero-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* A single phone beside text, e.g. the auto-detect section. */
.solo { margin: 0; }
.solo figcaption { text-align: center; font-size: 0.9rem; color: var(--slate-text); margin-top: 14px; }
.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--cream-deep);
  color: var(--slate-text);
  font-size: 0.95rem;
}
