/* Landing page — Digital Security.
   Quiet, type-led layout. One signature element (the searchable logbook);
   colour tokens follow the app: green primary, orange only as a small signal. */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F2F8F7;
  --card: #F2F8F7;
  --ink: #10211F;
  --muted: #5A6B68;
  --line: #E0E8E6;
  --primary: #009982;
  --primary-hover: #00836F;
  --primary-deep: #00362F;
  --primary-soft: #E3F5F1;
  --primary-ink: #006B5C;
  --accent: #F26A0B;
  --accent-hover: #D95C05;
  --accent-light: #FF9A4D;
  --on-accent: #FFFFFF;
  --link: #007A68;
  --ok: #1B7442;
  --warn: #9C5406;
  --glass: rgba(0, 54, 47, .78);
  --shadow: 0 20px 50px rgba(0, 153, 130, .16);
  --bezel: #2A3835;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons: pill, 44pt minimum target */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1; letter-spacing: -.011em; transition: background .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: var(--accent); color: #fff; }
.btn-light:hover { background: var(--accent-hover); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { box-shadow: 0 6px 18px rgba(242, 106, 11, .3); }
.btn-primary:hover { transform: translateY(-1px); }
.link { color: var(--link); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.link::after { content: '\203A'; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.link:hover::after { transform: translateX(3px); }
.link-on-dark, .hero .link { color: #fff; }
.hero .link:hover { color: var(--accent-light); }
.link-on-dark:hover { color: var(--accent-light); }

/* Navigation: translucent bar floating above scrolling content */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.nav-links a:hover { color: var(--accent-light); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-actions .link { font-size: 14px; padding: 0 12px; color: #fff; }
.nav-actions .link:hover { color: var(--accent-light); }
.nav-actions .link::after { display: none; }

/* Hero */
.hero {
  --pw: min(300px, 62vw);
  position: relative; text-align: center; padding: 88px 0 0; color: #fff;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(242, 106, 11, .2), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(31, 181, 156, .38), transparent 60%),
    linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; opacity: .07; background: url('/images/auth_bg_pattern.png') center / 420px; pointer-events: none; }
.hero > * { position: relative; z-index: 2; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 1;
  background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%);
}
.hero + .section { padding-top: calc(var(--pw, 300px) * .5 + 110px); }
.hero .wrap-narrow { width: min(980px, 100% - 40px); }
.eyebrow { font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .72); margin-bottom: 14px; }
.display {
  font-size: clamp(42px, 8vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em;
  text-wrap: balance;
}
.display .soft { color: var(--accent-light); display: block; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: rgba(255, 255, 255, .82); max-width: 640px; margin: 24px auto 0; letter-spacing: -.016em; text-wrap: balance; }
.cta-row { display: flex; gap: 8px 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }

.stage { position: relative; height: calc(var(--pw) * 1.75); margin-top: 56px; }
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: var(--pw); }
.stage .phone.side { width: calc(var(--pw) * .83); top: 70px; }
.stage .phone.l { transform: translateX(-148%) rotate(-3deg); }
.stage .phone.r { transform: translateX(48%) rotate(3deg); }

/* Phone frame */
.phone { background: #0B0F17; border-radius: 12% / 5.4%; padding: 9px; box-shadow: 0 30px 60px rgba(0, 28, 23, .5), inset 0 0 0 2px var(--bezel); position: relative; }
.phone::before { content: ''; position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 27%; height: 2.3%; background: #0B0F17; border-radius: 999px; z-index: 2; }
.phone img { width: 100%; aspect-ratio: 1080 / 2424; object-fit: cover; object-position: top; border-radius: 34px; background: #F7F9F9; }

/* Sections */
.section { padding: 120px 0; }
.section.alt { background: var(--bg-alt); }
.head { text-align: center; margin-bottom: 64px; }
.h2 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; color: var(--primary-ink); }
.h2 .soft { color: var(--muted); }
.sub { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 620px; margin: 18px auto 0; text-wrap: balance; }

/* Signature: the searchable logbook */
.logbook-sec { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.logbook-sec .h2 { text-align: left; }
.logbook-sec .sub { margin: 20px 0 0; text-align: left; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.log { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.alt .log { background: var(--bg); }
.log-top { padding: 18px 18px 0; }
.log-search { position: relative; }
.log-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.log-search input {
  width: 100%; height: 44px; border-radius: 12px; border: 0; background: var(--bg-alt); color: var(--ink);
  padding: 0 14px 0 42px; font: inherit; font-size: 16px;
}
.log-search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; padding: 14px 18px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg-alt); color: var(--ink);
  font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; }
.log-list { list-style: none; margin: 0; padding: 0 0 6px; min-height: 420px; }
.log-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.log-row[hidden] { display: none; }
.log-time { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }
.log-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.log-meta { font-size: 14px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.tag.pending { color: var(--warn); }
.tag.done { color: var(--ok); }
.log-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.log-empty { padding: 56px 18px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step .n { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.step h3 { color: var(--primary-ink); font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Cards (bento) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0, 153, 130, .14), 0 2px 6px rgba(0, 153, 130, .06); border-radius: 32px; padding: 44px 44px 0; height: 640px; overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.card.dark { border-color: transparent; background: linear-gradient(160deg, var(--primary-deep), var(--primary)); color: #fff; box-shadow: 0 24px 50px rgba(0, 54, 47, .32); }
.card.dark h3 { color: #fff; }
.card h3 { color: var(--primary-ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.028em; font-weight: 700; }
.card p { margin: 12px auto 0; max-width: 360px; color: var(--muted); font-size: 17px; }
.card.dark p { color: rgba(255,255,255,.78); }
.card .peek { margin: 36px auto 0; width: min(270px, 70%); border-radius: 38px 38px 0 0; background: #0B0F17; padding: 9px 9px 0; box-shadow: var(--shadow); flex: none; }
.card .peek img { width: 100%; aspect-ratio: 1080 / 2424; object-fit: cover; object-position: top; border-radius: 30px 30px 0 0; }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.cap svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.cap h3 { color: var(--primary-ink); font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.cap p { color: var(--muted); font-size: 16px; }

/* Pricing */
.price-card { max-width: 440px; margin: 0 auto; background: var(--bg); border: 1.5px solid var(--accent); border-radius: 28px; padding: 44px 40px; text-align: center; box-shadow: 0 18px 44px rgba(242, 106, 11, .16); }
.price-card h3 { font-size: 19px; font-weight: 600; color: var(--primary-ink); }
.amount { font-size: 56px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; margin: 8px 0 4px; }
.amount small { font-size: 19px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.price-card .desc { color: var(--muted); font-size: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; text-align: left; font-size: 16px; }
.price-card li { display: flex; gap: 12px; align-items: flex-start; }
.price-card li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--accent); }
.trial { text-align: center; margin-top: 28px; color: var(--muted); }
.trial strong { color: var(--accent); font-weight: 600; }

/* Final call to action */
.final { background: radial-gradient(800px 360px at 80% 0%, rgba(242, 106, 11, .18), transparent 60%), linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; text-align: center; padding: 120px 0; }
.final .h2 { color: #fff; }
.final .sub { color: rgba(255,255,255,.8); }

.footer { background: var(--primary-deep); color: rgba(255, 255, 255, .7); font-size: 13px; padding: 28px 0 36px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent-light); text-decoration: underline; }

/* Reveal on scroll (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .live i { animation: none; }
}

/* Smaller screens */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .logbook-sec { grid-template-columns: 1fr; gap: 40px; }
  .logbook-sec .h2, .logbook-sec .sub { text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .card { height: 580px; padding: 36px 28px 0; }
  .caps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .stage .phone.side { display: none; }
}
@media (max-width: 520px) {
  .hero { padding-top: 56px; }
  .caps { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 48px 1fr; }
  .log-row .tag { grid-column: 2; justify-self: start; }
  .price-card { padding: 36px 24px; }
  .nav-actions .btn { padding: 0 14px; }
  .final { padding: 88px 0; }
}

/* ===== Problem / solution story ===== */
.kicker { font-size: 15px; font-weight: 600; color: var(--primary-ink); margin-bottom: 12px; letter-spacing: .01em; }
.head .kicker { text-align: center; }
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }

.pains { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; }
.pains li { display: flex; gap: 18px; align-items: flex-start; }
.pains svg { width: 30px; height: 30px; flex: none; margin-top: 2px; color: #C2410C; }
.pains h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 4px; color: var(--ink); }
.pains p { color: var(--muted); font-size: 16px; }

/* Storage meter */
.meter { width: 100%; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.meter-top b { color: var(--ink); font-weight: 600; }
.meter-bar { height: 10px; border-radius: 999px; background: #E6ECEA; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: var(--v); border-radius: 999px; background: linear-gradient(90deg, #F59E0B, #DC2626); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
.meter.good .meter-bar i { background: linear-gradient(90deg, #34D3B6, var(--primary)); }
.js .reveal:not(.in) .meter-bar i { width: 0; }
@media (prefers-reduced-motion: reduce) { .meter-bar i { transition: none; } .js .reveal:not(.in) .meter-bar i { width: var(--v); } }

/* "Before" illustration: a generic chat thread (no real app branding) */
.before { position: relative; display: grid; justify-items: center; padding: 8px 0 28px; }
.before .phone { width: min(300px, 78vw); }
.screen { background: #fff; border-radius: 34px; overflow: hidden; aspect-ratio: 1080 / 2424; }
.chat { display: flex; flex-direction: column; background: #EDEFEE; }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-bar b { display: block; font-size: 14px; line-height: 1.2; }
.chat-bar small { display: block; font-size: 11px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #CBD5D1; color: #3B4A46; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.chat-body { padding: 14px 12px; display: grid; gap: 10px; align-content: start; }
.bubble { background: #fff; border-radius: 12px 12px 12px 4px; padding: 5px; max-width: 86%; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.out { justify-self: end; background: #D9EFE9; border-radius: 12px 12px 4px 12px; padding: 8px 10px; }
.bubble p { font-size: 12px; padding: 5px 5px 2px; letter-spacing: 0; line-height: 1.35; }
.bubble i { float: right; margin: 4px 0 0 10px; font-size: 10px; font-style: normal; color: var(--muted); }
.bubble img { border-radius: 8px; }
.bubble .one { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.grid2 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.float { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); width: 230px; }
.float small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.float.f1 { right: -10px; bottom: 90px; }
.caption { position: absolute; bottom: 0; font-size: 12px; color: var(--muted); }

/* Solution flow */
.flow { display: grid; grid-template-columns: 250px 1fr 1.7fr; gap: 28px; align-items: center; margin-bottom: 72px; }
.flow figure { margin: 0; }
.flow figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.flow figcaption b { display: block; color: var(--primary); font-size: 17px; font-weight: 600; }
.flow-mid { text-align: center; color: var(--primary); display: grid; justify-items: center; gap: 8px; }
.flow-mid svg { width: 52px; height: 52px; }
.flow-mid span { font-size: 14px; font-weight: 600; }
.flow-mid .meter { max-width: 190px; margin-top: 10px; text-align: left; }
.flow-phone .phone { width: 100%; }

/* Browser frame for web screenshots */
.browser { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #F1F4F3; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D4DBD8; }
.browser img { width: 100%; }

/* Comparison table */
.cmp { max-width: 900px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.5fr; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 16px; align-items: start; }
.cmp-row span:first-child { font-weight: 600; color: var(--ink); }
.cmp-row span:nth-child(2) { color: var(--muted); }
.cmp-row span:nth-child(3) { color: var(--primary-ink); font-weight: 500; }
.cmp-head { border-top: 0; background: var(--bg-alt); font-size: 14px; }
.cmp-head span:nth-child(3) { color: var(--primary-ink); font-weight: 700; }

/* Logbook thumbnails */
.log-row { grid-template-columns: 54px 1fr auto; }
.log-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.log-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); }

/* Wide feature card */
.card.wide { grid-column: 1 / -1; height: auto; padding-bottom: 0; }
.card.wide p { max-width: 560px; }
.card.wide .peek-web { margin: 36px auto 0; width: min(900px, 100%); border-radius: 14px 14px 0 0; border-bottom: 0; max-height: 380px; }

@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; gap: 48px; }
  .before { order: 2; }
  .float.f1 { right: 0; bottom: 70px; width: 200px; }
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow-phone { max-width: 250px; margin-inline: auto; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .cmp-head { display: none; }
  .cmp-row span:nth-child(2)::before { content: 'WhatsApp: '; font-weight: 600; }
  .cmp-row span:nth-child(3)::before { content: 'Digital Security: '; font-weight: 700; }
}
@media (max-width: 520px) {
  .float.f1 { position: static; margin-top: 18px; width: 100%; max-width: 300px; }
  .log-row { grid-template-columns: 44px 1fr; }
}

.hero .display { font-size: clamp(38px, 6.2vw, 74px); }
