/* ===== Sofft — shared styles (App Store Connect inspired) ===== */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --accent: #0071e3;
  --accent-press: #0058b8;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1024px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-hover: 0 10px 34px rgba(0,0,0,.10);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  padding-top: 53px;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; position: relative;
  height: 52px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-burger { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; margin-left: 6px; color: var(--ink); }
.nav-burger svg { width: 22px; height: 22px; display: block; }
.nav-drop { display: none; position: absolute; top: 50px; right: 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 8px; min-width: 184px; z-index: 200; }
.nav-drop.open { display: block; }
.nav-drop a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-drop a:hover { background: var(--bg-2); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 400; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .soon { color: var(--muted); font-size: 11px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 5px 11px; font: inherit; line-height: 1;
}
.lang-toggle button.on { background: var(--ink); color: #fff; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 88px 0; }
.section-2 { background: var(--bg-2); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 96px 0 64px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 auto 20px; max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(18px, 2.4vw, 22px); color: var(--muted);
  max-width: 40ch; margin: 0 auto 34px; font-weight: 400;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: rgba(0,113,227,.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px; transition: background .2s;
}
.btn:hover { background: var(--accent-press); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(0,113,227,.08); }

/* ---- Section heads ---- */
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.sec-head p { font-size: 18px; color: var(--muted); margin: 0; }

/* ---- App grid ---- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.app-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow .25s, transform .25s; box-shadow: var(--shadow);
}
.app-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none; }
.app-icon {
  width: 68px; height: 68px; border-radius: 16px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 26px; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.app-body { flex: 1; min-width: 0; }
.app-body h3 { font-size: 21px; font-weight: 600; margin: 2px 0 6px; color: var(--ink); letter-spacing: -0.01em; }
.app-body h3 a { color: var(--ink); }
.app-body h3 a:hover { color: var(--accent); text-decoration: none; }
.app-body p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.app-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.app-more { font-size: 14px; font-weight: 500; }

/* ---- Store buttons ---- */
.store-row { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: #000; color: #fff; border-radius: 11px; padding: 8px 14px 8px 12px;
  transition: opacity .2s;
}
.store-btn:hover { opacity: .82; text-decoration: none; }
.store-btn svg { width: 21px; height: 21px; flex: 0 0 auto; }
.store-btn .st { display: flex; flex-direction: column; line-height: 1.12; }
.store-btn .st small { font-size: 9.5px; font-weight: 400; opacity: .9; letter-spacing: .02em; }
.store-btn .st span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.store-btn.disabled { background: var(--bg-2); color: var(--muted); pointer-events: none; }
.store-btn.disabled svg { opacity: .5; }

/* ---- Services ---- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: flex-start; box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.svc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none; }
.svc-icon {
  width: 68px; height: 68px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 30px; background: linear-gradient(160deg,#eef1f6,#e3e8f0);
}
.svc-card h3 { font-size: 21px; font-weight: 600; margin: 2px 0 6px; color: var(--ink); }
.svc-card p { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.svc-card .app-more { color: var(--accent); }

/* compact services at top of page */
.services-sec { padding: 44px 0 60px; }
.services-sec .sec-head { margin-bottom: 30px; }
.svc-card.compact { padding: 20px 22px; gap: 16px; }
.svc-card.compact .svc-icon { width: 52px; height: 52px; font-size: 24px; border-radius: 13px; }
.svc-card.compact h3 { font-size: 18px; margin: 1px 0 4px; }
.svc-card.compact p { font-size: 14px; margin: 0 0 8px; line-height: 1.45; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .01em;
}
.badge-live { background: rgba(52,199,89,.12); color: #248a3d; }
.badge-soon { background: rgba(255,159,10,.14); color: #b25e00; }
.badge-dev  { background: var(--bg-2); color: var(--muted); }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Upcoming pills ---- */
.upcoming { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.up-item {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.up-item h4 { margin: 0 0 5px; font-size: 16px; font-weight: 600; color: var(--ink); }
.up-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- Value row ---- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { text-align: center; }
.value .vi { font-size: 30px; margin-bottom: 12px; }
.value h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.value p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- Footer ---- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 44px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .fbrand { font-weight: 600; font-size: 15px; color: var(--ink); }
.footer .fnote { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 38ch; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--ink-2); font-size: 13px; }
.footer .copy { width: 100%; color: var(--muted); font-size: 12px; margin-top: 26px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.footer .copy a { color: var(--muted); }
.footer .socials { display: inline-flex; gap: 12px; margin-left: 12px; vertical-align: middle; }
.footer .socials a { color: var(--muted); display: inline-flex; }
.footer .socials a:hover { color: var(--ink); }
.footer .socials svg { width: 18px; height: 18px; }

/* ---- App detail page ---- */
.subnav { display:flex; align-items:center; gap:8px; }
.app-hero { text-align:center; padding-top:64px; padding-bottom:36px; }
.app-hero .app-icon-lg { width:110px; height:110px; border-radius:25px; margin:0 auto 20px; box-shadow: var(--shadow); }
.app-hero h1 { font-size: clamp(32px,5vw,46px); font-weight:700; margin:0 0 10px; letter-spacing:-0.02em; }
.app-hero .tagline { font-size: clamp(16px,2.2vw,20px); color:var(--muted); max-width:36ch; margin:0 auto 18px; }
.app-hero .badge { margin-bottom: 20px; }
.app-hero .store-row { justify-content:center; }
.shots-wrap { background: var(--bg-2); padding: 40px 0 44px; }
.shots { display:flex; gap:18px; overflow-x:auto; padding: 4px 22px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shots img { width: 232px; flex:0 0 auto; border-radius: 20px; scroll-snap-align:center; }
.features { max-width: 720px; margin:0 auto; display:grid; gap: 12px; }
.feature { display:flex; gap:16px; align-items:flex-start; background:var(--card); border:1px solid var(--line-soft); border-radius:16px; padding:18px 20px; }
.feature .fi { font-size:24px; flex:0 0 auto; line-height:1.2; }
.feature h4 { margin:0 0 3px; font-size:16px; font-weight:600; }
.feature p { margin:0; font-size:14.5px; color:var(--muted); }
.legal-strip { border-top:1px solid var(--line-soft); padding: 28px 0; text-align:center; }
.legal-links { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.legal-links a { font-size:14px; color:var(--ink-2); }

/* ---- Legal / document pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 22px 80px; }
.doc h1 { font-size: 32px; font-weight:700; letter-spacing:-0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.doc h2 { font-size: 20px; font-weight:700; margin: 30px 0 10px; }
.doc h3 { font-size: 16px; font-weight:600; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.doc a { color: var(--accent); }
.doc table { border-collapse: collapse; width:100%; margin:12px 0; font-size:14px; }
.doc th, .doc td { border:1px solid var(--line-soft); padding:8px 10px; text-align:left; vertical-align:top; }
.doc th { background: var(--bg-2); font-weight:600; }

/* ---- About page ---- */
.about-hero { text-align:center; padding-top:64px; padding-bottom:8px; }
.about-hero h1 { font-size: clamp(38px,6vw,58px); font-weight:700; letter-spacing:-0.03em; margin:14px 0 8px; }
.about-hero .role { font-size: clamp(16px,2.2vw,20px); color:var(--muted); margin:0 auto 22px; }
.about-hero .about-lead { max-width:34ch; margin:0 auto; font-size: clamp(18px,2.4vw,23px); line-height:1.4; color:var(--ink); font-weight:500; letter-spacing:-0.01em; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:900px; margin:0 auto; }
.stat { text-align:center; background:var(--card); border:1px solid var(--line-soft); border-radius:18px; padding:26px 16px; box-shadow:var(--shadow); }
.stat .num { font-size:clamp(24px,3.4vw,34px); font-weight:700; letter-spacing:-0.02em; color:var(--ink); }
.stat .lbl { font-size:12.5px; color:var(--muted); margin-top:8px; line-height:1.35; }
.prose { max-width:680px; margin:0 auto; }
.prose p { font-size:16.5px; color:var(--ink-2); line-height:1.78; margin:0 0 18px; }
.timeline { max-width:680px; margin:0 auto; }
.tl-item { display:grid; grid-template-columns:110px 1fr; gap:22px; padding:22px 0; border-top:1px solid var(--line-soft); }
.tl-item .when { font-size:13px; color:var(--muted); font-weight:600; padding-top:2px; }
.tl-item h4 { margin:0 0 2px; font-size:16px; font-weight:600; color:var(--ink); }
.tl-item .org { font-size:13.5px; color:var(--accent); margin:0 0 7px; font-weight:500; }
.tl-item p { margin:0; font-size:14px; color:var(--ink-2); line-height:1.6; }
.about-cta { text-align:center; }
.about-cta .btn { margin:4px 6px; }
.about-links { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-top:22px; }
.about-links a { font-size:14px; color:var(--ink-2); }
.writing-note { text-align:center; color:var(--muted); font-size:14px; margin-top:30px; }

/* ---- Blog ---- */
.blog-hero { text-align:center; padding-top:64px; padding-bottom:8px; }
.blog-hero h1 { font-size:clamp(34px,5vw,50px); font-weight:700; letter-spacing:-0.02em; margin:14px 0 10px; }
.blog-hero p { font-size:clamp(17px,2.2vw,20px); color:var(--muted); max-width:40ch; margin:0 auto; }
.blog-list { max-width:720px; margin:0 auto; }
.blog-item { display:block; padding:26px 0; border-top:1px solid var(--line-soft); }
.blog-item:hover { text-decoration:none; }
.blog-item .bdate { font-size:13px; color:var(--muted); }
.blog-item h3 { font-size:22px; font-weight:600; margin:7px 0 7px; color:var(--ink); letter-spacing:-0.01em; }
.blog-item:hover h3 { color:var(--accent); }
.blog-item p { font-size:15px; color:var(--muted); margin:0; line-height:1.6; }
.post { max-width:680px; margin:0 auto; padding:44px 22px 80px; }
.post .backlink { display:inline-block; margin-bottom:22px; font-size:14px; color:var(--ink-2); }
.post .pmeta { color:var(--muted); font-size:14px; margin-bottom:10px; }
.post h1 { font-size:clamp(30px,5vw,42px); font-weight:700; letter-spacing:-0.02em; line-height:1.14; margin:0 0 22px; }
.post .content p { font-size:17px; line-height:1.8; color:var(--ink-2); margin:0 0 18px; }
.post .content h2 { font-size:24px; font-weight:700; letter-spacing:-0.01em; margin:38px 0 12px; }
.post .content h3 { font-size:19px; font-weight:600; margin:26px 0 10px; }
.post .content ul, .post .content ol { padding-left:22px; margin:0 0 18px; }
.post .content li { font-size:17px; line-height:1.7; color:var(--ink-2); margin:7px 0; }
.post .content a { color:var(--accent); }
.post .content blockquote { border-left:3px solid var(--line); margin:18px 0; padding:2px 0 2px 18px; color:var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 68px 0 44px; }
  .apps, .upcoming, .values, .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .tl-item .when { padding-top: 0; }
  .nav-links { gap: 14px; }
  .nav-links > a { display: none; }   /* hide inline section links on mobile; use hamburger */
  .nav-burger { display: inline-flex; }
  .nav-inner { height: 50px; }
  .nav-drop { top: 48px; }
  body { padding-top: 51px; }
  .app-card { padding: 22px; gap: 16px; }
  .app-icon { width: 58px; height: 58px; font-size: 22px; }
}
