/* Card & Candle home page — Dark Manuscript (mobile/src/theme/colors.ts).
   Fonts are self-hosted: Google serves IM Fell English without ş/ğ/İ. */
@font-face { font-family: 'IM Fell English'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/imfell-regular.woff2) format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/imfell-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/sourcesans-400.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/sourcesans-600.woff2) format('woff2'); }

:root {
  --bg: #15110D; --surface: #1D1712; --raised: #26201A; --border: #3A2F22;
  --text: #EFE6D3; --text-2: #8C7F6B; --text-3: #5C5347; --accent: #A8462F;
  --voice: 'IM Fell English', Georgia, serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section { position: relative; }

.eyebrow { font: 600 12px/1.4 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1, h2 { font-family: var(--voice); font-weight: 400; }
h2 { font-size: clamp(30px, 5vw, 42px); line-height: 1.12; margin: 0 0 18px; }
.lead { font: italic 400 clamp(18px, 2.4vw, 21px)/1.55 var(--voice); color: var(--text-2); margin: 0; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; background: rgba(21, 17, 13, 0.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; font: 400 20px/1 var(--voice); text-decoration: none; min-height: 44px; }
.brand img { width: 26px; height: auto; }
.bar-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; }
.lang button { font: 600 12px/1 var(--body); letter-spacing: 1.2px; color: var(--text-3); background: none; border: 1px solid transparent; border-radius: 999px; padding: 9px 12px; min-width: 44px; min-height: 44px; cursor: pointer; }
.lang button:hover { color: var(--text-2); }
.lang button[aria-pressed="true"] { color: var(--text); border-color: var(--border); }
.mini { font: 600 13px/1 var(--body); letter-spacing: 0.4px; color: var(--text); background: var(--accent); border-radius: 999px; padding: 10px 16px; text-decoration: none; }

/* hero */
.hero { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 16px 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 38%; width: 720px; height: 720px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(168, 70, 47, 0.26) 0%, rgba(168, 70, 47, 0.08) 36%, rgba(168, 70, 47, 0) 66%); pointer-events: none; animation: glow 4.2s ease-in-out infinite; }
.hero-logo { width: 150px; height: auto; position: relative; margin-bottom: 30px; transform-origin: 30% 100%; animation: flicker 5.6s ease-in-out infinite; }
.hero h1 { font-size: clamp(48px, 9vw, 84px); line-height: 1; margin: 0 0 18px; position: relative; }
.hero .lead { max-width: 30em; position: relative; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--text-3); font-size: 22px; }
@keyframes glow {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  70% { opacity: 0.78; transform: translate(-50%, -50%) scale(0.98); }
}
@keyframes flicker {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  30% { transform: rotate(-0.8deg) scaleY(1.012); }
  55% { transform: rotate(0.5deg) scaleY(0.996); }
  80% { transform: rotate(-0.3deg) scaleY(1.006); }
}

/* call to action */
.cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; position: relative; }
.play { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: var(--accent); color: var(--text); font: 600 15px/1 var(--body); letter-spacing: 0.4px; padding: 16px 24px; border-radius: 12px; text-decoration: none; }
.play svg { width: 18px; height: 18px; }
.play:hover { filter: brightness(1.08); }
.soon { font: 600 11px/1 var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; }

/* intro */
.intro { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 90px 16px; text-align: center; }
.intro .inner { max-width: 640px; margin: 0 auto; }

/* feature bands */
.band { padding: 90px 24px; }
.band + .band { border-top: 1px solid var(--border); }
.band .inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.band.flip .phone { order: 2; }
.phone { justify-self: center; width: 270px; border: 1px solid var(--border); border-radius: 30px; padding: 8px; background: var(--raised); }
.phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
.copy p:not(.eyebrow) { font-size: 16px; line-height: 1.65; color: var(--text-2); margin: 0 0 12px; }

/* feature grid */
.grid { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 90px 24px; }
.grid .head, .honest .head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.grid ul { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid li { background: var(--surface); padding: 30px 26px; text-align: center; }
.grid svg { width: 30px; height: 30px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.4; margin-bottom: 14px; }
.grid h3 { font: 600 13px/1.3 var(--body); letter-spacing: 1.8px; text-transform: uppercase; margin: 0 0 10px; }
.grid li p { font-size: 15px; line-height: 1.55; color: var(--text-2); margin: 0; }

/* honestly */
.honest { padding: 90px 24px; }
.honest .inner { max-width: 760px; margin: 0 auto; }
.honest .head { margin-bottom: 40px; }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; }
.honest li { padding-left: 22px; position: relative; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.honest li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 10px; }
.honest b { color: var(--text); font-weight: 600; }

/* closing call */
.final { text-align: center; padding: 110px 16px 100px; background: var(--surface); border-top: 1px solid var(--border); overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(168, 70, 47, 0.16) 0%, rgba(168, 70, 47, 0) 62%); pointer-events: none; }
.final h2, .final .lead { position: relative; }

footer { border-top: 1px solid var(--border); padding: 26px 24px 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 22px; font-size: 13px; color: var(--text-3); }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-3); text-decoration: none; padding: 0 2px; }
footer a:hover { color: var(--text-2); }

/* 404 */
.notfound main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; gap: 6px; }
.notfound h1 { font-size: clamp(36px, 7vw, 56px); margin: 0; }
.notfound p { color: var(--text-2); margin: 6px 0; }
.notfound .home { display: inline-block; margin-top: 18px; padding: 12px 4px; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-logo { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  .bar { padding: 8px 16px; }
  .mini { display: none; }
  .band { padding: 72px 16px; }
  .band .inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .band.flip .phone { order: 0; }
  .grid { padding: 72px 16px; }
  .grid ul { grid-template-columns: 1fr; }
  .honest { padding: 72px 16px; }
  .honest ul { grid-template-columns: 1fr; }
}
