/* Everkeep marketing site — design system */
:root {
  --teal: #1f5a66;
  --teal-600: #2f6f7e;
  --teal-700: #17454f;
  --deep: #12312e;
  --deep-900: #0b201e;
  --cream: #f6f1e8;
  --cream-100: #fbf8f2;
  --paper: #ffffff;
  --ink: #17262a;
  --ink-600: #45575c;
  --ink-400: #7a8a8e;
  --line: #e4ded3;
  --copper: #c77b4a;
  --mint: #d5e6e6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(18, 49, 46, 0.14);
  --shadow-sm: 0 6px 20px rgba(18, 49, 46, 0.1);
  --max: 1160px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--deep);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-600); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--ink-600); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons & badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(31, 90, 102, .28); }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(18, 49, 46, .25); color: var(--deep); }
.btn--ghost:hover { border-color: var(--deep); color: var(--deep); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--cream); color: var(--deep); }

.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--deep); color: #fff; text-decoration: none;
  padding: .7rem 1.15rem .7rem .95rem; border-radius: 14px;
  line-height: 1.1; min-height: 58px; border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-1px); background: var(--deep-900); color: #fff; }
.store-badge svg { width: 30px; height: 30px; flex: none; }
.store-badge small { display: block; font-size: .68rem; opacity: .8; letter-spacing: .02em; }
.store-badge strong { font-size: 1.15rem; font-weight: 600; }
.store-badge--outline { background: #fff; color: var(--deep); border-color: rgba(18,49,46,.2); }
.store-badge--outline:hover { background: var(--cream); color: var(--deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 232, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(18,49,46,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--deep); font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-600); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--deep); }
.nav .btn { padding: .6rem 1.1rem; font-size: .92rem; }
@media (max-width: 860px) { .nav-links li:not(.nav-cta) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, #274f52 0%, var(--deep) 55%, var(--deep-900) 100%); color: #fff; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 60%; background: radial-gradient(60% 60% at 50% 100%, rgba(199,123,74,.22), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1, .hero p { color: #fff; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: #f2d9c4; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 34rem; }
.hero .eyebrow { color: #f2b58a; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.8); font-size: .92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 16px; height: 16px; color: #8fd0c4; }
.hero-actions { margin-top: 1.9rem; }
.hero-note { margin-top: .9rem; font-size: .88rem; color: rgba(255,255,255,.62); }
.hero-visual { position: relative; display: flex; justify-content: center; align-self: end; margin-bottom: calc(-1 * clamp(3rem, 7vw, 5.5rem)); max-height: 640px; }
.hero-visual .phone { width: min(100%, 340px); height: auto; border-radius: 44px 44px 0 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.hero-visual .phone--back { position: absolute; width: min(60%, 220px); right: -2%; bottom: -14%; opacity: .95; transform: rotate(7deg); border-radius: 30px 30px 0 0; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-proof, .store-badges { justify-content: center; }
  .hero-visual .phone--back { display: none; }
  .hero-visual .phone { width: min(70%, 300px); }
  .hero-visual { max-height: 380px; overflow: hidden; margin-top: 1rem; }
}
.nav-links .btn--primary { color: #fff; }

/* Device frame wrapper (phone crops sit on a dark card) */
.device { background: radial-gradient(120% 100% at 50% 0%, #2a5b5c 0%, var(--deep) 70%); border-radius: 26px; padding: 1.1rem 1.1rem 0; overflow: hidden; aspect-ratio: 4 / 5; display: flex; align-items: flex-start; justify-content: center; box-shadow: var(--shadow-sm); }
.device img { width: 100%; height: auto; border-radius: 26px 26px 0 0; }

/* Logos / trust strip */
.trust { background: var(--deep-900); color: rgba(255,255,255,.72); font-size: .92rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.06); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; }
.trust span { display: inline-flex; align-items: center; gap: .5rem; }
.trust svg { width: 16px; height: 16px; color: #8fd0c4; }

/* Download */
.download-card {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 2rem 2.4rem;
}
.download-card img { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-sm); }
.download-card h2 { font-size: 1.7rem; margin-bottom: .3rem; }
.download-card p { margin: 0; color: var(--ink-600); }
.price-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--mint); color: var(--teal-700); font-weight: 600; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; margin-top: .6rem; }
@media (max-width: 860px) { .download-card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.shot { text-align: center; }
.shot figure { margin: 0; }
.shot .device { transition: transform .25s ease; }
.shot:hover .device { transform: translateY(-6px); }
.shot figcaption { margin-top: .9rem; font-size: .95rem; color: var(--ink-600); }
.shot figcaption strong { display: block; color: var(--deep); font-family: var(--serif); font-size: 1.1rem; margin-bottom: .15rem; }
@media (max-width: 1000px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); gap: .9rem; } .shot img { border-radius: 18px; } }

/* Steps / how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 1.7rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2.2rem; color: var(--copper); line-height: 1; display: block; margin-bottom: .8rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.step p { margin: 0; color: var(--ink-600); font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.feature svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: .9rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--ink-600); font-size: .96rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .97rem; }
.compare th, .compare td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--deep); color: #fff; font-weight: 600; font-family: var(--sans); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--deep); }
.compare .yes { color: var(--teal); font-weight: 600; }
.compare .no { color: var(--ink-400); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0 1.8rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 880px; margin: 0 auto; }
.plan { background: #fff; border-radius: 24px; padding: 2rem; border: 1px solid var(--line); }
.plan--pro { background: var(--deep); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.plan--pro h3, .plan--pro .price { color: #fff; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: var(--serif); font-size: 2.6rem; color: var(--deep); line-height: 1; margin: .4rem 0 .2rem; }
.plan .price small { font-family: var(--sans); font-size: .95rem; opacity: .75; margin-left: .35rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--teal); }
.plan--pro li svg { color: #8fd0c4; }
.plan--pro p { color: rgba(255,255,255,.78); }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }

/* Guides grid */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.guide-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; border: 1px solid var(--line); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); color: inherit; }
.guide-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: .7rem; }
.guide-card h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.guide-card p { color: var(--ink-600); font-size: .95rem; margin: 0 0 1rem; flex: 1; }
.guide-card span { color: var(--teal); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guides { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; color: var(--deep); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.2rem; color: var(--ink-600); }
.faq .answer p { margin-bottom: .6rem; }
.faq .learn-more { font-weight: 600; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--teal-700), var(--deep)); color: #fff; border-radius: 32px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(199,123,74,.28), transparent 65%); top: -260px; right: -160px; }
.cta h2, .cta p { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.8); max-width: 38rem; margin: 0 auto 1.8rem; }
.cta .store-badges { justify-content: center; position: relative; }
.cta .store-badge { background: #fff; color: var(--deep); }
.cta .store-badge:hover { background: var(--cream); color: var(--deep); }

/* Footer */
.site-footer { background: var(--deep-900); color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: .9rem 0 0; max-width: 30rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .85rem; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Guide / article pages */
.article-hero { background: var(--deep); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.article-hero h1, .article-hero p { color: #fff; }
.article-hero .lead { color: rgba(255,255,255,.82); max-width: 44rem; }
.article-hero .eyebrow { color: #f2b58a; }
.breadcrumbs { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
.article { max-width: 720px; }
.article h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 2.6rem; }
.article h3 { margin-top: 1.8rem; }
.article p, .article li { color: var(--ink-600); }
.article li { margin-bottom: .45rem; }
.article strong { color: var(--ink); }
.article figure { margin: 2rem 0; }
.article figure .device { margin: 0 auto; width: min(100%, 320px); }
.article figcaption { text-align: center; font-size: .9rem; color: var(--ink-400); margin-top: .7rem; }
.callout { background: #fff; border-left: 4px solid var(--copper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.callout p { margin: 0; }
.how-to { counter-reset: how; list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .9rem; }
.how-to li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem 1.1rem 3.6rem; position: relative; }
.how-to li::before { counter-increment: how; content: counter(how); position: absolute; left: 1.05rem; top: 1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.how-to li strong { display: block; color: var(--deep); margin-bottom: .2rem; }
.aside { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.aside-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.aside-card img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: .9rem; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.aside-card p { font-size: .93rem; color: var(--ink-600); margin-bottom: 1rem; }
.aside-card .store-badges { flex-direction: column; align-items: stretch; }
.aside-card .store-badge { justify-content: flex-start; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.aside-card ul a { text-decoration: none; }
.aside-card ul a:hover { text-decoration: underline; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .aside { position: static; } }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

.inline-cta { background: var(--deep); color: #fff; border-radius: 22px; padding: 1.8rem; margin: 2.4rem 0; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; }
.inline-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 28rem; }
.inline-cta strong { color: #fff; display: block; font-family: var(--serif); font-size: 1.3rem; margin-bottom: .2rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot img, .guide-card, .store-badge { transition: none; }
}
