/* ==========================================================================
   Grip Strength: MrGripper — site styles
   Visual source of truth: App Store icon + screenshots (near-black surfaces,
   coral/orange accent, orange→violet gradient, bold numerals).
   ========================================================================== */

:root {
  --bg: #0b0b0e;
  --bg-raised: #141419;
  --bg-card: #17171d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --text-soft: #b9b9c3;
  --text-faint: #8b8b96;
  --accent: #ff6b4a;
  --accent-strong: #ff5a1f;
  --violet: #8b5cf6;
  --hand-left: #8b8bf5;
  --green: #3ddc84;
  --gradient: linear-gradient(100deg, #ff5a1f 0%, #ff6b4a 45%, #8b5cf6 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1080px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #160905;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  margin-top: 0;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.1em;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 38em;
}

.accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--text-soft);
  max-width: 44em;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 14, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  overflow-x: auto;
}

.site-nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--text);
  color: #0b0b0e;
  border-radius: 14px;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 74, 0.18);
}

.btn-appstore:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 107, 74, 0.3);
}

.btn-appstore svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-appstore .btn-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-appstore .btn-small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
}

.btn-appstore .btn-big {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-appstore--accent {
  background: var(--gradient);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 14px;
  padding: 0.78rem 1.3rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  background:
    radial-gradient(42% 55% at 24% 30%, rgba(255, 90, 31, 0.16), transparent 70%),
    radial-gradient(38% 50% at 78% 24%, rgba(139, 92, 246, 0.14), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 34em;
  margin-bottom: 1.6rem;
}

.hero-audience {
  color: var(--text-faint);
  font-size: 0.95rem;
  max-width: 36em;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-faint);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(320px, 78vw);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-raised);
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.2rem;
  justify-content: center;
}

.trust-strip li {
  color: var(--text-soft);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--raised {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
}

/* Screenshots gallery */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(255px, 68vw);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  display: block;
}

.gallery figcaption {
  font-size: 0.88rem;
  color: var(--text-faint);
  padding: 0.6rem 0.2rem 0;
  text-align: center;
}

@media (min-width: 1100px) {
  .gallery {
    grid-auto-columns: 1fr;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: row;
    overflow: visible;
  }
}

/* Steps (how it works) */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}

.steps h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.steps p {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin: 0;
}

/* Benefit / audience cards */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 660px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

.card .card-emoji {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

/* Guide cards */

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guide-card .guide-intent {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 0.65rem;
}

.guide-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.guide-card h3 a {
  color: var(--text);
}

.guide-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.guide-card p {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}

.guide-card .guide-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */

.faq-list {
  max-width: 760px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list .faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.faq-list .faq-answer p {
  margin-bottom: 0.6em;
}

.faq-list .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA */

.final-cta {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: auto -20% -60%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(255, 90, 31, 0.14), transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.final-cta p {
  max-width: 34em;
  color: var(--text-soft);
}

.final-cta .hero-actions {
  justify-content: center;
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 3rem 0 2.2rem;
  font-size: 0.92rem;
  color: var(--text-faint);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: var(--text-faint);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Guide / article pages
   -------------------------------------------------------------------------- */

.breadcrumbs {
  padding: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--text-faint);
}

.breadcrumbs a {
  color: var(--text-soft);
}

.article-header {
  padding: 1.6rem 0 0.6rem;
}

.article-header .article-meta {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.article {
  max-width: 760px;
}

.article h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.article h3 {
  margin-top: 1.9rem;
}

.article ul,
.article ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2em;
}

.article li {
  margin-bottom: 0.45em;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.article th,
.article td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.article th {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-scroll {
  overflow-x: auto;
}

.article .callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}

.app-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  margin: 2.6rem 0;
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

@media (min-width: 640px) {
  .app-cta-box {
    grid-template-columns: auto 1fr auto;
  }
}

.app-cta-box img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  border: 1px solid var(--border);
}

.app-cta-box h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.app-cta-box p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.related-guides {
  margin: 3rem 0 1rem;
}

.related-guides h2 {
  font-size: 1.3rem;
}

.related-guides ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.related-guides a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
}

.related-guides a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.article-figure {
  margin: 1.8rem 0;
}

.article-figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.55rem;
}
