/* VaultPix — a hidden, encrypted photo vault.
   From the icon: a red safe. Cool slate "steel-vault" neutrals with the
   safe's red as accent; techy Space Grotesk. Signature: a locked,
   blurred photo grid awaiting Face ID. */

:root {
  --bg:        #F5F7FA;
  --bg-2:      #EAEEF5;
  --card:      #FFFFFF;
  --ink:       #191F2B;
  --text:      #394452;
  --muted:     #7B8798;
  --line:      #E2E7EF;
  --red:       #E23B4E;
  --red-deep:  #B31F35;
  --steel:     #46536A;
  --accent:     var(--red);
  --accent-ink: var(--red-deep);

  --radius:    20px;
  --radius-lg: 28px;
  --shadow:    0 26px 54px -30px rgba(25,31,43,.4);
  --shadow-sm: 0 12px 26px -18px rgba(25,31,43,.45);
  --maxw:      1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif; font-size: 1.14rem; line-height: 1.64; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, .display { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.eyebrow { font-family:'Space Grotesk',sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--ink); color: #C6CEDA; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 14px 0 0; }
.section--dark .section-head h2 { color: #fff; } .section--dark .section-head p { color: #9AA6B6; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(245,247,250,.84); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family:'Space Grotesk',sans-serif; font-weight: 600; font-size: 1.26rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.topnav { display: flex; gap: 24px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.topnav a:hover { color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 15px 28px; border-radius: 999px; font-family:'Space Grotesk',sans-serif; font-weight: 600; font-size: 1.04rem; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--red) 75%, transparent); transition: transform .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn .apple { width: 19px; height: 22px; flex: 0 0 auto; }

/* hero */
.hero { padding: 60px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.8rem); max-width: 13ch; margin: 16px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { max-width: 42ch; margin: 22px 0 0; font-size: 1.2rem; color: var(--text); }
.hero .cta-row { margin-top: 34px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .fine { font-weight: 600; font-size: .92rem; color: var(--muted); }

/* signature: locked, blurred photo grid */
.vault { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; overflow: hidden; }
.vault .grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; filter: blur(7px) saturate(1.1); }
.vault .grid6 .ph { aspect-ratio: 3/4; border-radius: 10px; }
.ph1 { background: linear-gradient(135deg,#8fb3d9,#c9d8e8); } .ph2 { background: linear-gradient(135deg,#9fd0b6,#d4ead9); }
.ph3 { background: linear-gradient(135deg,#e0b48c,#f0dcc4); } .ph4 { background: linear-gradient(135deg,#c9a0d8,#e6d4ee); }
.ph5 { background: linear-gradient(135deg,#e79aa6,#f3d0d6); } .ph6 { background: linear-gradient(135deg,#a6b0c9,#d4d9e6); }
.vault .veil { position: absolute; inset: 22px; border-radius: 14px; background: rgba(25,31,43,.28); backdrop-filter: blur(2px); display: grid; place-items: center; align-content: center; gap: 14px; }
.vault .lockbadge { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.vault .lockbadge svg { width: 30px; height: 30px; stroke: var(--red-deep); fill: none; stroke-width: 2; }
.vault .veil .lbl { font-family:'Space Grotesk',sans-serif; font-weight: 600; color: #fff; letter-spacing: .04em; }
.vault .faceid { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.vault .faceid .d { width: 16px; height: 16px; border: 2px solid var(--steel); border-radius: 4px; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, var(--card)); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 23px; height: 23px; stroke: var(--red-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.28rem; margin-bottom: 8px; }
.feature .tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); background: var(--bg-2); padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.feature .tag--free { color: #18704A; background: #E4F3EB; }
.feature p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.feature .note { color: var(--steel); font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 840px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.plan--pro { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 1.28rem; }
.plan .price { font-family:'Space Grotesk',sans-serif; font-size: 2.3rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin: 14px 0 0; }
.plan .per { display: block; font-family:'Hanken Grotesk',sans-serif; font-size: .95rem; font-weight: 500; color: var(--muted); margin-top: 8px; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; }
.plan li { position: relative; padding-left: 27px; margin: 0 0 11px; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.plan li::before { content: "\2713"; position: absolute; left: 0; top: -1px; color: var(--red); font-weight: 700; }

/* screenshots */
.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 24px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 234px; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* privacy strip (dark, vault-like) */
.privacy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; max-width: 940px; margin: 44px auto 0; }
.promise { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px; }
.promise .ic { width: 34px; height: 34px; margin-bottom: 14px; }
.promise .ic svg { width: 34px; height: 34px; stroke: #F08B96; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promise b { font-family:'Space Grotesk',sans-serif; color: #fff; font-size: 1.14rem; font-weight: 600; }
.promise p { margin: 6px 0 0; color: #9AA6B6; font-size: 1rem; }

/* closer */
.closer { text-align: center; }
.closer h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.closer .cta-row { margin-top: 26px; display: flex; justify-content: center; }

/* footer */
.foot { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-weight: 600; }
.foot nav a:hover { color: var(--accent-ink); }
.foot .copy { width: 100%; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }

/* content pages */
.page-head { text-align: center; padding: 58px 0 64px; position: relative; overflow: hidden; }
.page-head::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 90% at 50% 0%, color-mix(in srgb, var(--red) 12%, transparent), transparent 68%); }
.page-head > * { position: relative; }
.page-head img.logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.page-head h1 { font-size: clamp(2.2rem,5.4vw,3.2rem); }
.back-link { display: inline-block; margin-top: 22px; color: var(--accent-ink); background: color-mix(in srgb, var(--red) 11%, #fff); padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.prose { max-width: 760px; margin: 0 auto; padding: 66px 24px; }
.prose h2 { font-size: 1.85rem; margin: 8px 0 22px; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 38px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.updated { display: inline-block; font-family:'Space Grotesk',sans-serif; font-weight: 600; font-size: .85rem; color: var(--accent-ink); background: color-mix(in srgb, var(--red) 11%, #fff); padding: 8px 14px; border-radius: 10px; margin-bottom: 28px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 22px 26px; font-family:'Space Grotesk',sans-serif; font-weight: 600; font-size: 1.13rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); font-size: 1.04rem; }
.callout { background: color-mix(in srgb, var(--red) 8%, #fff); border-radius: var(--radius); padding: 24px 28px; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lede, .hero .cta-row { animation: rise .6s both cubic-bezier(.2,.7,.2,1); }
.vault { animation: rise .7s .1s both cubic-bezier(.2,.7,.2,1); }

/* a11y */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 38px; } .grid, .privacy-grid { grid-template-columns: 1fr; } .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  body { font-size: 1.08rem; }
  .section { padding: 60px 0; }
  .grid, .plans { grid-template-columns: 1fr; }
  .topnav { gap: 14px; font-size: .95rem; } .topnav a.hide-sm { display: none; }
  .foot .wrap { flex-direction: column; align-items: flex-start; } .foot nav a { margin: 0 22px 0 0; }
}
