/* Nestbook landing page. Calm and spacious (in the spirit of chrome.com / apple.com): white space, big type,
   the product shown large, one blue. No framework. */
:root {
  --blue: #0259C8;          /* Nestbook blue (the logo) */
  --blue-dark: #0248A1;
  --blue-light: #E6EEFA;
  --text: #1D1D1F;
  --text-2: #4A4F57;
  --muted: #6E7178;
  --line: #DFE3E8;
  --tint: #F5F7FA;
  --radius: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
       text-rendering: optimizeLegibility; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
figure { margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

/* skip link for keyboard users: hidden until focused */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }

/* ── Header: frosted glass, a hairline once the page scrolls ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78);
       -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
       border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { width: min(1200px, 100% - 40px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { color: var(--text-2); font-size: .9rem; font-weight: 500; padding: 12px 2px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--text-2); font-size: .9rem; font-weight: 500; padding: 12px 2px; }

/* ── Buttons: pills ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px;
       border-radius: 999px; font-weight: 600; font-size: 1rem; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn-sm { height: 38px; padding: 0 18px; font-size: .9rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(2,89,200,.25); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(2,89,200,.28); }
.btn-ghost { color: var(--blue); background: var(--blue-light); }
.btn-ghost:hover { background: #d7e4f8; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(2,89,200,.35); outline-offset: 3px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 18px; }

/* ── Hero ── */
.hero { padding: 96px 0 0; background:
          radial-gradient(60% 50% at 50% 0%, rgba(2,89,200,.08), transparent 70%),
          linear-gradient(#fff, #fff); overflow: hidden; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--blue); background: var(--blue-light);
           padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.display { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: -0.035em; }
.grad { color: var(--blue); }
.lead { text-wrap: balance; font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--text-2); max-width: 680px; margin: 24px auto 0; line-height: 1.5; }

/* three short proof points under the hero buttons */
.hero-proof { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--text-2); font-size: .95rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230259C8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }

/* the product, shown big: a laptop screen with the phone over its corner */
.stage { position: relative; width: min(1120px, 100% - 48px); margin: 56px auto 0; padding-bottom: 72px; }
.device img { width: 100%; }
.laptop { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line);
          box-shadow: 0 30px 80px -20px rgba(16,40,80,.28), 0 8px 24px -8px rgba(16,40,80,.12); }
.phone { border-radius: 38px; overflow: hidden; background: #fff; border: 8px solid #111; aspect-ratio: 390 / 844;
         box-shadow: 0 30px 60px -15px rgba(16,40,80,.35); }
.stage .phone { position: absolute; right: -2%; bottom: 24px; width: min(250px, 26%); }


/* ── Feature sections ── */
.feature { padding: 112px 0; }
.feature.tint { background: var(--tint); }
.who .card { text-align: left; }
.kicker { font-size: .95rem; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
.feature .center h2 + .lead { margin-top: 20px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.copy p { color: var(--text-2); font-size: 1.12rem; margin-top: 20px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
                    background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230259C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.phone.solo { width: min(320px, 80%); justify-self: center; }
.laptop.wide { width: min(1120px, 100% - 48px); margin: 56px auto 0; }

/* ── Before / after: one row per problem and its fix ── */
.ba { max-width: 1000px; margin-top: 56px; display: grid; gap: 12px; }
.ba-row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: stretch; gap: 0; }
.ba-row > p { margin: 0; padding: 20px 24px 20px 56px; border-radius: 18px; font-size: 1.1rem; line-height: 1.45; position: relative; display: flex; align-items: center; }
.ba-row > p::before { content: ''; position: absolute; left: 20px; top: 50%; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%;
                      background-position: center; background-repeat: no-repeat; background-size: 14px; }
.ba-before { background: var(--tint); color: #5F646C; }
.ba-before::before { background-color: #E4E7EB; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7m0-7l-7 7' stroke='%236E7178' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ba-after { background: var(--blue-light); color: var(--text); font-weight: 600; }
.ba-after::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230259C8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ba-arrow { display: grid; place-items: center; color: var(--blue); font-size: 1.4rem; }
.ba-heads > p { padding: 0 0 4px 24px; background: none; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ba-heads > p::before { display: none; }
.ba-heads > p:last-child { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── How it works: three rows ── */
.flow-row { margin-top: 88px; }
.flow-row.rev .copy { order: 2; }
.flow-row.wide-img { grid-template-columns: .8fr 1.2fr; gap: 56px; }
.flow-row.rev.wide-img { grid-template-columns: 1.2fr .8fr; }
.step-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.step-tag span { width: 30px; height: 30px; font-weight: 700; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.h-flow { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.028em; }
.device.shot { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
               box-shadow: 0 24px 60px -24px rgba(16,40,80,.28); }
.pdf-link { margin-top: 28px !important; }
/* the committee statement shown as a sheet of paper */
.device.paper { width: min(560px, 100%); justify-self: center; background: #fff; border-radius: 6px; overflow: hidden; padding-bottom: 18px;
                box-shadow: 0 1px 2px rgba(16,40,80,.08), 0 30px 70px -20px rgba(16,40,80,.30); transform: rotate(1.2deg); }
.prob { font-style: italic; color: var(--text) !important; font-weight: 500; margin-bottom: 8px; }

/* ── Cards ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
        transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(16,40,80,.22); }
.card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.card p { color: var(--text-2); font-size: .98rem; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-light); display: grid; place-items: center; }
.ic svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Dark band ── */
.dark { background: #0B0C0E; color: #F5F5F7; padding: 120px 0; }
.dark .kicker { color: #6EA8FF; }
.dark .copy p { color: #A1A1A6; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { color: #A1A1A6; padding: 20px 22px; border-radius: 20px; background: #16181B; border: 1px solid #23262B; }
.points b { color: #F5F5F7; display: block; margin-bottom: 4px; font-weight: 600; }

/* ── Pricing ── */
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 32px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.bill-toggle button { font: inherit; font-weight: 600; font-size: .95rem; color: var(--text-2); background: none; border: 0; border-radius: 999px;
                      min-height: 44px; padding: 0 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bill-toggle button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,40,80,.14); }
.bill-toggle .save { font-size: .8rem; font-weight: 600; color: #1E7A3C; background: #E7F6EC; padding: 2px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; }
.plan-desc { color: var(--text-2); margin-top: 6px; min-height: 3.1em; }
.plan-flats { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.vat { color: var(--muted); font-size: .8rem; margin-top: 10px; }
.plan { position: relative; }
.plan-hi { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 24px 50px -20px rgba(2,89,200,.55); }
.plan-hi .plan-desc, .plan-hi .plan-flats, .plan-hi .price .per, .plan-hi .plan-note, .plan-hi .vat { color: rgba(255,255,255,.85); }
.plan-badge { position: absolute; top: 22px; right: 20px; background: #fff; color: var(--blue); font-size: .78rem; font-weight: 700;
              padding: 5px 10px; border-radius: 999px; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #EAF1FC; }
.price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price .amt { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; }
.price .per { color: var(--text-2); }
.plan-note { color: var(--muted); font-size: .9rem; margin-top: 6px; min-height: 1.4em; }
.plan-btn { margin-top: auto; }
.vat { margin-bottom: 24px; }
.price-foot { margin-top: 28px; text-align: center; display: grid; gap: 6px; }
.price-foot b { color: var(--text); }

/* ── Steps ── */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.steps li { background: var(--tint); border-radius: var(--radius); padding: 32px 28px; }
.steps h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.steps p { color: var(--text-2); font-size: .98rem; }
.num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
       font-weight: 700; }

/* ── FAQ ── */
#faq h2 { margin-bottom: 40px; }
details { border-bottom: 1px solid #DDE1E6; padding: 4px 0; }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 1.12rem; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem;
                 font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--text-2); padding: 0 40px 22px 0; }

/* ── Final call ── */
.final { padding: 120px 0; background: radial-gradient(55% 60% at 50% 100%, rgba(2,89,200,.10), transparent 70%); }

/* ── Request a demo form ── */
.demo-split { align-items: start; }
.demo-split .copy { padding-top: 24px; }
.demo-split .copy p.small { margin-top: 24px; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
             box-shadow: 0 30px 80px -30px rgba(16,40,80,.25); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: block; font-size: .9rem; font-weight: 600; color: var(--text); }
.f .opt { margin-left: 4px; }
.f.full { grid-column: 1 / -1; }
.f .req { color: var(--blue); margin-left: 2px; }
.f .opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: #fff;
       border: 1px solid #D5DAE0; border-radius: 12px; padding: 0 14px; height: 48px; width: 100%; display: block; margin-top: 6px;
       transition: border-color .15s, box-shadow .15s; }
.f textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 88px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2,89,200,.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; margin-top: 22px; border: 0; cursor: pointer; font-family: inherit; }
.btn-block:disabled { opacity: .6; cursor: default; }
.f-status { min-height: 1.4em; margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }
.f-status.err { color: #C62828; }
.demo-done { text-align: center; padding: 40px 8px; }
.demo-done h3 { font-size: 1.5rem; margin: 18px 0 8px; }
.demo-done p { color: var(--text-2); }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: #E7F6EC; display: inline-grid; place-items: center; }
.done-ic svg { width: 32px; height: 32px; fill: none; stroke: #1E8E3E; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-in img { height: 22px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--text-2); font-size: .9rem; display: inline-flex; align-items: center; min-height: 44px; }
.foot-in .small { margin-left: auto; }

/* ── Motion: a gentle fade-up, once ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Smaller screens ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .ba-row { grid-template-columns: 1fr; }
  .ba-row .ba-arrow { transform: rotate(90deg); height: 28px; }
  .ba-heads { display: none; }
  .ba { gap: 20px; }
  .flow-row.rev .copy { order: 0; }
  .flow-row.wide-img, .flow-row.rev.wide-img { grid-template-columns: 1fr; }
  .flow-row { margin-top: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-in { height: 60px; }
  .btn-sm { height: 44px; }
  .demo-split .copy a { display: inline-block; padding: 10px 0; }
  .link-quiet { display: none; }
  .hero { padding-top: 56px; }
  .hero-proof { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; text-align: left; }
  .eyebrow { font-size: .875rem; padding: 6px 14px; }
  .stage { padding-bottom: 40px; }
  .stage .phone { width: 34%; right: 0; bottom: 8px; border-width: 5px; border-radius: 24px; }
  .feature, .dark { padding: 80px 0; }
  .grid3, .steps, .plans { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .card, .steps li { padding: 26px 22px; }
  .ba-row > p { font-size: 1rem; padding: 16px 18px 16px 50px; }
  .ba-row > p::before { left: 16px; }
  .demo-card { padding: 24px 20px; }
  .device.paper { transform: none; }
  .f-grid { grid-template-columns: 1fr; }
  .foot-in .small { margin-left: 0; width: 100%; }
}

.demo-split .copy .kicker { color: var(--blue); margin-top: 0; }
.dark .copy .kicker { color: #6EA8FF; }
.plan-note:has(+ .plan-btn) { margin-bottom: 24px; }
