/* ==========================================================================
   Guru — shared site styles
   Matches the iOS app's design language: warm "paper" background, sky-blue
   primary, ink text, soft floating-paper shadows, rounded cards, the owl.
   System font stack renders SF Pro on Apple devices (most of our visitors).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand palette (from FRTheme) */
  --paper: #f9f9f7;        /* page background — warm off-white */
  --paper-2: #f2f2f0;      /* slightly deeper paper */
  --surface: #ffffff;      /* cards */
  --ink: #2c2c2e;          /* primary text */
  --muted: rgba(44, 44, 46, 0.62);
  --faint: rgba(44, 44, 46, 0.42);
  --line: rgba(44, 44, 46, 0.10);
  --line-2: rgba(44, 44, 46, 0.16);

  --blue: #379af3;         /* primary "deck card blue" */
  --blue-deep: #1f7fd6;    /* hover / text-on-light blue */
  --sky: #a8d5fa;          /* companion light blue */
  --sky-wash: #eaf4fe;     /* tinted panels */
  --teal: #2fa39b;         /* best-value accent */
  --teal-wash: #e7f5f3;
  --amber: #f0a500;        /* star / highlight */

  /* Morandi review-rating colours (mirror the app) */
  --again: #c47c78;
  --hard:  #d9b28d;
  --good:  #83a697;
  --easy:  #8faab5;

  /* Shadows — diffuse "floating paper" */
  --shadow-sm: 0 1px 3px rgba(44, 44, 46, 0.06);
  --shadow:    0 10px 30px -12px rgba(44, 44, 46, 0.20);
  --shadow-lg: 0 30px 70px -30px rgba(44, 44, 46, 0.30);
  --shadow-blue: 0 18px 44px -16px rgba(55, 154, 243, 0.45);

  --r-card: 20px;
  --r-lg: 28px;
  --r-btn: 13px;
  --r-pill: 100px;

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
code {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 7px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--blue-deep);
  background: var(--sky-wash);
  border: 1px solid rgba(55, 154, 243, 0.18);
  padding: 6px 13px; border-radius: var(--r-pill);
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.muted { color: var(--muted); }

/* --------------------------------------------------------------- header --- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 249, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 17px; white-space: nowrap; }
.navcta { white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
header.site nav { display: flex; align-items: center; gap: 4px; }
header.site nav a.navlink {
  color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px;
}
header.site nav a.navlink:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
header.site nav .navcta { margin-left: 6px; }

/* lang switcher (native <details>) */
.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none; cursor: pointer; color: var(--muted);
  font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px;
}
.lang-switcher summary:hover { color: var(--ink); background: var(--paper-2); }
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after { content: " ▾"; font-size: 11px; opacity: 0.7; }
.lang-switcher ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); min-width: 168px; z-index: 60;
}
.lang-switcher li a { display: block; padding: 8px 11px; font-size: 14px; color: var(--ink); border-radius: 9px; }
.lang-switcher li a[aria-current] { font-weight: 700; color: var(--blue-deep); }
.lang-switcher li a:hover { background: var(--paper-2); text-decoration: none; }

/* --------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-lg { padding: 16px 26px; font-size: 17px; }

/* Apple App Store badge (inline, no external image) */
.app-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  box-shadow: var(--shadow); transition: transform .12s ease, background .2s ease;
}
.app-badge:hover { text-decoration: none; transform: translateY(-1px); background: #000; }
.app-badge svg { width: 26px; height: 26px; flex: none; }
.app-badge .ab-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.app-badge .ab-small { font-size: 11px; opacity: 0.86; font-weight: 500; }
.app-badge .ab-big { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .cta-row { justify-content: center; }

/* rating / social proof */
.rating { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.stars { color: var(--amber); letter-spacing: 1px; font-size: 15px; }

/* --------------------------------------------------------------- hero ----- */
.hero { position: relative; overflow: hidden; padding: 56px 0 24px; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 560px; z-index: -1;
  background:
    radial-gradient(48% 60% at 72% 16%, rgba(168, 213, 250, 0.40), transparent 70%),
    radial-gradient(44% 56% at 16% 8%, rgba(55, 154, 243, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
.hero .lead { margin: 18px 0 26px; max-width: 33ch; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-art .owl {
  position: absolute; left: -6%; bottom: -2%; width: 184px; z-index: 3;
  filter: drop-shadow(0 16px 26px rgba(44, 44, 46, 0.18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .owl { animation: none; } }

/* --------------------------------------------------------------- device --- */
.phone {
  position: relative; width: 290px; max-width: 78vw; border-radius: 40px;
  background: var(--ink); padding: 9px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.4);
}
.phone img { border-radius: 32px; width: 100%; display: block; }
.phone.tilt { transform: rotate(2deg); }
.phone.sm { width: 240px; }

/* --------------------------------------------------------------- trust ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .container { padding-top: 26px; padding-bottom: 26px; }
.trust .label { text-align: center; font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.trust .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 7px 14px; border-radius: var(--r-pill);
}

/* --------------------------------------------------------------- features - */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature-row:nth-child(even) .feature-media { order: -1; }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--blue-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.feature-row h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 12px 0 12px; }
.feature-row p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.feature-media { display: flex; justify-content: center; }
.tick-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.tick-list li::before { content: "✓"; color: var(--teal); font-weight: 800; flex: none; }

/* three-up highlight cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sky-wash); color: var(--blue-deep); margin-bottom: 14px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h4 { font-size: 18px; font-weight: 800; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* --------------------------------------------------------------- banner --- */
.band {
  background: linear-gradient(135deg, #2c2c2e 0%, #1d2733 60%, #1b3753 100%);
  color: #fff; border-radius: var(--r-lg); padding: 44px; position: relative; overflow: hidden;
}
.band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.band p { color: rgba(255,255,255,0.78); }
.band .owl-pro { position: absolute; right: 28px; bottom: -6px; width: 168px; z-index: 1; }

/* --------------------------------------------------------------- pricing -- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 920px; margin: 0 auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px; position: relative;
}
.price-card .tier { font-weight: 800; font-size: 18px; }
.price-card .tier-sub { color: var(--muted); font-size: 13.5px; min-height: 38px; }
.price-card .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.price-card .amount .per { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .was { color: var(--faint); font-weight: 600; text-decoration: line-through; font-size: 17px; margin-right: 8px; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; }
.price-card ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.price-card ul li::before { content: "✓"; color: var(--teal); font-weight: 800; flex: none; }
.price-card .btn, .price-card .app-badge { margin-top: auto; width: 100%; }
.price-card.featured {
  border: 2px solid var(--teal); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--teal-wash) 0%, var(--surface) 26%);
}
.badge-best {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.03em;
  padding: 5px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); white-space: nowrap;
}
.save-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: var(--amber); color: #3a2a00; font-weight: 800; font-size: 12px;
  padding: 4px 10px; border-radius: var(--r-pill);
}
/* Featured card's CTA reads as primary without needing a template conditional */
.price-card.featured .btn-ghost { background: var(--blue); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }
.price-card.featured .btn-ghost:hover { background: var(--blue-deep); color: #fff; }

/* Two-column split (lifetime detail) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.panel-teal { background: var(--teal-wash); border: 1px solid rgba(47, 163, 155, 0.25); border-radius: var(--r-lg); padding: 40px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; text-align: center; }
  .split .tick-list li, .split .cta-row { justify-content: center; }
  .split .tick-list { justify-items: center; }
  .panel-teal { padding: 30px 22px; }
}

/* early-bird callout banner */
.earlybird {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  background: var(--teal-wash); border: 1px solid rgba(47, 163, 155, 0.30);
  color: var(--ink); border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: 15px;
}
.earlybird b { color: var(--teal); }

/* QR (desktop download) */
.qr-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.qr-box { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.qr-box img { width: 132px; height: 132px; }

/* --------------------------------------------------------------- FAQ ------ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 4px; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 600; font-size: 22px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 4px 18px; color: var(--muted); font-size: 16px; }

/* --------------------------------------------------------------- footer --- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
footer.site .container { padding-top: 40px; padding-bottom: 44px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 0; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin: 0 0 12px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.foot-col a:hover { color: var(--ink); text-decoration: none; }
.foot-base { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* generic section heading */
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero .lead { max-width: none; margin-inline: auto; }
  .hero .cta-row, .hero .rating { justify-content: center; }
  .hero-art { margin-top: 8px; }
  .hero-art .owl { width: 130px; left: 2%; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; text-align: center; }
  .feature-row .feature-media { order: -1 !important; }
  .feature-kicker, .tick-list li { justify-content: center; }
  .tick-list { justify-items: center; }
  .cards-3 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .band .owl-pro { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  header.site nav .navlink.hide-sm { display: none; }
  .foot-links { gap: 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .price-grid { grid-template-columns: 1fr; }
  .band { padding: 30px 22px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
}
@media (max-width: 480px) {
  .brandname { display: none; }
  header.site .bar { gap: 8px; padding: 11px 16px; }
  header.site nav { gap: 2px; }
  .btn { padding: 12px 16px; font-size: 15px; }
}

/* Mobile top app banner (shown only on small screens) */
.app-strip { display: none; }
@media (max-width: 720px) {
  .app-strip {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 9px 14px; position: sticky; top: 0; z-index: 70;
  }
  .app-strip img.ico { width: 38px; height: 38px; border-radius: 9px; box-shadow: var(--shadow-sm); }
  .app-strip .as-txt { flex: 1; min-width: 0; }
  .app-strip .as-title { font-weight: 800; font-size: 14px; line-height: 1.1; }
  .app-strip .as-sub { color: var(--muted); font-size: 12px; }
  .app-strip .as-get {
    background: var(--blue); color: #fff; font-weight: 800; font-size: 13px;
    padding: 8px 15px; border-radius: var(--r-pill); flex: none;
  }
  .app-strip .as-get:hover { text-decoration: none; }
}

/* ==========================================================================
   Blog — index list + long-form article (generated from content/blog/)
   ========================================================================== */
.blog-index { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; }
.blog-index h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.blog-index .subtitle { color: var(--muted); margin: 0 0 32px; font-size: 17px; }
.blog-index ul.posts { list-style: none; padding: 0; margin: 0; }
.blog-index ul.posts li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.blog-index ul.posts h2 { font-size: 20px; margin: 0 0 6px; }
.blog-index ul.posts h2 a { color: var(--ink); }
.blog-index ul.posts h2 a:hover { color: var(--blue-deep); text-decoration: none; }
.blog-index ul.posts time, .blog-index ul.posts .readtime { color: var(--muted); font-size: 13px; }
.blog-index ul.posts p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.post { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; line-height: 1.7; }
.post .crumb { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.post h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; }
.post .post-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.post h2 { font-size: 25px; line-height: 1.2; margin: 44px 0 12px; }
.post h3 { font-size: 18px; line-height: 1.3; margin: 26px 0 8px; }
.post p { margin: 0 0 14px; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 16px; }
.post li { margin: 6px 0; }
.post blockquote {
  margin: 16px 0; padding: 12px 18px; background: var(--surface);
  border-left: 3px solid var(--blue); border-radius: 4px; color: var(--muted);
}
.post blockquote p:last-child { margin-bottom: 0; }
.post .tldr {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px; margin: 24px 0 32px;
}
.post .tldr strong { display: block; margin-bottom: 6px; }
.post table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.post th, .post td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.post th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.post tbody tr:last-child td { border-bottom: 0; }
.post tbody td:first-child { font-weight: 500; }
.post .cta-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; margin: 40px 0; text-align: center;
}
.post .cta-box h3 { margin-top: 0; }
.post .cta-box a.cta {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 12px 24px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; margin-top: 8px;
}
.post .cta-box a.cta:hover { background: #000; text-decoration: none; }
.post .post-foot { margin-top: 48px; font-size: 15px; }
