/* Keepit — shared stylesheet
   Palette sampled from the app icon: navy #1b2a4a, amber #f5a623, paper #fafaf8 */

:root {
  --paper:   #fafaf8;
  --surface: #ffffff;
  --card:    #f3f3f0;
  --border:  #e4e4df;
  --navy:    #1b2a4a;
  --fg:      #1b2a4a;
  --muted:   #5a667c;
  --amber:   #f5a623;
  --link:    #1f4fa3;
  --ok:      #1f7a4d;
  --radius:  14px;
  --maxw:    720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #12161f;
    --surface: #171c27;
    --card:    #1c2230;
    --border:  #2a3242;
    --navy:    #e8ecf4;
    --fg:      #e8ecf4;
    --muted:   #9aa6bd;
    --amber:   #f5a623;
    --link:    #7fb0ff;
    --ok:      #5fc98d;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- site header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap-wide {
  display: flex; align-items: center; gap: 1rem;
  padding-top: .7rem; padding-bottom: .7rem;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--navy); text-decoration: none;
  font-size: 1.05rem; letter-spacing: -.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.1; letter-spacing: -.025em; margin-bottom: .9rem;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.6rem; }
.hero-shot {
  border-radius: 30px; border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(27,42,74,.16);
  max-width: 300px; margin: 0 auto;
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: var(--paper);
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 1px solid var(--navy); transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .93; }
.btn-ghost {
  background: transparent; color: var(--fg); border-color: var(--border);
}
.price-note { color: var(--muted); font-size: .92rem; }

/* ---------- sections ---------- */
section { padding: 3rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.02em;
  margin-bottom: .5rem; line-height: 1.2;
}
.section-lede { color: var(--muted); margin-bottom: 2rem; max-width: 60ch; }
h3 { font-size: 1.12rem; margin-bottom: .4rem; letter-spacing: -.01em; }

/* ---------- feature grid ---------- */
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.feature .ico {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: .7rem;
  background: var(--amber); display: grid; place-items: center;
  font-size: 1.05rem; line-height: 1;
}
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- screenshot strip ---------- */
.shots {
  display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot figcaption {
  color: var(--muted); font-size: .88rem; margin-top: .6rem; text-align: center;
}
.shot img {
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(27,42,74,.10);
}

/* ---------- privacy callout ---------- */
.callout {
  background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.callout p { color: var(--muted); }
.callout p + p { margin-top: .6rem; }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.tier.featured { border-color: var(--amber); border-width: 2px; }
.tier .amount { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.tier .per { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.tier ul { list-style: none; }
.tier li { padding-left: 1.5rem; position: relative; margin-bottom: .45rem;
           color: var(--muted); font-size: .97rem; }
.tier li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); margin-bottom: .75rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq .body { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq .body p + p { margin-top: .6rem; }

/* ---------- article / prose ---------- */
.prose { padding: 2.5rem 0 3rem; }
.prose h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.15;
  letter-spacing: -.025em; margin-bottom: .6rem;
}
.prose .meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--fg); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem;
  display: block; overflow-x: auto; white-space: nowrap;
}
@media (min-width: 640px) { .prose table { display: table; white-space: normal; } }
.prose th, .prose td {
  text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border);
}
.prose th { font-weight: 600; background: var(--card); }
.prose blockquote {
  border-left: 3px solid var(--amber); padding-left: 1rem;
  color: var(--muted); margin: 1.2rem 0;
}

/* in-article app plug */
.plug {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 2rem 0;
  display: flex; gap: 1rem; align-items: flex-start;
}
.plug img { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.plug h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.plug p { color: var(--muted); font-size: .95rem; margin-bottom: .7rem; }
.plug a { font-weight: 600; }

/* ---------- guide index cards ---------- */
.guide-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.35rem;
  transition: border-color .12s ease, transform .12s ease;
}
.guide-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.guide-card h3 { margin-bottom: .35rem; }
.guide-card p { color: var(--muted); font-size: .94rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 2.5rem 0; margin-top: 3rem; color: var(--muted); font-size: .92rem;
}
.site-footer .cols {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--fg); margin-bottom: .6rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer .legal { padding-top: 1.25rem; border-top: 1px solid var(--border); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--paper); padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: .5rem; top: .5rem; }
