/* spotmybook.com — the app's colours: cream, terracotta and dark brown. Light and dark. */
:root {
  --bg: #F6EEE3;
  --surface: #FFF8EF;
  --text: #2E1F17;
  --muted: #6B5444;
  --accent: #C8553D;
  --accent-ink: #FFF8F0;
  --line: #E6D3BF;
  --shadow: 0 18px 40px rgba(80, 45, 20, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1612;
    --surface: #2A201A;
    --text: #F3E9DF;
    --muted: #C5B2A2;
    --accent: #E37B62;
    --accent-ink: #2A140D;
    --line: #3D3028;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Helvetica Neue", Arial, sans-serif;
}
:lang(ta) body, body:lang(ta) { line-height: 1.75; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, p, li, figcaption { overflow-wrap: break-word; }
/* Grid and flex children may shrink below their content's width (long Tamil words, screenshots). */
.hero > *, .features > *, .pro > *, .tablet > *, .cta > *, .top > * { min-width: 0; }
html, body { overflow-x: clip; }

.top { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 22px; letter-spacing: -.3px; }
.brand img { border-radius: 9px; }
.brand b { color: var(--accent); }
.lang { text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--text); font-size: 15px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { margin: 72px 0; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-top: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 18px; }
:lang(ta) .hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; letter-spacing: 0; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.play { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 14px; box-shadow: var(--shadow); }
.play::before { content: ""; width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.play.small { padding: 10px 18px; box-shadow: none; }
.note { color: var(--muted); font-size: 15px; }
.hero-shots { position: relative; height: 560px; }
.phone { position: absolute; width: 230px; border-radius: 28px; border: 6px solid #241A14; box-shadow: var(--shadow); }
.phone.front { right: 40px; top: 30px; }
.phone.back { right: 210px; top: 0; transform: rotate(-6deg); opacity: .95; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.features h2 { font-size: 19px; margin: 0 0 8px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 22px; border: 5px solid #241A14; box-shadow: var(--shadow); }
.strip figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }

.pro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.pro h2 { font-size: 30px; margin: 0; }
.pro .sub { color: var(--accent); font-weight: 700; margin: 8px 0 0; }
.pro ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pro li { padding-left: 34px; position: relative; }
.pro li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; display: grid; place-items: center; font-weight: 700; }

.tablet { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; }
.tablet h2 { font-size: 24px; margin: 0 0 6px; }
.tablet p { color: var(--muted); margin: 0 0 22px; }
.tablet img { border-radius: 18px; border: 6px solid #241A14; box-shadow: var(--shadow); }
.soon { font-weight: 600; color: var(--text) !important; }

footer { max-width: 1120px; margin: 80px auto 0; padding: 32px 24px 48px; border-top: 1px solid var(--line); display: grid; gap: 16px; justify-items: start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--accent); }
.copy { color: var(--muted); font-size: 14px; margin: 0; }

/* The privacy and delete-account pages. */
.prose { max-width: 760px; }
.prose h1 { font-size: 36px; line-height: 1.2; margin: 24px 0 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose li { margin: 4px 0; }
.prose code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

@media (max-width: 900px) {
  .hero, .pro, .tablet { grid-template-columns: 1fr; }
  .hero-shots { height: 470px; }
  .phone { width: 190px; }
  .phone.front { right: auto; left: 50%; transform: translateX(-10%); }
  .phone.back { right: auto; left: 50%; transform: translateX(-90%) rotate(-6deg); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20px; }
  .hero-shots { height: 400px; }
  .phone { width: 160px; border-width: 5px; border-radius: 22px; }
  section { margin: 52px 0; }
  .features { grid-template-columns: 1fr; }
  .pro { padding: 24px; }
  .strip { grid-auto-columns: 70%; }
}
