/* PhotoKeep 官网样式 —— 与 App Styles.swift 主题一致
   canvas #0B0E10 · panel #181C20 · text #F0F2EB · muted #919E9E · accent #5CD4AB */

:root {
  --canvas: #0b0e10;
  --panel: #181c20;
  --panel-2: #1f2429;
  --text: #f0f2eb;
  --muted: #919e9e;
  --faint: #6b7676;
  --accent: #5cd4ab;
  --accent-soft: rgba(92, 212, 171, 0.14);
  --keep: #4fdb9e;
  --delete: #ff6b6b;
  --line: rgba(240, 242, 235, 0.09);
  --radius: 20px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 1em; }
::selection { background: rgba(92, 212, 171, 0.35); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 19px; max-width: 640px; }
.lead-center { margin: 0 auto 1em; }

/* ---------- 徽标与导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 19px;
  flex-shrink: 0; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-icon { display: block; width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; }
.download-icon, .error-brand-icon { display: block; width: 80px; height: 80px; border-radius: 18px; margin-bottom: 20px; }
.error-brand-icon { margin-inline: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary { color: #08130e; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-cta { margin-left: 4px; }

/* 语言切换器(单按钮下拉) */
.lang-switch { position: relative; display: inline-flex; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); border-color: rgba(92, 212, 171, 0.45); }
.lang-switch summary .chev { transition: transform 0.15s ease; }
.lang-switch[open] summary .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  min-width: 176px; padding: 6px;
  background: #14181c; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  display: grid; gap: 2px;
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 9px;
  color: var(--text); font-size: 14px;
}
.lang-menu a:hover { background: rgba(240, 242, 235, 0.07); text-decoration: none; }
.lang-menu a.on { color: var(--accent); }
.lang-menu a.on::after { content: "✓"; font-weight: 700; }
.footer-lang .lang-menu { top: auto; bottom: calc(100% + 8px); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font-size: 15px; cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #08130e; }
.btn-primary:hover { background: #6fdfba; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(240, 242, 235, 0.04); }
.btn-ghost:hover { background: rgba(240, 242, 235, 0.08); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 徽章 / 小标签 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.tag-free { color: var(--accent); border-color: rgba(92, 212, 171, 0.35); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 85% 10%, rgba(92, 212, 171, 0.13), transparent 65%),
    radial-gradient(520px 380px at 5% 90%, rgba(92, 212, 171, 0.07), transparent 60%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .lead { font-size: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-visual figure { margin: 0; }
.hero-visual img {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-visual .tall img { height: 100%; object-fit: cover; }
.hero-visual figcaption { color: var(--faint); font-size: 13px; margin-top: 8px; text-align: center; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(92, 212, 171, 0.35); transform: translateY(-2px); }
.card .icon { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card h3 a { color: var(--text); }
.more-link { font-size: 15px; font-weight: 600; }

/* ---------- iPhone 17 机型模型 ---------- */
.phone {
  position: relative;
  width: min(334px, 88vw); margin: 0 auto;
  border-radius: 56px;
  padding: 3px; /* 金属中框 */
  background: linear-gradient(155deg, #9aa0a8 0%, #43474e 16%, #14171b 45%, #05070a 62%, #3e434a 86%, #83888f 100%);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 0 3px rgba(255, 255, 255, 0.28);
}
.phone::before, .phone::after { /* 侧边实体按键:音量/动作键(左)、电源键(右) */
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #4a4e55, #1a1d21);
}
.phone::before {
  left: -2.5px; top: 138px; height: 24px;
  box-shadow: 0 40px 0 0 #2a2d32, 0 82px 0 0 #2a2d32;
}
.phone::after {
  right: -2.5px; top: 188px; height: 72px;
  background: linear-gradient(270deg, #4a4e55, #1a1d21);
}
.screen {
  position: relative;
  border-radius: 48px; overflow: hidden; background: var(--canvas);
  border: 8px solid #05070a; /* 黑色 bezel */
  aspect-ratio: 393 / 816; display: flex; flex-direction: column;
}
.screen::before { /* 灵动岛 */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 14px; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 6;
}
.screen::after { /* Home 指示条 */
  content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 4px; border-radius: 999px;
  background: rgba(240, 242, 235, 0.32); z-index: 6;
}
.screen-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 26px 4px; color: var(--text); font-size: 13px; font-weight: 600;
}
.screen-bar .status-icons { display: inline-flex; color: var(--text); }
.screen-title { padding: 6px 22px; font-weight: 700; font-size: 22px; }
.screen-body { flex: 1; padding: 10px 18px; position: relative; overflow: hidden; }
.tab-bar {
  display: flex; justify-content: space-around; padding: 10px 8px 16px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 11.5px;
}
.tab-bar span.on { color: var(--accent); }

/* 顶部进度条 */
.progress { height: 8px; border-radius: 999px; background: rgba(240, 242, 235, 0.08); overflow: hidden; margin: 4px 22px 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--keep)); border-radius: inherit; }

/* 滑动卡片(复刻 SwipeCardStack) */
.card-stack { position: relative; height: 100%; }
.swipe-card {
  position: absolute; inset: 0 0 12px;
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(240, 242, 235, 0.12);
  background: var(--panel);
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none; touch-action: none;
  cursor: grab;
}
.swipe-card.under { transform: scale(0.94) translateY(14px); filter: brightness(0.7); }
.swipe-card .photo { flex: 1; position: relative; }
.swipe-card .photo .gradient { position: absolute; inset: 0; }
.swipe-card .photo .subject {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 76px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
.swipe-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; background: rgba(24, 28, 32, 0.92); font-size: 14px; color: var(--muted);
}
.swipe-card .meta b { color: var(--text); font-weight: 600; }
.stamp {
  position: absolute; top: 18px; padding: 6px 14px; border-radius: 12px;
  font-size: 17px; font-weight: 800; letter-spacing: 0.12em;
  border: 3px solid; opacity: 0; transition: opacity 0.12s ease;
  background: rgba(5, 7, 10, 0.35); backdrop-filter: blur(2px);
}
.stamp-keep { left: 18px; color: var(--keep); border-color: var(--keep); transform: rotate(-14deg); }
.stamp-delete { right: 18px; color: var(--delete); border-color: var(--delete); transform: rotate(14deg); }
.demo-actions { display: flex; justify-content: center; gap: 14px; padding: 10px 0 14px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 20px; cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.round-btn:hover { transform: scale(1.06); }
.round-btn.keep { color: var(--keep); border-color: rgba(79, 219, 158, 0.5); }
.round-btn.del { color: var(--delete); border-color: rgba(255, 107, 107, 0.5); }
.demo-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; padding: 0 6px 17px; }
.demo-stats b { color: var(--accent); }
.demo-hint { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 14px; }

/* 日历复刻 */
.cal-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 2px 4px 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid .dow { color: var(--faint); font-size: 11px; text-align: center; }
.cal-cell {
  aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--muted); background: rgba(240, 242, 235, 0.035); position: relative;
}
.cal-cell.has-photos { background: rgba(92, 212, 171, 0.16); color: var(--text); font-weight: 600; }
.cal-cell.has-photos::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-cell.today { outline: 1.5px solid var(--accent); }

/* 热力图(53 周) */
.heatmap-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.heatmap { display: grid; grid-template-rows: repeat(7, 10px); grid-auto-flow: column; grid-auto-columns: 10px; gap: 3px; overflow-x: auto; padding-bottom: 6px; }
.heatmap i { border-radius: 2.5px; background: rgba(240, 242, 235, 0.055); }
.heatmap .l1 { background: rgba(92, 212, 171, 0.25); }
.heatmap .l2 { background: rgba(92, 212, 171, 0.45); }
.heatmap .l3 { background: rgba(92, 212, 171, 0.68); }
.heatmap .l4 { background: var(--accent); }
.heatmap-legend { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; margin-top: 10px; }
.heatmap-legend i { width: 10px; height: 10px; border-radius: 2.5px; display: inline-block; }

/* 故事卡复刻 */
.story-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.story-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 28px; }
.story-facts .chip { opacity: 0; transform: translateY(6px); transition: all 0.35s ease; }
.story-facts .chip.in { opacity: 1; transform: none; }
.story-text { min-height: 120px; font-size: 15.5px; color: var(--text); }
.story-text .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.story-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; margin-top: 10px; }

/* ---------- 小组件状态切换 ---------- */
.widget-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.widget-stage img {
  width: 100%; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
}
.widget-stage img.fading { opacity: 0; }
.widget-caption { color: var(--muted); font-size: 15px; min-height: 48px; margin-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.seg button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 9px 18px; font-size: 14.5px; cursor: pointer;
}
.seg button.on { color: #08130e; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ---------- 下载 / 二维码 ---------- */
.download-box {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; max-width: 760px; margin: 0 auto;
}
.qr-card {
  background: #fff; padding: 14px; border-radius: 18px; width: 196px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.qr-card img { width: 100%; }
.qr-card figcaption { color: #5b6666; font-size: 12.5px; text-align: center; margin-top: 8px; }
.download-side .lead { font-size: 16.5px; margin-bottom: 18px; }
.appstore-note { color: var(--faint); font-size: 13.5px; margin-top: 12px; }

/* ---------- 步骤 ---------- */
.step-num {
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px;
}

/* ---------- 隐私板块 ---------- */
.privacy-band { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(92, 212, 171, 0.05), transparent 70%); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--muted); }
.check-list li b { color: var(--text); font-weight: 600; }
.check-list .tick { color: var(--keep); font-weight: 700; }

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .amount { font-size: 40px; font-weight: 800; margin: 6px 0 2px; }
.price-card .amount small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-card ul li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.price-card ul .tick { color: var(--keep); }
.price-card ul .dot { color: var(--faint); }
.price-card.featured { border-color: rgba(92, 212, 171, 0.5); background: linear-gradient(180deg, rgba(92, 212, 171, 0.08), var(--panel) 55%); }
.price-flag {
  position: absolute; top: -13px; left: 26px;
  background: var(--accent); color: #08130e; font-size: 12.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.soon { color: var(--faint); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 16px; color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { color: var(--muted); font-size: 15.5px; padding-bottom: 18px; }

/* ---------- 博客 ---------- */
.post-list { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.post-item { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.post-item:hover { text-decoration: none; border-color: rgba(92, 212, 171, 0.35); transform: translateY(-2px); }
.post-item h3 { margin-bottom: 6px; }
.post-item .post-meta { color: var(--faint); font-size: 13.5px; margin-bottom: 10px; }
.post-item p { color: var(--muted); font-size: 15px; margin: 0; }

.article { max-width: 720px; margin: 0 auto; }
.article-meta { color: var(--faint); font-size: 14px; margin-bottom: 30px; }
.article h2 { font-size: 24px; margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: #c8cecb; font-size: 16.5px; }
.article ul, .article ol { padding-left: 24px; }
.article blockquote {
  margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 12px 12px 0; color: var(--muted);
}
.article code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 14px; color: var(--accent); }
.article pre { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; }
.article pre code { background: none; border: none; padding: 0; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.article .callout { background: var(--accent-soft); border: 1px solid rgba(92, 212, 171, 0.3); border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; color: var(--text); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-grid nav a { color: var(--muted); font-size: 14.5px; }
.footer-grid nav a:hover { color: var(--text); }
.footer-note { color: var(--faint); font-size: 13px; margin-top: 26px; }

/* ---------- 面包屑 ---------- */
.crumbs { color: var(--faint); font-size: 13.5px; padding: 22px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
tr:last-child td { border-bottom: none; }
td.yes { color: var(--keep); font-weight: 600; }
td.no { color: var(--faint); }
td .sub { color: var(--faint); font-size: 12.5px; display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .widget-demo { grid-template-columns: 1fr; }
  .try-grid { grid-template-columns: 1fr !important; }
  .try-grid .phone { justify-self: center; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .download-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .download-side .cta-row { justify-content: center; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0b0e10; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-links .lang-switch { margin-top: 10px; align-self: flex-start; }
  .nav-links .lang-menu { right: auto; left: 0; }
  .nav-links .lang-menu a { padding: 8px 12px; border-bottom: none; font-size: 14px; }
}
