/* Stash — landing page styles. Bright frosted glass + Reddit-orange,
   premium macOS feel (Canopy) with warm founder energy (MediaFast). */

:root {
  --accent: #FF4500;
  --accent-2: #FF6A3D;
  --accent-deep: #E83C00;
  --ink: #1b1611;
  --ink-2: #6c6258;
  --ink-3: #9a9087;
  --cream: #FBF7F2;
  --cream-2: #F4ECE2;
  --line: rgba(40, 24, 10, 0.10);
  --card: rgba(255, 255, 255, 0.86);
  --shadow-sm: 0 2px 8px rgba(40, 24, 10, 0.06);
  --shadow-md: 0 18px 44px -18px rgba(40, 24, 10, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(40, 24, 10, 0.40);
  --radius: 22px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 69, 0, 0.09); border: 1px solid rgba(255, 69, 0, 0.18);
}
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 16px; font-weight: 650; cursor: pointer;
  padding: 14px 24px; border-radius: 14px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 69, 0, 0.55), inset 0 1px 1px rgba(255,255,255,0.4);
}
.btn-primary:hover { box-shadow: 0 16px 34px -8px rgba(255, 69, 0, 0.6); transform: translateY(-1px); }
.btn-ghost {
  background: var(--card); color: var(--ink); border-color: var(--line);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; border-radius: 11px; }
.btn .sub { font-size: 12px; font-weight: 500; opacity: 0.8; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 242, 0.72);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 4px 10px -3px rgba(255,69,0,0.5); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 15px; font-weight: 550; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.blob.b1 { width: 540px; height: 540px; background: #FFB48C; top: -180px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #FFCBA8; top: -120px; right: -100px; opacity: 0.55; }
.blob.b3 { width: 380px; height: 380px; background: #E9D8FF; bottom: -160px; left: 30%; opacity: 0.4; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); max-width: 16ch; margin: 22px auto 0; }
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent-2), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 56ch; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* hero visual: faux mac window */
.hero-shot { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 940px; position: relative; z-index: 1; }
.hero-canvas { position: relative; height: clamp(360px, 46vw, 500px); overflow: hidden; }
.cap-popup { width: min(380px, 86%); }
.cap-tile { min-width: 0; }
.cap-tile > div { min-width: 0; }

/* ---------- mac window mock ---------- */
.macwin {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-lg);
}
.macbar {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 15px;
  background: linear-gradient(180deg, #f7f3ee, #efe9e1); border-bottom: 1px solid var(--line);
}
.macbar .dot { width: 12px; height: 12px; border-radius: 50%; }
.macbar .addr { margin: 0 auto; font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* generic frosted glass panel for mockups */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84));
  backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 0.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 24px 60px -18px rgba(40,24,10,0.32), inset 0 1px 1.5px rgba(255,255,255,0.9);
}

/* ---------- logo strip ---------- */
.strip { padding: 30px 0 6px; }
.strip p { text-align: center; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.strip-row { display: flex; gap: clamp(24px, 5vw, 56px); justify-content: center; align-items: center; flex-wrap: wrap; opacity: 0.7; }
.strip-row .sr { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 18px; color: var(--ink-2); letter-spacing: -0.02em; }

/* ---------- section header ---------- */
.shead { text-align: center; max-width: 60ch; margin: 0 auto clamp(40px, 5vw, 64px); }
.shead .lead { margin-top: 16px; }

/* ---------- pain cards ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pain .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(255,69,0,0.10); }
.pain h3 { font-size: 19px; margin-bottom: 8px; }
.pain p { color: var(--ink-2); font-size: 15px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; counter-reset: step; }
.step { position: relative; }
.step .num {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px -4px rgba(255,69,0,0.5); margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .shot { margin-top: 20px; border-radius: 16px; overflow: hidden; }

/* ---------- feature rows ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.feat + .feat { margin-top: clamp(60px, 8vw, 110px); }
.feat > * { min-width: 0; }
.feat.rev .feat-text { order: 2; }
.feat-text .eyebrow { margin-bottom: 18px; }
.feat-text h2 { font-size: clamp(26px, 3.4vw, 38px); }
.feat-text .lead { margin-top: 16px; font-size: 17px; }
.feat-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; list-style: none; font-size: 15.5px; color: var(--ink); }
.feat-list .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,69,0,0.12); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.feat-visual { position: relative; }

/* ---------- privacy band ---------- */
.band {
  background: linear-gradient(135deg, #1c1410, #2a1d14);
  color: #fff; border-radius: 32px; padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden;
}
.band .blob { opacity: 0.35; }
.band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255,255,255,0.72); margin-top: 16px; }
.band-stats { display: flex; flex-direction: column; gap: 16px; }
.bstat { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.bstat .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,69,0,0.18); display: grid; place-items: center; flex: 0 0 auto; }
.bstat b { font-size: 16px; display: block; }
.bstat span { font-size: 13.5px; color: rgba(255,255,255,0.6); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-sm); position: relative; }
.price.feat-card { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.price .tag { position: absolute; top: -13px; left: 34px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px; }
.price h3 { font-size: 20px; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 2px; }
.price .amt small { font-size: 16px; font-weight: 600; color: var(--ink-3); }
.price .desc { color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.price li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.price li .tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,69,0,0.12); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qa summary { cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 16.5px; display: flex; align-items: center; gap: 14px; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { margin-left: auto; transition: transform .25s; color: var(--ink-3); }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa .ans { padding: 0 24px 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final-card {
  background: linear-gradient(160deg, #FFF6F0 0%, #FFEADE 35%, #FFFFFF 80%);
  border: 1px solid rgba(255,69,0,0.18); border-radius: 32px; padding: clamp(48px, 7vw, 84px) 32px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.final-card h2 { font-size: clamp(32px, 5vw, 54px); max-width: 18ch; margin: 0 auto; }
.final-card .lead { max-width: 50ch; margin: 18px auto 30px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { margin-bottom: 12px; }
.foot p { color: var(--ink-3); font-size: 14px; max-width: 34ch; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); margin-bottom: 9px; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mockup demo animations (continuous + frozen-safe; content always visible) ---------- */
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,0,0); } 50% { box-shadow: 0 0 0 5px rgba(255,69,0,0.20); } }
@keyframes floatPop { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 10px 24px -8px rgba(255,69,0,0.55), inset 0 1px 1px rgba(255,255,255,0.4); } 50% { box-shadow: 0 14px 30px -6px rgba(255,69,0,0.85), inset 0 1px 1px rgba(255,255,255,0.4); } }
@keyframes typeDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* the capture popup floats gently; the chosen folder pulses (reads as "pick a folder") */
.mock .cap-popup { animation: floatPop 5.5s ease-in-out infinite; }
.mock .cap-popup .sel-tile { animation: pulseRing 2.6s ease-in-out infinite; border-radius: 14px; }
/* library: the Chat button breathes to draw the eye */
.mock .lib-cta { animation: ctaGlow 2.8s ease-in-out infinite; }
/* chat: typing dots in the assistant avatar loop */
.mock .type-dot { animation: typeDot 1.4s ease-in-out infinite; }
.mock .type-dot:nth-child(2) { animation-delay: .18s; }
.mock .type-dot:nth-child(3) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mock .cap-popup { animation: none !important; }
  .mock .cap-popup .sel-tile, .mock .lib-cta, .mock .type-dot { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .pain-grid, .steps { grid-template-columns: 1fr; }
  .feat, .band-inner { grid-template-columns: 1fr; gap: 32px; }
  .feat.rev .feat-text { order: 0; }
  .feat-visual { order: -1; }
  .price-grid { grid-template-columns: 1fr; }
  .band { border-radius: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero-cta .btn { width: 100%; }
  .nav-cta .btn-ghost { display: none; }
  .foot-cols { gap: 36px; }
  /* hero capture mockup — let it sit in normal flow so the canvas grows to fit it:
     never clipped vertically, never overflowing horizontally */
  .hero-canvas { height: auto; }
  .cap-popup {
    position: relative !important; left: 0 !important; top: 0 !important;
    transform: none !important; animation: none !important;
    width: auto; margin: 18px; z-index: 5; padding: 16px; border-radius: 20px;
  }
  .cap-grid { gap: 8px; }
  .cap-grid > div { padding: 10px 11px !important; }
  /* feature mockups: take them out of flow + scale to fit so their fixed
     internal width never forces page-wide horizontal overflow */
  .feat-visual { position: relative; overflow: hidden; }
  .feat-visual .macwin { position: absolute; top: 0; left: 0; width: 460px; transform-origin: top left; }
}
