/* =========================================================
   Folium — marketing site. Clean, focused, dark launcher theme.
   Single accent. Hairline borders. White-overlay hovers.
   No build step, no dependencies.
   ========================================================= */

:root{
  --bg:#141414;
  --surface:#161616;
  --surface-2:#1E1E1E;
  --border:#404040;
  --border-soft:#333333;
  --accent:#1b7ecf;
  --accent-hi:#3a9ae0;
  --text:#FFFFFF;
  --text-2:#CCCCCC;
  --muted:#888888;
  --white-06:rgba(255,255,255,0.06);
  --white-10:rgba(255,255,255,0.10);
  --white-15:rgba(255,255,255,0.15);
  --radius:10px;
  --radius-lg:14px;
  --radius-sm:6px;
  --maxw:1180px;
  --t:140ms cubic-bezier(.2,.6,.2,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  display:flex;flex-direction:column;min-height:100vh;
}
a{color:inherit;text-decoration:none}

h1,h2,h3,h4{margin:0;letter-spacing:-0.02em;line-height:1.1}
h1,.hero-title{font-weight:900;font-size:clamp(2.2rem,5vw,3.6rem)}
p{margin:0}

::selection{background:rgba(27,126,207,.35);color:#fff}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:8px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#383838}

.lede{color:var(--text-2);font-size:clamp(1rem,1.6vw,1.18rem);max-width:58ch}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-weight:700;font-size:.96rem;
  padding:.78rem 1.25rem;border-radius:var(--radius);
  border:1px solid transparent;cursor:pointer;
  transition:background var(--t),border-color var(--t),transform var(--t);
  user-select:none;
}
.btn svg{flex:none}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-hi);border-color:var(--accent-hi)}
.btn-lg{padding:.95rem 1.7rem;font-size:1.04rem}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar{
  position:sticky;top:0;z-index:60;
  background:rgba(38,38,38,.9);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
  transition:border-color var(--t),background var(--t);
}
.topbar.scrolled{border-bottom-color:var(--border);background:rgba(34,34,34,.96)}
.topbar-inner{
  position:relative;
  max-width:var(--maxw);margin:0 auto;
  height:62px;padding:0 22px;
  display:flex;align-items:center;gap:1.5rem;
}
.brand{display:flex;align-items:center;gap:.6rem;flex:none}
.brand-mark{width:30px;height:30px;border-radius:7px;display:block;object-fit:contain}
.brand-name{font-weight:800;font-size:1.15rem;letter-spacing:-0.02em}

/* Center the tabs in the topbar regardless of brand width */
.nav{display:flex;align-items:center;gap:.25rem;position:absolute;left:50%;transform:translateX(-50%);margin:0}
.nav-link{
  position:relative;padding:.5rem .85rem;border-radius:var(--radius-sm);
  font-weight:600;font-size:.93rem;color:var(--text-2);
  transition:background var(--t),color var(--t);
}
.nav-link:hover{background:var(--white-06);color:var(--text)}
.nav-link.active{color:var(--text)}
.nav-link.active::after{
  content:"";position:absolute;left:.85rem;right:.85rem;bottom:-1px;height:2px;
  background:var(--accent);border-radius:2px;
}

.nav-toggle{
  display:none;margin-left:auto;width:40px;height:40px;
  background:transparent;border:1px solid var(--border-soft);border-radius:var(--radius-sm);
  cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:4px;
}
.nav-toggle span{width:18px;height:2px;background:var(--text);border-radius:2px;transition:var(--t)}

/* =========================================================
   VIEWS / LAYOUT
   ========================================================= */
#app{flex:1 0 auto}
.view{max-width:var(--maxw);margin:0 auto;padding:0 22px;animation:fade .26s cubic-bezier(.2,.6,.2,1)}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.page{padding:72px 0 56px}
.page-head{max-width:780px;margin-bottom:44px}
.page-head h1{margin-bottom:1rem}
.page-head.center{max-width:none;text-align:center;margin-left:auto;margin-right:auto}

/* =========================================================
   HERO — logo + one tagline + one CTA
   ========================================================= */
.hero{
  min-height:calc(70vh - 62px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:90px 0 60px;gap:0;
}
.hero-brand{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}
.hero-mark{width:92px;height:92px;object-fit:contain;display:block}
.hero-brand-name{font-weight:900;font-size:clamp(2.4rem,5vw,3.4rem);letter-spacing:-0.02em}
.hero-title{margin-bottom:2rem}

/* ---------- ad-free / donations ---------- */
.adfree{
  text-align:center;max-width:660px;margin:0 auto;
  padding:48px 0 110px;
  display:flex;flex-direction:column;align-items:center;gap:1rem;
}
.adfree-title{font-size:clamp(1.6rem,3vw,2.3rem);font-weight:800}
.adfree-text{color:var(--text-2);font-size:1.06rem;line-height:1.7;max-width:56ch}
.adfree-btn{margin-top:1rem}

/* ---------- features (text left, image right) ---------- */
.feature-rows{display:flex;flex-direction:column;gap:64px;padding:24px 0 100px}
.feature-row{display:flex;align-items:center;gap:48px}
.feature-text{flex:1}
.feature-text h3{font-size:clamp(1.4rem,2.6vw,2rem);font-weight:800;margin-bottom:1rem}
.feature-text p{color:var(--text-2);font-size:1.05rem;line-height:1.7;max-width:46ch}
.feature-img{
  width:46%;max-width:520px;display:block;
  border-radius:var(--radius-lg);border:1px solid var(--border);
}
/* The image side of a feature row: the main screenshot (1/2/3, bordered, its
   original size) with the extra "miphy" image next to it, no outline. */
.feature-imgs{display:flex;align-items:center;gap:16px;width:52%;max-width:620px}
.feature-imgs .feature-img{
  width:auto;flex:0 1 auto;max-width:64%;
  border-radius:var(--radius-lg);border:1px solid var(--border);
}
.feature-imgs .feature-extra{
  display:block;flex:0 1 auto;max-width:36%;
  border-radius:var(--radius-lg);border:none;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */
.dl-grid{
  display:flex;justify-content:center;flex-wrap:wrap;gap:36px;
}
.dl-tile{position:relative;width:420px;max-width:100%}
.dl-img{
  width:100%;display:block;border-radius:var(--radius-lg);
  border:1px solid var(--border);
}
.dl-btn{
  position:absolute;left:50%;bottom:24px;transform:translateX(-50%);
  min-width:170px;justify-content:center;box-shadow:0 10px 28px -10px rgba(0,0,0,.6);
}

/* macOS — coming soon: only the button is grayed/disabled, image stays normal */
.dl-tile-soon .dl-btn-soon{
  background:#333;border-color:#333;color:#888;
  cursor:default;pointer-events:none;
}
.dl-tile-soon .dl-btn-soon:hover{background:#333;border-color:#333}

/* =========================================================
   STORE
   ========================================================= */
.store-soon{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:1rem;padding:40px 0 90px;
}
.store-mark{width:84px;height:84px;object-fit:contain;display:block;opacity:.95}
.store-soon-title{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:800}
.store-soon-text{color:var(--text-2);font-size:1.05rem;line-height:1.7;max-width:50ch}

/* =========================================================
   TERMS OF SERVICE
   ========================================================= */
.page-terms{max-width:820px}
.tos section{margin-bottom:30px}
.tos h2{font-size:1.2rem;margin-bottom:.55rem;letter-spacing:-0.01em}
.tos p{color:var(--text-2);font-size:.97rem;line-height:1.7}
.tos strong{color:#fff}
.tos a{color:var(--accent-hi);font-weight:600}
.tos a:hover{text-decoration:underline}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{flex:none;border-top:1px solid var(--border-soft);background:var(--surface)}
.footer-inner{
  max-width:var(--maxw);margin:0 auto;padding:16px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.footer-inner.center{flex-direction:column;justify-content:center;gap:10px}
.footer-copyright{color:var(--muted);font-size:.85rem}
.footer-legal{display:flex;align-items:center;gap:1.25rem;font-size:.85rem}
.footer-legal a{color:var(--muted);text-decoration:none;transition:color var(--t)}
.footer-legal a:hover{color:var(--text)}
.footer-sep{color:var(--muted);opacity:.6}
.footer-links{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.footer-links a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:var(--radius-sm);
  transition:background var(--t),transform var(--t);
}
.footer-links a:hover{background:var(--white-06);transform:translateY(-1px)}
.footer-icon{width:22px;height:22px;object-fit:contain;display:block;opacity:.85;transition:opacity var(--t)}
.footer-links a:hover .footer-icon{opacity:1}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:640px){
  .nav{
    position:fixed;inset:62px 0 auto 0;flex-direction:column;align-items:stretch;
    gap:.2rem;margin:0;padding:14px 18px 20px;
    background:var(--bg);border-bottom:1px solid var(--border-soft);
    transform:translateY(-130%);transition:transform .2s ease;
  }
  .nav.open{transform:none}
  .nav-link{padding:.8rem .9rem;font-size:1rem}
  .nav-link.active::after{display:none}
  .nav-link.active{background:var(--white-06)}
  .nav-toggle{display:flex}
  .nav-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .nav-toggle.open span:nth-child(2){opacity:0}
  .nav-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .feature-row{flex-direction:column;gap:20px;text-align:center}
  .feature-row .feature-text p{max-width:none}
  .feature-img{width:100%;max-width:none}
  .feature-imgs{width:100%;max-width:none}
  .feature-imgs .feature-img{max-width:60%}
  .feature-imgs .feature-extra{max-width:40%}
}
@media (max-width:430px){
  .hero{min-height:auto;padding:60px 0 40px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
