/* Cozalume — Cocoa Rose Glass Static Design System (cozalume.app) */
:root {
  --bg: #251B16;
  --bg-deep: #1B130F;
  --bg-warm: #3D2B23;
  --bg-smoke: #493932;
  --glass: rgba(87, 68, 63, 0.36);
  --glass-strong: rgba(73, 57, 50, 0.68);
  --glass-hover: rgba(102, 79, 73, 0.52);
  --rose: #C29592;
  --rose-bright: #DFB6B1;
  --rose-deep: #9F706C;
  --edge: rgba(221, 189, 176, 0.22);
  --edge-strong: rgba(221, 189, 176, 0.44);
  --text: #FDF7F2;
  --muted: #D1C5BB;
  --muted-dim: #A6968B;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 46px rgba(10, 6, 4, 0.42);
  --shadow-lg: 0 28px 72px rgba(8, 4, 2, 0.58);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 55% at 82% 8%, rgba(194, 149, 146, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 65% 45% at 12% 18%, rgba(61, 43, 35, 0.72) 0%, transparent 65%),
    linear-gradient(180deg, #2B1F19 0%, #251B16 38%, #1E1511 100%);
  background-attachment: scroll;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-bright); text-decoration: none; transition: color 0.16s ease, opacity 0.16s ease; }
a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--rose-bright); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--rose); color: #1B130F;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- Sticky Frosted Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(37, 27, 22, 0.84);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--edge);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: 0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--rose-bright); }
.brand img {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--edge-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: #1B130F; }
@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .site-header .container { height: 62px; }
}

/* ---------- Buttons & App Store Badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #DFB6B1 0%, #C29592 100%);
  color: #1B130F !important;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  border: 1px solid rgba(255, 244, 236, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn:hover {
  transform: translateY(-2px); filter: brightness(1.05); text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.44);
}
.btn.small { padding: 9px 18px; font-size: 13.5px; }
.btn.ghost {
  background: var(--glass); color: var(--text) !important;
  border: 1px solid var(--edge-strong); box-shadow: none;
}
.btn.ghost:hover { background: var(--glass-hover); }

.appstore-badge {
  display: inline-flex; align-items: center;
  border-radius: 13px; overflow: hidden;
  border: 1px solid var(--edge-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.appstore-badge:hover { transform: translateY(-2px); border-color: var(--rose-bright); text-decoration: none; }
.appstore-badge svg { height: 54px; width: auto; display: block; }

/* ---------- Desktop QR Widget ---------- */
.qr-inline {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--edge);
  border-radius: 14px; padding: 8px 14px 8px 8px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.qr-inline img {
  width: 56px; height: 56px; border-radius: 8px; background: #FDF7F2; padding: 4px;
}
.qr-inline .qr-meta { font-size: 12.5px; line-height: 1.35; color: var(--muted); text-align: left; }
.qr-inline .qr-meta strong { display: block; color: var(--text); font-size: 13px; }
@media (max-width: 760px) { .qr-inline { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; position: relative; }
.hero .container {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 52px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--edge);
  border-radius: 999px; padding: 6px 14px 6px 8px;
  font-size: 13px; color: var(--rose-bright); font-weight: 600; margin-bottom: 22px;
}
.hero-kicker img { width: 24px; height: 24px; border-radius: 6px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); font-weight: 700; margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--rose-bright); }
.hero p.lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; max-width: 54ch; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 247, 242, 0.04); border: 1px solid var(--edge);
  padding: 5px 12px; border-radius: 999px;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center; position: relative;
}
.phone-frame {
  position: relative; width: min(320px, 84%);
  padding: 10px; border-radius: 40px;
  background: linear-gradient(155deg, rgba(221, 189, 176, 0.32), rgba(73, 57, 50, 0.45));
  border: 1px solid var(--edge-strong);
  box-shadow: var(--shadow-lg);
}
.phone-frame img { width: 100%; border-radius: 31px; }
@media (max-width: 880px) {
  .hero { padding: 34px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .phone-frame { width: min(268px, 76%); }
}

/* ---------- Sections & Glass Surfaces ---------- */
section { padding: 72px 0; }
section.band {
  background: linear-gradient(180deg, rgba(61, 43, 35, 0.42) 0%, rgba(37, 27, 22, 0.65) 100%);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rose-bright); margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.6vw, 40px); line-height: 1.18; color: var(--text); margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Download Strip ---------- */
.download-strip {
  padding: 36px 0;
  background: linear-gradient(120deg, rgba(194, 149, 146, 0.18) 0%, rgba(61, 43, 35, 0.72) 55%, rgba(37, 27, 22, 0.92) 100%);
  border-top: 1px solid var(--edge-strong);
  border-bottom: 1px solid var(--edge-strong);
}
.download-strip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.download-strip h2 { font-family: var(--font-serif); font-size: 25px; color: var(--text); margin-bottom: 6px; }
.download-strip p { color: var(--muted); font-size: 15px; max-width: 54ch; }

/* ---------- Screens Grid ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.shot {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 20px 20px 24px; text-align: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.shot img {
  width: 82%; margin: 0 auto; border-radius: 24px;
  border: 1px solid var(--edge-strong); box-shadow: var(--shadow);
}
.shot h3 { font-family: var(--font-serif); margin-top: 20px; font-size: 20px; color: var(--text); }
.shot p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* ---------- Style Showcase Strip ---------- */
.style-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.style-card {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius-sm);
  overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease;
}
.style-card:hover { transform: translateY(-4px); border-color: var(--rose); text-decoration: none; }
.style-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.style-card .cap { padding: 11px 13px; }
.style-card .cap strong { display: block; font-size: 14px; color: var(--text); }
.style-card .cap span { font-size: 12px; color: var(--muted-dim); }
@media (max-width: 820px) { .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 28px 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-bright), var(--rose));
  color: #1B130F; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-serif); font-size: 20px; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Guides Grid ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius-sm);
  padding: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.guide-card:hover {
  transform: translateY(-3px); border-color: var(--rose-bright); background: var(--glass-hover);
  text-decoration: none;
}
.guide-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--rose-bright); margin-bottom: 8px;
}
.guide-card h3 { font-family: var(--font-serif); font-size: 18px; line-height: 1.3; color: var(--text); margin-bottom: 8px; }
.guide-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.guide-card .more { font-size: 13.5px; font-weight: 600; color: var(--rose-bright); }
@media (max-width: 920px) { .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--glass); border: 1px solid var(--edge); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 50px 18px 22px;
  font-weight: 600; font-size: 16px; color: var(--text); list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--rose-bright); transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }
.faq-item .faq-body a,
.article-body a:not(.btn):not(.appstore-badge),
.legal-main a:not(.btn):not(.appstore-badge) {
  font-weight: 600;
  color: var(--rose-bright);
  text-decoration: underline;
  text-decoration-color: rgba(223, 182, 177, 0.5);
  text-underline-offset: 3px;
}
.faq-item .faq-body a:hover,
.article-body a:not(.btn):not(.appstore-badge):hover,
.legal-main a:not(.btn):not(.appstore-badge):hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

/* ---------- Article Pages ---------- */
.article-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--edge);
  background: radial-gradient(ellipse 70% 80% at 80% 0%, rgba(194, 149, 146, 0.16), transparent 65%);
}
.breadcrumbs { font-size: 13.5px; color: var(--muted-dim); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.14; color: var(--text);
  max-width: 24ch; margin-bottom: 14px;
}
.article-hero p.lead { font-size: 17.5px; color: var(--muted); max-width: 66ch; }
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px;
  font-size: 13px; color: var(--muted-dim);
}

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; padding: 44px 0 72px;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 26px; line-height: 1.25; color: var(--text); margin: 38px 0 14px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18.5px; color: var(--rose-bright); margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--muted); font-size: 16px; }
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: var(--muted); font-size: 16px; }
.article-body li { margin-bottom: 9px; }

.tip-box {
  background: rgba(194, 149, 146, 0.12); border-left: 3px solid var(--rose-bright);
  border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 24px 0;
  color: var(--text); font-size: 15px;
}
.prompt-card {
  background: var(--bg-deep); border: 1px solid var(--edge-strong); border-radius: 14px;
  padding: 18px 20px; margin: 18px 0;
}
.prompt-card .prompt-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rose-bright); margin-bottom: 8px;
}
.prompt-card pre {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55;
  color: var(--text); white-space: pre-wrap; word-break: break-word;
  user-select: all; cursor: copy;
}

.article-styles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 10px;
}
.article-styles figure {
  background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden;
}
.article-styles img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.article-styles figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.caption-note { font-size: 12.5px; color: var(--muted-dim); margin-bottom: 24px !important; }
@media (max-width: 600px) { .article-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--edge); border-radius: 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--glass); }
table.cmp th, table.cmp td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--edge); color: var(--muted);
}
table.cmp th { color: var(--text); font-weight: 700; background: rgba(27, 19, 15, 0.55); }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp tr.highlight td { background: rgba(194, 149, 146, 0.14); color: var(--text); }

.article-cta {
  background: linear-gradient(135deg, rgba(194, 149, 146, 0.22) 0%, rgba(61, 43, 35, 0.85) 100%);
  border: 1px solid var(--edge-strong); border-radius: var(--radius);
  padding: 28px 26px; margin: 34px 0; text-align: center;
}
.article-cta h3 { font-family: var(--font-serif); color: var(--text); font-size: 23px; margin: 0 0 8px; }
.article-cta p { color: var(--muted); font-size: 15px; margin: 0 auto 20px; max-width: 48ch; }
.article-cta-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }

.article-aside { position: sticky; top: 88px; align-self: start; }
.aside-card {
  background: var(--glass-strong); border: 1px solid var(--edge-strong);
  border-radius: var(--radius); padding: 24px 20px; text-align: center; margin-bottom: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.aside-card img.icon {
  width: 68px; height: 68px; border-radius: 16px; margin: 0 auto 12px;
  border: 1px solid var(--edge-strong); box-shadow: var(--shadow);
}
.aside-card h3 { font-family: var(--font-serif); font-size: 19px; color: var(--text); margin-bottom: 6px; }
.aside-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.aside-qr {
  margin: 16px auto 0; padding-top: 14px; border-top: 1px solid var(--edge);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.aside-qr img { width: 108px; height: 108px; background: #FDF7F2; padding: 6px; border-radius: 10px; }
.aside-qr span { font-size: 12px; color: var(--muted-dim); }
.aside-links {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.aside-links h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--rose-bright); margin-bottom: 12px;
}
.aside-links ul { list-style: none; }
.aside-links li { margin-bottom: 10px; font-size: 14px; }
.aside-links li:last-child { margin-bottom: 0; }
@media (max-width: 920px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .aside-qr { display: none; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse 65% 90% at 50% 0%, rgba(194, 149, 146, 0.24), transparent 70%),
    linear-gradient(180deg, #2D201A 0%, #1B130F 100%);
  border-top: 1px solid var(--edge-strong);
  text-align: center; padding: 78px 0;
}
.final-cta img.icon {
  width: 82px; height: 82px; border-radius: 20px; margin: 0 auto 20px;
  border: 1px solid var(--edge-strong); box-shadow: var(--shadow-lg);
}
.final-cta h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px);
  color: var(--text); margin-bottom: 12px;
}
.final-cta p { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 0 auto 28px; }
.final-cta-actions { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep); border-top: 1px solid var(--edge);
  color: var(--muted-dim); padding: 54px 0 32px; font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 0.85fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: var(--text); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--rose-bright); }
.site-footer .brand { margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid var(--edge); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal / Support Pages ---------- */
.legal-main { max-width: 780px; margin: 0 auto; padding: 52px 24px 80px; }
.legal-main h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.legal-main h2 { font-family: var(--font-serif); font-size: 23px; margin: 32px 0 10px; color: var(--text); }
.legal-main p, .legal-main li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal-main ul { margin-left: 22px; }
