/* halldiary.in marketing page. Modern Heritage tokens (docs/theme.md); Anek for display, Noto for body. */
@font-face { font-family: 'Anek Latin'; src: url('../fonts/anek.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #FAF7F2; --card: #FFFFFF; --ink: #1F1A17; --muted: #5A524C; --line: #EAE3DA;
  --maroon: #7C2D3A; --deep: #4A1620; --pink: #F4E6E8; --gold: #C9973A; --gold-soft: #F7EDD9; --cream-on-dark: #F0D9A8;
  --display-hi: 'Anek Devanagari', 'Noto Sans Devanagari', sans-serif;
  --display-en: 'Anek Latin', 'Noto Sans', sans-serif;
  --body: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
[lang="en"] { font-family: 'Noto Sans', sans-serif; }
a { color: var(--maroon); }
a:hover { color: #5E1F2A; }
img, svg { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 0; }
.btn small { display: block; font-weight: 500; font-size: 13px; }
.btn-lg { flex-direction: column; gap: 0; line-height: 1.25; padding: 12px 26px; font-size: 19px; }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); background: #D8A84A; }
.btn-light { background: #FFFFFF; color: var(--deep); }
.btn-light:hover { color: var(--deep); background: #FFF6EE; }
.btn-maroon { background: var(--maroon); color: #FFFFFF; }
.btn-maroon:hover { color: #FFFFFF; background: #6A2431; }
.btn-pink { background: var(--pink); color: var(--maroon); }
.btn-dark { background: var(--deep); color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; background: #3A1018; }
.btn-ghost-dark { border: 2px solid var(--deep); color: var(--deep); }
.btn-ghost-dark:hover { color: var(--deep); background: rgba(74, 22, 32, 0.08); }

/* Google Play: data-play="soon" until the listing is live */
.play { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px; border-radius: 14px; background: var(--ink); color: #FFFFFF; text-decoration: none; border: 1px solid #6B4A50; }
.play:hover { color: #FFFFFF; }
.play > span { display: flex; flex-direction: column; line-height: 1.15; font-size: 19px; font-weight: 600; }
.play small { font-size: 11px; letter-spacing: 0.6px; font-weight: 500; }
body[data-play="soon"] .play-live { display: none; }
body[data-play="live"] .play-soon { display: none; }
/* The hero carries Start free and Watch video, plus Google Play once it is live (no use on an iPhone). How to put the
   diary on each device is in "On your phone or computer". */
html[data-device="ios"] .hero .play-live { display: none; }

/* header */
.top { background: var(--deep); color: #FFFFFF; position: sticky; top: 0; z-index: 5; }
.top-actions { display: flex; align-items: center; gap: 12px; }
/* Language pill: the one control that stays in the header on phones */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; }
.lang-switch button { min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: #EBDDD0; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.lang-switch button:hover { color: #FFFFFF; }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand-hi { font-family: var(--display-hi); font-weight: 700; font-size: 24px; }
.brand-en { font-family: var(--display-en); font-size: 21px; opacity: 0.85; }
.brand-en b { font-weight: 800; }
.brand-en sup { font-size: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.nav a { color: #EBDDD0; text-decoration: none; }
.nav a span { opacity: 0.75; }
.nav a:hover { color: #FFFFFF; }

/* hero */
.hero { background: var(--deep); color: #FFFFFF; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; align-items: end; padding-top: 48px; }
.hero-copy { padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { margin: 0; color: var(--cream-on-dark); font-weight: 600; font-size: 15px; }
.hero h1 { margin: 0; font-family: var(--display-hi); font-weight: 800; font-size: clamp(42px, 6vw, 68px); line-height: 1.12; }
.h1-en { margin: 0; font-family: var(--display-en); font-weight: 800; font-size: clamp(24px, 3vw, 34px); color: var(--cream-on-dark); line-height: 1.2; }
.lead { margin: 0; color: #EBDDD0; max-width: 580px; }
.lead span { font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.fine { margin: 0; color: #D9C4B6; font-size: 14px; }
.fine a { color: #FFFFFF; font-weight: 600; text-underline-offset: 3px; }
/* Hero: 'Start free' is the one filled button; 'Watch video' (YouTube) is outlined beside it, laid out like the Google
   Play button (caption over a short line, same height). */
.btn-start { min-height: 52px; padding: 8px 28px; font-size: 19px; }
.btn-watch { gap: 10px; min-height: 52px; padding: 8px 20px; border: 1px solid rgba(255, 255, 255, 0.6); background: transparent; color: #FFFFFF; justify-content: flex-start; }
.btn-watch:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }
.btn-watch > span { display: flex; flex-direction: column; line-height: 1.15; font-size: 19px; font-weight: 600; text-align: left; }
.btn-watch small { font-size: 11px; letter-spacing: 0.6px; font-weight: 500; }
.btn-watch[lang="en"] small { text-transform: uppercase; }
/* Devanagari needs more line height than Latin, or the caption's matras run into the line below. */
.btn-watch[lang="hi"] > span { line-height: 1.35; }
.btn-watch[lang="hi"] small { line-height: 1.5; }
.try-demo { margin: 2px 0 0; color: #D9C4B6; font-size: 15px; }
.try-demo a { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.device-pair { margin: 0; position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 360px; }
.laptop { width: min(440px, 62%); height: 290px; background: var(--ground); border: 10px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; display: flex; overflow: hidden; }
/* Real screens of the sample venue: the calendar on the laptop, Home on the phone, cut off at the fold. */
.laptop img, .phone-screen img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top left; }
.phone { width: 168px; height: 330px; background: var(--ink); border-radius: 28px 28px 0 0; padding: 8px 8px 0; flex: none; }
.phone-screen { height: 100%; background: var(--ground); border-radius: 22px 22px 0 0; overflow: hidden; color: var(--ink); }
.voice-chip { position: absolute; left: 0; top: 24px; max-width: 250px; display: flex; gap: 10px; align-items: flex-start; background: #FFFFFF; color: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }
.mic { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }

.promises { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.promise-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-top: 18px; padding-bottom: 18px; font-weight: 600; font-size: 15px; color: #3D3530; }

/* sections */
.section { padding-top: 80px; padding-bottom: 32px; }
.section h2 { margin: 0; font-family: var(--display-hi); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; text-align: center; }
.h2-en { margin: 4px 0 40px; text-align: center; font-family: var(--display-en); font-weight: 700; font-size: 22px; color: var(--maroon); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.card .en { margin: 0; font-weight: 600; color: var(--maroon); font-size: 15px; }
.card p { margin: 8px 0 0; color: var(--muted); }
.ic { width: 52px; height: 52px; border-radius: 14px; background: var(--pink); display: flex; align-items: center; justify-content: center; }
.ic svg { width: 26px; height: 26px; fill: none; stroke: var(--maroon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.vs > div { border-radius: 20px; padding: 30px; }
.vs-old { background: #FFFFFF; border: 1px solid var(--line); }
.vs-new { background: var(--maroon); color: #FFFFFF; }
.tag { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.4px; color: #6B625B; }
.vs-new .tag { color: var(--cream-on-dark); }
.vs ul { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

.band-pink { background: var(--pink); margin-top: 48px; }
.band-pink .section { padding-bottom: 72px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { background: #FFFFFF; border-radius: 18px; padding: 26px; }
.steps b { font-family: var(--display-en); font-weight: 800; font-size: 44px; color: var(--maroon); line-height: 1; }
.steps h3 { margin: 10px 0 4px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }
.steps p span { font-size: 15px; }

.get { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.get-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.get-card h3 { margin: 0; font-size: 24px; }
.get-card > p { margin: 0; color: var(--muted); }
.get-card .you { display: none; margin: 0; font-size: 13px; font-weight: 700; color: var(--maroon); letter-spacing: 0.3px; }
.get-card.is-you { order: -1; border: 2px solid var(--maroon); box-shadow: 0 16px 40px rgba(124, 45, 58, 0.14); }
.get-card.is-you .you { display: block; }
.soon-line { margin: 0; font-size: 15px; color: var(--muted); }
.qr-wrap { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.qr-wrap p { margin: 0; font-size: 14px; color: var(--muted); }
.qr { width: 112px; height: 112px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); padding: 6px; }
.qr:empty::after { content: 'halldiary.in/app'; display: flex; height: 100%; align-items: center; justify-content: center; font-size: 11px; text-align: center; color: var(--muted); }

.price-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.price, .trust { border-radius: 22px; padding: 32px; }
.price { background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.price .big { margin: 0; font-family: var(--display-hi); font-weight: 800; font-size: clamp(40px, 11vw, 52px); line-height: 1.2; color: var(--maroon); }
.price .big [lang="en"] { font-family: var(--display-en); }
.price p { margin: 0 0 8px; color: var(--muted); }
.trust { background: var(--gold-soft); }
.trust h3 { margin: 0 0 8px; font-size: 22px; }
.trust p { margin: 0 0 8px; color: #4A413B; }

.faq { max-width: 880px; }
.faq .h2-en { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; min-height: 32px; }
.faq-more { margin-top: 20px; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.band-gold { background: var(--gold); margin-top: 56px; }
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding-top: 52px; padding-bottom: 52px; }
.closing-hi { margin: 0; font-family: var(--display-hi); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.closing-en { margin: 0; font-family: var(--display-en); font-weight: 700; font-size: 22px; }

.foot { background: var(--ink); color: #D9CFC3; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: #D9CFC3; }

/* phones: a sticky bar with the two actions */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .nav { display: none; }
  .top .btn-sm { display: none; }
  .hero-copy { padding-bottom: 28px; }
  .device-pair { min-height: 300px; }
  .laptop { display: none; }
  .voice-chip { position: static; order: -1; max-width: none; }
  .device-pair { flex-direction: column; align-items: center; }
  .card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .ic { width: 44px; height: 44px; border-radius: 12px; }
  .ic svg { width: 22px; height: 22px; }
  .promise-row { justify-content: center; gap: 6px 20px; font-size: 14px; }
  .qr-wrap { display: none; }
  .foot { padding-bottom: 76px; }
  .sticky-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 26, 23, 0.08); }
  .sticky-cta .btn { flex: 1; }
}
/* Language modes. Default (hi): Hindi, with English kept only as the line under each heading. English (data-lang="en", chosen in the
   header pill, remembered in localStorage, or ?lang=en): Hindi runs hide, the English lines take their place and size,
   and the .en-only copy written for this mode appears. */
html:not([data-lang="en"]) .en-only { display: none; }
html[data-lang="en"] [lang="hi"], html[data-lang="en"] [lang="hi"] + br, html[data-lang="en"] .hero h1 { display: none; }
html[data-lang="en"] body { font-family: 'Noto Sans', sans-serif; }
html[data-lang="en"] .brand-en { opacity: 1; }
html[data-lang="en"] .nav a span { opacity: 1; }
html[data-lang="en"] .h1-en { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.12; color: #FFFFFF; }
html[data-lang="en"] .lead span, html[data-lang="en"] .steps p span { font-size: inherit; }
html[data-lang="en"] .btn small { font-size: inherit; font-weight: 700; }
html[data-lang="en"] .h2-en { margin: 0 0 40px; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; color: var(--ink); }
html[data-lang="en"] .card .en { font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--ink); }
html[data-lang="en"] .closing-en { font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* English mode makes button captions full size; the Watch button keeps its small length line. */
html[data-lang="en"] .btn-watch small { font-size: 11px; font-weight: 500; }
