/* Hovry website. Palette from docs/VISUAL_SYSTEM.md: cream, sky, coral, slate ink.
   System fonts only (no third-party requests). Motion is gentle and opt-out by OS setting. */
:root {
  --cream: #FFF8F2; --card: #FFFCF9; --sky: #C9E0ED; --sky-deep: #A9CBE0; --coral: #F28573; --coral-ink: #472929;
  --ink: #304A66; --muted: #50627A; --line: #E8DED4; --bezel: #22303F; --bezel-edge: #3B4B5E;
  --band: linear-gradient(180deg, #DCEBF4 0%, #FFF8F2 100%);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --radius: 26px; --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #16202C; --card: #1E2A38; --sky: #2A4057; --sky-deep: #34506B; --ink: #EAF1F7; --muted: #A9B8C8;
    --line: #2E3E52; --bezel: #0D141C; --bezel-edge: #2E3E52; --band: linear-gradient(180deg, #1E3247 0%, #16202C 100%);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0; }
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 34em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 78%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 21px; font-weight: 600; }
.brand img { width: 34px; height: auto; }
.site-header nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.store-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--coral) 22%, var(--card)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); white-space: nowrap; }
.store-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.store-pill-large { font-size: 16px; padding: 13px 22px; }
@media (max-width: 860px) { .site-header nav { display: none; } .header-inner > .store-pill { margin-left: auto; } }
@media (max-width: 420px) { .header-inner > .store-pill { display: none; } }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 56px 20px 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 84px); line-height: 1.02; }
.nowrap { white-space: nowrap; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--coral); }
.hero-intro { font-size: 20px; color: var(--muted); margin-top: 22px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.quiet-link { font-weight: 600; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.trust-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--muted); }
.trust-list li::before, .check-list li::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; border-radius: 50%;
  background: color-mix(in srgb, var(--sky-deep) 55%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.7 12 13 6.4' fill='none' stroke='%23304A66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.hero-device { position: relative; display: grid; justify-items: center; }
.hero-glow { position: absolute; inset: 6% 2% 14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sky) 90%, transparent), transparent); filter: blur(10px); }
.carousel { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: min(20rem, 76vw); border-radius: 3rem; }
.carousel::-webkit-scrollbar { display: none; }
.slide { margin: 0; scroll-snap-align: center; display: grid; justify-items: center; gap: 12px; }
.slide figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }
.screens-note { position: relative; font-size: 13px; color: var(--muted); margin-top: 6px; }
.carousel-dots { position: relative; display: flex; gap: 8px; margin-top: 10px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--coral); width: 24px; border-radius: 6px; }

/* Device */
.device { width: min(20rem, 76vw); aspect-ratio: 1320 / 2868; padding: .5rem; border-radius: 3rem; background: var(--bezel); border: 1px solid var(--bezel-edge); box-shadow: 0 30px 60px -28px rgba(31, 52, 77, .45), 0 2px 6px rgba(31, 52, 77, .12); }
.screen { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2.55rem; background: var(--card); }

/* How it works */
.how-band { background: var(--band); padding: 96px 0; }
.band-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li, .facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.steps p, .facts p { color: var(--muted); margin-top: 8px; }
.step-number { display: block; font: 600 15px/1 var(--sans); color: var(--coral); margin-bottom: 16px; letter-spacing: .08em; }
.mascot-card { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.mascot-card img { width: 150px; }
.mascot-card p { color: var(--muted); margin-top: 8px; max-width: 40em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .mascot-card { grid-template-columns: 1fr; justify-items: start; } .mascot-card img { width: 120px; } }

/* Features */
.features { max-width: var(--max); margin: 0 auto; padding: 40px 20px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature-flipped .feature-copy { order: 2; }
.feature-device { margin: 0; display: grid; justify-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: baseline; }
.check-list li::before { flex: none; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } .feature { grid-template-columns: 1fr; gap: 36px; padding: 52px 0; } .feature-flipped .feature-copy { order: 0; } }

/* Privacy, disclaimer, closing */
.privacy-band { background: var(--band); padding: 96px 0; }
.facts { list-style: none; padding: 0; margin: 40px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.privacy-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; margin: 40px 0 28px; }
.facts-stacked { grid-template-columns: 1fr; margin: 0; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }
.text-link { font-weight: 600; }
.isnt { max-width: var(--max); margin: 0 auto; padding: 72px 20px 24px; }
.isnt-inner { border-left: 4px solid var(--coral); background: var(--card); border-radius: 16px; padding: 26px 30px; max-width: 820px; }
.isnt-inner h2 { font-size: 28px; }
.isnt-inner p { color: var(--muted); margin-top: 10px; }
.closing { padding: 80px 20px 104px; text-align: center; }
.closing-inner { display: grid; justify-items: center; gap: 22px; }
.closing-inner img { width: 150px; }
.closing h2 { max-width: 16em; }
.release-note { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 15px; color: var(--muted); }
.footer-inner .brand { font-size: 18px; color: var(--ink); }
.footer-inner .brand img { width: 28px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner p { margin-left: auto; }
@media (max-width: 640px) { .footer-inner p { margin-left: 0; } }

/* Simple pages (support, legal, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.page h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 18px; }
.page h2 { font-size: 26px; margin: 36px 0 10px; }
.page h3 { margin: 24px 0 8px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page code { font-size: .9em; }
.draft { background: color-mix(in srgb, var(--coral) 16%, var(--card)); border-radius: 12px; padding: 12px 16px; font-size: 15px; color: var(--ink) !important; margin-bottom: 24px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 16px; }
.qa h2 { margin-top: 0; font-size: 22px; }

/* Motion: content is visible without script; only with motion allowed do sections rise in once. */
@media (prefers-reduced-motion: no-preference) {
  .mascot-float { animation: drift 6.5s ease-in-out infinite; }
  @keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5%); } }
  .motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .motion-ready .reveal[data-delay="1"] { transition-delay: .08s; }
  .motion-ready .reveal[data-delay="2"] { transition-delay: .16s; }
  .motion-ready .reveal.is-visible { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
