/* landing.css — public marketing page for silverandtech.com.
   Self-hosted Atkinson Hyperlegible (no Google Fonts) so it's offline-safe and
   clean under the site's strict CSP. Palette matches the app + design handoff. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/apps/silver-and-tech/fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/apps/silver-and-tech/fonts/atkinson-700.woff2") format("woff2");
}

:root {
  --bg:#FBF7F0; --surface:#FFFFFF; --ink:#1A2B33; --muted:#3a4a52;
  --primary:#1C6E5A; --primary-press:#134E40; --amber:#E8A33D; --tint:#F1F6F3;
  --line:rgba(26,43,51,0.12); --font:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); overflow-x:hidden; }
a { text-decoration:none; color:inherit; }
:focus-visible { outline:4px solid var(--amber); outline-offset:2px; }
.wrap { max-width:1120px; margin:0 auto; padding:0 24px; }

/* nav */
.nav { position:sticky; top:0; z-index:40; background:rgba(251,247,240,0.92); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-bottom:1px solid rgba(26,43,51,0.10); }
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 24px; max-width:1120px; margin:0 auto; }
.brand { display:flex; align-items:center; gap:11px; font-size:21px; font-weight:700; letter-spacing:-0.3px; }
.brand-mark { display:block; flex:none; }
.nav-links { display:flex; align-items:center; gap:14px; }
.langbar { display:flex; gap:3px; background:#F2EEE5; border:1px solid var(--line); border-radius:999px; padding:3px; }
.langseg { border:none; background:transparent; color:var(--ink); font-family:inherit; font-size:14px; font-weight:700; min-width:40px; min-height:38px; padding:0 12px; border-radius:999px; cursor:pointer; }
.langseg[aria-pressed="true"] { background:var(--primary); color:#fff; }
.nav-signin { font-size:16px; font-weight:700; padding:8px 4px; }
.btn-cta { display:inline-flex; align-items:center; justify-content:center; background:var(--primary); color:#fff; font-weight:700; border:none; border-radius:13px; cursor:pointer; box-shadow:0 3px 0 var(--primary-press); font-family:inherit; }
.btn-cta:hover { background:#155b4b; }
.btn-cta:active { transform:translateY(2px); box-shadow:0 1px 0 var(--primary-press); }
.nav .btn-cta { font-size:16px; padding:12px 20px; }

/* returning-customer banner */
.welcome-back { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px; padding:14px 24px; background:var(--tint); border-bottom:1px solid rgba(28,110,90,0.2); font-size:18px; font-weight:700; color:var(--primary-press); text-align:center; }
.welcome-back .btn-cta { font-size:16px; padding:11px 20px; }

/* hero */
.hero { display:flex; flex-wrap:wrap; align-items:center; gap:48px; padding:56px 24px 24px; max-width:1120px; margin:0 auto; }
.hero-copy { flex:1 1 420px; min-width:300px; }
.pill { display:inline-flex; align-items:center; gap:8px; background:var(--tint); border:1.5px solid rgba(28,110,90,0.3); color:var(--primary); font-size:15px; font-weight:700; padding:7px 14px; border-radius:999px; margin-bottom:22px; }
.pill .dot { width:9px; height:9px; border-radius:50%; background:var(--primary); }
.hero h1 { font-size:54px; line-height:1.05; font-weight:700; letter-spacing:-1px; margin:0 0 20px; text-wrap:balance; }
.hero p { font-size:21px; line-height:1.5; margin:0 0 30px; max-width:520px; color:var(--muted); text-wrap:pretty; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; }
.btn-lg { font-size:19px; padding:17px 30px; border-radius:15px; }
.btn-primary { background:var(--primary); color:#fff; font-weight:700; border:none; box-shadow:0 4px 0 var(--primary-press),0 6px 16px rgba(0,0,0,0.12); cursor:pointer; font-family:inherit; display:inline-flex; align-items:center; justify-content:center; }
.btn-primary:hover { background:#155b4b; }
.btn-primary:active { transform:translateY(3px); box-shadow:0 1px 0 var(--primary-press); }
.btn-ghost { background:var(--surface); color:var(--primary); font-weight:700; border:2.5px solid var(--primary); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-family:inherit; }
.btn-ghost:hover { background:var(--tint); }

/* phone mockup */
.hero-art { flex:0 1 340px; min-width:280px; display:flex; justify-content:center; }
.phone { position:relative; padding:12px; background:var(--ink); border-radius:44px; box-shadow:0 30px 70px rgba(26,43,51,0.28); }
.phone-screen { width:296px; height:604px; border-radius:33px; overflow:hidden; background:var(--bg); padding:22px 18px; }
.mini-title { font-size:21px; font-weight:700; margin:8px 0 18px; }
.mini-card { display:flex; align-items:center; gap:14px; background:var(--surface); border:2px solid var(--line); border-radius:18px; padding:16px; margin-bottom:13px; box-shadow:0 3px 0 rgba(26,43,51,0.06); }
.mini-card.lead { background:var(--tint); border:3px solid var(--primary); }
.mini-ic { flex:none; width:38px; height:38px; color:var(--primary); }
.mini-label { font-size:16px; font-weight:700; line-height:1.2; }

/* trust strip */
.trust { display:flex; flex-wrap:wrap; gap:12px; border-top:1px solid rgba(26,43,51,0.1); border-bottom:1px solid rgba(26,43,51,0.1); padding:20px 0; margin-top:8px; }
.trust div { flex:1 1 220px; display:flex; align-items:center; gap:10px; font-size:16px; font-weight:700; color:var(--muted); }
.trust .dot { width:8px; height:8px; border-radius:50%; background:var(--amber); }

/* features */
.section { padding:72px 24px 24px; max-width:1120px; margin:0 auto; }
.section h2 { font-size:38px; font-weight:700; letter-spacing:-0.5px; margin:0 0 12px; text-wrap:balance; }
.section .lede { font-size:19px; line-height:1.5; margin:0 0 40px; max-width:620px; color:var(--muted); }
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.feature { background:var(--surface); border:2px solid var(--line); border-radius:20px; padding:26px; }
.feature.lead { background:var(--tint); border:2.5px solid var(--primary); position:relative; overflow:hidden; }
.feature.lead::before { content:""; position:absolute; left:0; top:0; bottom:0; width:7px; background:var(--amber); }
.feature.dark { background:var(--ink); color:var(--bg); display:flex; flex-direction:column; justify-content:center; }
.feature-ic { display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:14px; background:var(--tint); color:var(--primary); margin-bottom:16px; }
.feature.lead .feature-ic { background:var(--surface); }
.feature h3 { font-size:22px; font-weight:700; margin:0 0 8px; }
.feature p { font-size:17px; line-height:1.45; margin:0; color:var(--muted); }
.feature.dark h3 { color:#fff; }
.feature.dark p { color:rgba(251,247,240,0.82); }

/* founder */
.founder { background:#F4EFE6; margin-top:64px; border-top:1px solid rgba(26,43,51,0.08); border-bottom:1px solid rgba(26,43,51,0.08); }
.founder-inner { display:flex; flex-wrap:wrap; align-items:center; gap:52px; padding:72px 24px; max-width:1120px; margin:0 auto; }
.founder-photo { flex:0 1 320px; min-width:260px; }
.founder-photo .frame { width:100%; max-width:340px; aspect-ratio:4/5; border-radius:24px; background:repeating-linear-gradient(45deg,#E6DECF,#E6DECF 14px,#EFE8DA 14px,#EFE8DA 28px); border:2px dashed rgba(26,43,51,0.2); display:flex; align-items:flex-end; justify-content:center; padding:18px; }
.founder-photo .frame span { font-family:ui-monospace,Menlo,monospace; font-size:14px; color:rgba(26,43,51,0.55); background:rgba(251,247,240,0.8); padding:6px 10px; border-radius:8px; }
.founder-img { display:block; width:100%; max-width:340px; aspect-ratio:4/5; object-fit:cover; object-position:top center; border-radius:24px; box-shadow:0 16px 40px rgba(26,43,51,0.18); }
.founder-copy { flex:1 1 420px; min-width:300px; }
.eyebrow { font-size:15px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--primary); margin:0 0 14px; }
.founder-copy h2 { font-size:38px; font-weight:700; letter-spacing:-0.5px; margin:0 0 20px; text-wrap:balance; }
.founder-copy p { font-size:19px; line-height:1.55; margin:0 0 18px; color:var(--muted); text-wrap:pretty; }
.quote { border-left:5px solid var(--amber); padding:6px 0 6px 20px; margin-top:24px; }
.quote p { font-size:23px; line-height:1.4; font-weight:700; margin:0 0 8px; color:var(--ink); }
.quote cite { font-size:16px; font-weight:700; color:var(--primary); font-style:normal; }

/* checkout */
.checkout { display:flex; flex-wrap:wrap; gap:48px; align-items:flex-start; padding:76px 24px 40px; max-width:1120px; margin:0 auto; }
.checkout-copy { flex:1 1 380px; min-width:300px; }
.checkout-copy h2 { font-size:40px; font-weight:700; letter-spacing:-0.6px; margin:0 0 14px; text-wrap:balance; }
.checkout-copy .lede { font-size:20px; line-height:1.5; margin:0 0 28px; max-width:480px; color:var(--muted); text-wrap:pretty; }
.checklist { display:flex; flex-direction:column; gap:16px; max-width:440px; }
.checklist .item { display:flex; align-items:flex-start; gap:13px; font-size:18px; line-height:1.4; font-weight:700; }
.checklist .tick { flex:none; display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--primary); }
.checkout-card-wrap { flex:0 1 440px; min-width:300px; width:100%; }
.checkout-card { background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:0 16px 44px rgba(26,43,51,0.12); padding:26px; }
.summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:18px; border-bottom:1px solid rgba(26,43,51,0.1); margin-bottom:18px; }
.summary .name { font-size:18px; font-weight:700; }
.summary .sub { font-size:14px; color:#6b7780; }
.summary .price { font-size:26px; font-weight:700; white-space:nowrap; }
.field-label { font-size:14px; font-weight:700; color:#6b7780; margin-bottom:7px; }
.currency { display:flex; background:#F2EEE5; border:1px solid var(--line); border-radius:11px; padding:4px; gap:4px; margin-bottom:20px; }
.currency button { flex:1; border:none; border-radius:8px; padding:13px; font-size:15px; font-weight:700; cursor:pointer; background:transparent; color:var(--ink); font-family:inherit; }
.currency button[aria-pressed="true"] { background:var(--primary); color:#fff; }
.pay-btn { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; background:var(--primary); color:#fff; border:none; border-radius:13px; font-size:19px; font-weight:700; padding:16px; min-height:58px; cursor:pointer; font-family:inherit; box-shadow:0 4px 0 var(--primary-press),0 6px 16px rgba(0,0,0,0.12); }
.pay-btn:active { transform:translateY(3px); background:var(--primary-press); box-shadow:0 1px 0 var(--primary-press); }
.pay-btn[disabled] { opacity:.55; cursor:default; }
.secure-row { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:16px; font-size:13px; font-weight:700; color:#6b7780; }
.secure-row span { display:flex; align-items:center; gap:6px; }
.pay-msg { margin:16px 0 0; padding:13px 15px; border-radius:12px; font-size:15px; font-weight:700; line-height:1.35; }
.pay-msg.error { background:#FBEDEB; color:#B23A2E; border:2px solid rgba(178,58,46,0.4); }
.pay-msg.info { background:var(--tint); color:var(--primary-press); border:1px solid rgba(28,110,90,0.25); }
.pay-note { text-align:center; font-size:13px; color:#9aa3a9; margin:12px 0 0; }

/* footer */
.foot { background:var(--ink); color:var(--bg); margin-top:40px; }
.foot-inner { display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between; padding:40px 24px; max-width:1120px; margin:0 auto; }
.foot-brand { display:flex; align-items:center; gap:11px; }
.foot-brand .name { font-size:18px; font-weight:700; }
.foot-brand .url { font-size:14px; color:rgba(251,247,240,0.6); }
.foot-links { display:flex; flex-wrap:wrap; gap:22px; font-size:15px; font-weight:700; }
.foot-links a { color:rgba(251,247,240,0.85); }
.foot-legal { border-top:1px solid rgba(251,247,240,0.12); }
.foot-legal div { padding:18px 24px; font-size:13px; color:rgba(251,247,240,0.55); max-width:1120px; margin:0 auto; }

@media (max-width:560px) {
  .hero h1 { font-size:40px; }
  .section h2, .founder-copy h2 { font-size:30px; }
  .checkout-copy h2 { font-size:30px; }
}

/* --- Responsive nav for phones (prevent the nav row overflowing) --------- */
@media (max-width: 560px) {
  .nav-inner { gap: 12px; padding: 12px 18px; }
  .nav-links { gap: 10px; }
  .brand { font-size: 19px; }
  .nav .btn-cta { font-size: 15px; padding: 10px 16px; }
}
@media (max-width: 360px) {
  .nav-inner { padding: 12px 14px; }
  .brand { font-size: 18px; }
  .nav-signin { display: none; }   /* keep the row lean; returning users get the welcome-back sign-in */
}

/* --- Narrow phones: raise the sign-in hide breakpoint + stop fixed
       min-widths (hero/founder/checkout columns) from overflowing --------- */
@media (max-width: 480px) { .nav-signin { display: none; } }
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 16px 20px; gap: 30px; }
  .hero-copy, .founder-copy, .checkout-copy, .checkout-card-wrap,
  .hero-art, .founder-photo { min-width: 0; }
  .hero h1 { font-size: 34px; }
}

/* --- Smallest phones (~320px): tighten the nav so it never overflows ----- */
@media (max-width: 360px) {
  .nav-inner { padding: 12px 12px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .langseg { min-width: 34px; padding: 0 8px; font-size: 13px; }
  .nav .btn-cta { font-size: 14px; padding: 9px 13px; }
}
