/* Video Diary — videodiary.app
   Brand: hand-drawn doodle. Cream paper, ink black, periwinkle, warm brown, record red. */

:root {
  --paper: #f6f4ec;
  --paper-deep: #ddd9cf;
  --ink: #191919;
  --ink-soft: #444036;
  --periwinkle: #8894e3;
  --periwinkle-deep: #5f6cc9;
  --brown: #8b5e3c;
  --red: #e8271b;
  --white: #fffdf7;
  --radius-sketch: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --shadow-card: 0 10px 30px rgba(25, 25, 25, 0.12);
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--periwinkle-deep); }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
h3 { font-size: 1.45rem; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--ink);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sketch);
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--periwinkle-deep); }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(136, 148, 227, 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(139, 94, 60, 0.14), transparent 50%),
    var(--paper);
  border-bottom: 2px solid var(--ink);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero .wrap > * { min-width: 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; max-width: 300px; margin: 0 auto; }
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.4rem;
}

.hero h1 span { color: var(--periwinkle-deep); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 1.6rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 1.05rem;
}

.hero-points li::before { content: "✏️ "; }
.hero-points li:nth-child(2)::before { content: "🔒 "; }
.hero-points li:nth-child(3)::before { content: "🎬 "; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.store-badge { display: inline-block; line-height: 0; }
.store-badge svg { height: 56px; width: auto; }
.store-badge:hover { opacity: 0.85; }

.rating {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.rating strong { color: var(--ink); }
.stars { color: var(--brown); letter-spacing: 2px; }

.hero-media img {
  border-radius: 24px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

/* ---------- generic sections ---------- */

section { padding: 4rem 0; }

.section-alt {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.section-head {
  max-width: 44em;
  margin-bottom: 2.4rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- download band ---------- */

.download-band {
  padding: 2.6rem 0;
  background: var(--ink);
  color: var(--paper);
}

.download-band .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.download-band h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--paper); }
.download-band p { margin: 0.2rem 0 0; color: #cfcbc0; font-size: 1rem; }

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 300px);
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  border-radius: 22px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.shots figcaption {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sketch);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.8rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--periwinkle);
  color: var(--white);
  font-family: var(--font-hand);
  font-size: 1.3rem;
}

.step p { margin: 0; color: var(--ink-soft); }

/* ---------- guide cards ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.3rem;
}

.guide-card {
  display: block;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 1.35rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.guide-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--periwinkle-deep);
  color: var(--ink);
}

.guide-card h3 { margin-bottom: 0.35rem; }
.guide-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.guide-card .go {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-hand);
  color: var(--periwinkle-deep);
}

/* ---------- FAQ ---------- */

.faq { max-width: 46em; }

.faq details {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 0.9rem;
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brown);
}

.faq details[open] summary::after { content: "–"; }

.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq .answer p { margin: 0 0 0.5rem; }

.learn-more {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  text-decoration: none;
}
.learn-more:hover { text-decoration: underline; }

/* ---------- final CTA ---------- */

.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(136, 148, 227, 0.3), transparent 60%),
    var(--paper-deep);
  border-top: 2px solid var(--ink);
}

.final-cta .hero-icon { margin: 0 auto 1.2rem; }
.final-cta p { max-width: 36em; margin: 0 auto 1.8rem; color: var(--ink-soft); font-size: 1.15rem; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9b5aa;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }

.site-footer h3 { color: var(--paper); font-size: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: #b9b5aa; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-note { border-top: 1px solid #3a3830; padding-top: 1.2rem; font-size: 0.85rem; }

/* ---------- guide article pages ---------- */

.article-hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(136, 148, 227, 0.2), transparent 55%),
    var(--paper);
  border-bottom: 2px solid var(--ink);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--ink-soft); }

.article-hero .meta { color: var(--ink-soft); font-size: 0.95rem; }

article.guide {
  max-width: 46em;
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
}

article.guide h2 { margin-top: 2.2rem; }
article.guide h3 { margin-top: 1.6rem; }
article.guide li { margin-bottom: 0.4rem; }

article.guide .shot-inline {
  border-radius: 20px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-card);
  max-width: 300px;
  margin: 2rem auto;
}

.tip {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sketch);
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
  color: var(--ink-soft);
}
.tip strong { color: var(--ink); }

.app-callout {
  background: var(--paper-deep);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  margin: 2.4rem 0;
}
.app-callout h2, .app-callout h3 { margin-top: 0; }

.related {
  max-width: 46em;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}
