/* HIKO Software — site design system
 *
 * One stylesheet for all 80 pages (5 pages x 15 locales + the English roots).
 * It used to be a ~230-line <style> block copy-pasted into every file, so a
 * visual change meant editing 80 copies and any one of them could drift.
 *
 * DESIGN
 * ------
 * Structure from boldcommerce.com: display type set heavy and tight, a single
 * bright accent in pill-shaped buttons, eyebrow labels in spaced small caps,
 * generous rounding.
 *
 * Colour does NOT follow the reference. Bold runs a saturated dark site; the
 * first attempt at that here tinted the dark surfaces with the brand crimson
 * and the result was muddy -- a dark maroon (#2a0c1a -> #4a1029) sits too
 * close in hue to the accent, so the two merged into one brown-red mass with
 * no contrast to carry it.
 *
 * So: white ground, neutral greys, and crimson as the only colour. Red reads
 * cleanest against neutrals, and the app icons are already crimson, so the
 * page gets its colour from the products rather than from a wash behind them.
 * One dark block closes the page (CTA + footer) so it still ends with weight.
 *
 * Type: Figtree. Degular Display and Sharp Sans (what Bold licenses from
 * Typekit) are not ours to use; Figtree is the closest free geometric face
 * that still holds up at 900 weight, and carrying one family at several
 * weights keeps the page cohesive.
 *
 * RTL lives at the end rather than being injected per locale.
 */

/* ---------- tokens ---------- */
:root {
  /* the single dark block that closes the page */
  --dark: #0e1013;
  --dark-2: #171a1f;

  /* light surfaces -- neutral, not tinted. A pink wash (#fdf2f4) was part of
   * what made the old palette feel cheap. */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;

  /* text */
  --ink: #111417;
  --ink-2: #434a52;
  --muted: #6d757e;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .76);
  --on-dark-3: rgba(255, 255, 255, .54);

  --line: #e5e8eb;
  --line-strong: #c8ced5;
  --line-dark: rgba(255, 255, 255, .13);

  /* brand */
  --brand: #d62246;
  --brand-hi: #ef3458;
  --brand-lo: #a8162f;
  --brand-soft: #fdeef1;
  --green: #0b7b3e;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --pill: 999px;
  --container: 1160px;
  --section-y: clamp(64px, 9vw, 120px);
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }
:target { scroll-margin-top: calc(var(--nav-h) + 16px); }

body {
  font-family: Figtree, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display type: heavy and tight. The reference sets its h1 at weight 900 with
 * line-height 1.0; anything looser reads as a document rather than a brand. */
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.4rem); font-weight: 900; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem); font-weight: 900; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--brand); }
img { max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }

/* Eyebrow: 0.2em tracking, 700, small. Straight from the reference -- it is
 * what lets a section announce itself without another large heading. */
.eyebrow, .detail-subtitle, .product-badge, .footer-links h5, .detail-visual h4, .search-preview-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}

.section-head, .section-header { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head h2, .section-header h2 { margin-bottom: 14px; }
.section-head p, .section-header p { color: var(--muted); font-size: 1.08rem; }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 30px; width: auto; border-radius: 7px; }
.logo span { font-size: 1.22rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.94rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--brand); }

/* Below 820px the links take their own row rather than disappearing. The old
 * rule was `display: none`, which left phone visitors a logo and no way to
 * navigate -- including no way to reach Pricing. */
@media (max-width: 820px) {
  nav .container { flex-wrap: wrap; height: auto; padding-top: 11px; padding-bottom: 7px; row-gap: 5px; }
  .nav-links {
    order: 3; width: 100%; gap: 0; justify-content: space-between;
    border-top: 1px solid var(--line); padding-top: 7px;
  }
  .nav-links a { font-size: 0.86rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--pill); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; letter-spacing: -0.01em;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hi); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Inside the closing dark block the secondary button inverts. */
.cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.cta .btn-secondary:hover { border-color: #fff; }

/* ---------- hero ---------- */
.hero {
  /* Bottom padding is smaller than top: the next section brings its own
   * --section-y, and the two at full height left ~270px of dead space. */
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(44px, 6vw, 76px);
  text-align: center;
  background: var(--bg);
}
.hero h1 { margin-bottom: 20px; max-width: 16ch; margin-inline: auto; }
.hero .eyebrow { display: block; color: var(--brand); margin-bottom: 20px; }
.hero-intro { font-size: clamp(1.05rem, .98rem + .45vw, 1.28rem); color: var(--muted); max-width: 58ch; margin: 0 auto 18px; }
.hero-detail { font-size: 1rem; color: var(--muted); max-width: 70ch; margin: 0 auto 34px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-icon {
  width: 96px; height: 96px; border-radius: 24px; object-fit: cover;
  border: 1px solid var(--line); margin-bottom: 26px;
  box-shadow: 0 14px 36px rgba(17,20,23,.13);
}
.hero-keywords { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 30px; max-width: 780px; }
.hero-keywords span {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 6px 15px;
}

/* Search-engine preview card (detail pages) sits on the dark hero. */
.search-preview {
  max-width: 600px; margin: 0 auto 30px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; text-align: left;
}
.search-preview-label { color: var(--muted); margin-bottom: 11px; }
.search-preview-url { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink); margin-bottom: 5px; }
.search-preview-url img { width: 16px; height: 16px; border-radius: 50%; }
.search-preview-url span { color: var(--muted); font-size: 0.76rem; }
.search-preview-title { font-size: 1.1rem; color: #1a0dab; line-height: 1.35; margin-bottom: 6px; font-weight: 500; }
.search-preview-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.55; }

.plus-notice {
  max-width: 700px; margin: 0 auto 30px; background: var(--brand-soft);
  border: 1px solid #f6dde3; border-radius: var(--radius-lg);
  padding: 16px 22px; color: var(--ink-2); font-size: 0.94rem; text-align: center;
}
.plus-notice strong { color: var(--brand-lo); }

/* ---------- product cards (home) ---------- */
.products { padding: var(--section-y) 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(17,20,23,.08); }

/* The reference tops each app card with a bright graphic. We have no
 * screenshot for all three apps, so the cover is generated -- and it is a
 * neutral tint, not a crimson wash: the app icons are already crimson, so a
 * red cover behind a red icon flattens both. */
.product-cover {
  display: flex; align-items: center; justify-content: center;
  padding: 30px 0 28px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.product-cover img {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover;
  box-shadow: 0 10px 26px rgba(17,20,23,.14);
}
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-header { margin-bottom: 14px; }
.product-icon { display: none; } /* superseded by .product-cover */
.product-meta { min-width: 0; }
.product-badge { display: inline-block; color: var(--brand); margin-bottom: 9px; }
.product-card h3 { margin-bottom: 4px; }
.product-tagline { color: var(--muted); font-size: 0.9rem; }
.product-card > p, .product-body > p { color: var(--ink-2); margin-bottom: 20px; font-size: 0.96rem; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.stars { color: #e8a33d; font-size: 0.85rem; letter-spacing: .04em; }
.rating-text { font-size: 0.85rem; color: var(--muted); }

.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li { position: relative; padding: 6px 0 6px 27px; color: var(--ink-2); font-size: 0.94rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 6px;
  border-left: 2.2px solid var(--brand); border-bottom: 2.2px solid var(--brand); transform: rotate(-45deg);
}
.product-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.product-footer .btn { padding: 11px 22px; font-size: 0.88rem; }
.pricing { font-size: 0.84rem; color: var(--muted); }
.pricing strong { color: var(--ink); }

/* ---------- pricing ---------- */
/* Deliberately not inside the product cards and not near the top of the page:
 * a merchant deciding whether an app solves their problem is not yet shopping
 * on price. The nav keeps a Pricing link for anyone who is. */
.pricing-section { padding: var(--section-y) 0; background: var(--bg-soft); }
.pricing-apps { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pricing-app {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start;
}
.pricing-app-head { display: flex; align-items: center; gap: 13px; }
.pricing-app-head img { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); flex-shrink: 0; }
.pricing-app-head h3 { font-size: 1.08rem; }
@media (max-width: 760px) { .pricing-app { grid-template-columns: 1fr; gap: 18px; } }

/* One row per app -- three apps side by side left each plan about 140px, which
 * wrapped "/ month" onto its own line. */
.product-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 13px; }
.product-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.product-plan.featured { border-color: var(--brand); }
.product-plan h4 { font-size: 0.86rem; color: var(--muted); margin-bottom: 5px; letter-spacing: 0; text-transform: none; }
/* nowrap: "$2.99 /" above a lone "month" is what made the old block look broken. */
.product-plan .plan-price { font-size: 1.5rem; font-weight: 900; color: var(--ink); margin-bottom: 13px; letter-spacing: -0.035em; white-space: nowrap; }
.product-plan .plan-price span { font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-features { list-style: none; }
.plan-features li { position: relative; padding: 3px 0 3px 19px; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.plan-features li::before {
  content: ""; position: absolute; left: 1px; top: 11px; width: 8px; height: 5px;
  border-left: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand); transform: rotate(-45deg);
}
.pricing-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 30px; }

/* Detail-page pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; max-width: 790px; margin: 0 auto; align-items: start; }
.pricing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; position: relative; }
.pricing-card.featured { border-color: var(--brand); }
.pricing-badge {
  position: absolute; top: -12px; left: 28px; background: var(--brand); color: #fff;
  padding: 5px 14px; border-radius: var(--pill); font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pricing-card h3 { margin-bottom: 7px; }
.pricing-card .pricing-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-amount { margin-bottom: 22px; }
.pricing-amount .amount { font-size: 2.5rem; font-weight: 900; color: var(--ink); letter-spacing: -0.045em; }
.pricing-amount .period { color: var(--muted); font-size: 0.95rem; }
.pricing-features { list-style: none; margin-bottom: 26px; }
.pricing-features li { position: relative; padding: 5px 0 5px 25px; color: var(--ink-2); font-size: 0.9rem; }
.pricing-features li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 9px; height: 5px;
  border-left: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand); transform: rotate(-45deg);
}
.pricing-card .btn { display: flex; width: 100%; }
.pricing-trial { text-align: center; color: var(--green); font-size: 0.84rem; font-weight: 600; margin-top: 12px; }

/* ---------- detail pages ---------- */
.feature-section { padding: var(--section-y) 0; background: var(--bg-soft); }
.feature-details { list-style: none; max-width: 740px; margin: 0 auto; }
.feature-details li { position: relative; padding: 10px 0 10px 32px; color: var(--ink-2); font-size: 1.06rem; }
.feature-details li::before {
  content: ""; position: absolute; left: 3px; top: 21px; width: 11px; height: 6px;
  border-left: 2.2px solid var(--brand); border-bottom: 2.2px solid var(--brand); transform: rotate(-45deg);
}

.feature-image-section { padding: var(--section-y) 0; }
.feature-image-wrapper { max-width: 1020px; margin: 0 auto; }
.feature-img { width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--line); display: block; box-shadow: 0 22px 52px rgba(17,20,23,.09); }
.feature-image-desc { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 18px; }

.detail-section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.detail-grid.reversed .detail-text { order: 2; }
.detail-grid.reversed .detail-visual { order: 1; }
.detail-text .detail-subtitle { display: block; color: var(--brand); margin-bottom: 12px; }
.detail-text h2 { margin-bottom: 16px; }
.detail-text p { color: var(--ink-2); margin-bottom: 15px; }
.detail-list { list-style: none; margin-top: 8px; }
.detail-list li { position: relative; padding: 6px 0 6px 27px; color: var(--ink-2); font-size: 0.95rem; }
.detail-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 6px;
  border-left: 2.2px solid var(--brand); border-bottom: 2.2px solid var(--brand); transform: rotate(-45deg);
}
.detail-visual {
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 22px;
}
.detail-visual h4 { color: var(--muted); margin-bottom: 15px; }
.detail-visual img { width: 100%; height: auto; border-radius: var(--radius); display: block; border: 1px solid var(--line); }
.detail-visual-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-visual-item:last-child { border-bottom: none; }
.detail-visual-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.detail-visual-item span { font-size: 0.94rem; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid.reversed .detail-text { order: 1; }
  .detail-grid.reversed .detail-visual { order: 2; }
}

.why-use { padding: var(--section-y) 0; background: var(--bg-soft); }
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 22px; }
.reason-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; transition: border-color .2s, transform .2s; }
.reason-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.reason-card img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.reason-card-body { padding: 24px; }
.reason-card-icon { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.reason-card-body h3 { font-size: 1.08rem; margin-bottom: 7px; }
.reason-card-body p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* ---------- about / why-choose / cta ---------- */
.about { padding: var(--section-y) 0; }
.about-content { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; color: var(--ink-2); }
.about-image { display: flex; justify-content: center; }
.about-image img { max-width: 190px; height: auto; border-radius: var(--radius-xl); }
@media (max-width: 760px) { .about-content { grid-template-columns: 1fr; } .about-image { order: -1; } }

.why-choose { padding: var(--section-y) 0; background: var(--bg-soft); }
/* 300px floor so six cards land 3+3 at desktop rather than a lopsided 4+2. */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; }
.benefit-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.benefit-card p { color: var(--muted); font-size: 0.94rem; }

/* The page's one dark block. CTA and footer share it so the site ends with
 * weight without a tinted hero competing for attention at the top. */
.cta {
  padding: var(--section-y) 0 calc(var(--section-y) * .7); text-align: center; color: var(--on-dark);
  background: var(--dark);
}
.cta h2 { color: var(--on-dark); margin-bottom: 16px; }
.cta p { color: var(--on-dark-2); font-size: 1.08rem; margin-bottom: 32px; max-width: 58ch; margin-inline: auto; }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--on-dark-3); padding: clamp(48px, 7vw, 76px) 0 34px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
/* The logo's wordmark is --ink for the light nav; inside the dark block it
 * has to invert or it disappears into the background. */
.footer-brand .logo span { color: var(--on-dark); }
.footer-brand p { font-size: 0.9rem; color: var(--on-dark-3); line-height: 1.7; max-width: 38ch; }
.footer-links h5 { color: var(--on-dark); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--on-dark-3); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--on-dark-3);
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { color: var(--on-dark-3); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--on-dark); }
@media (max-width: 760px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-content { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.page-header {
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 84px)) 0 clamp(36px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 12px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.last-updated { color: var(--muted); font-size: 0.9rem; }
/* .policy-content is a bare <div>, not wrapped in .container, so without
 * horizontal padding its text ran to the viewport edge. Container width keeps
 * its left edge aligned with the page header's h1; the children carry the
 * reading measure. */
.policy-content { max-width: var(--container); margin: 0 auto; padding: clamp(40px, 5vw, 60px) 24px var(--section-y); }
.policy-content > * { max-width: 780px; }
.policy-content h2 { font-size: 1.45rem; margin: 40px 0 13px; }
.policy-content h3 { font-size: 1.1rem; margin: 26px 0 9px; }
.policy-content p { margin-bottom: 15px; }
.policy-content ul, .policy-content ol { margin: 0 0 17px 1.3em; }
.policy-content li { margin-bottom: 8px; }
/* The section's own padding already separates it from the page header. */
.policy-content > :first-child { margin-top: 0; }

/* ---------- language switcher ---------- */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-switcher summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
  padding: 8px 15px; border-radius: var(--pill); border: 1px solid var(--line);
  background: #fff; white-space: nowrap; transition: border-color .15s, color .15s;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary:hover,
.lang-switcher[open] summary { color: var(--ink); border-color: var(--line-strong); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1001;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(17,20,23,.16);
  list-style: none; padding: 7px 0; min-width: 172px; max-height: 70vh; overflow-y: auto;
}
.lang-menu a { display: block; padding: 8px 17px; color: var(--ink-2); text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
.lang-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu a.lang-current { color: var(--brand); font-weight: 700; }

/* ---------- FAQ ---------- */
/* The content here is generated by site/tools/build-faq.mjs from the apps' own
 * FAQ markdown, so these rules have to absorb anything markdown can emit --
 * paragraphs, both list kinds, blockquotes, inline code, links, strong.
 *
 * Collapsed by default: Wish Keeper ships 35 questions and Social Login Plus
 * 44, and a flat wall of that is unreadable. <details> does it with no
 * JavaScript, same as the language switcher. */
.faq-section { padding: var(--section-y) 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.faq-section > .container > h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; letter-spacing: -.02em; color: var(--ink); text-align: center; }
.faq-group { margin-top: 42px; }
.faq-group h3 {
  font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-top: 9px; transition: border-color .18s;
}
.faq-item[open], .faq-item:hover { border-color: var(--line-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 15px 52px 15px 20px; font-weight: 700; color: var(--ink); font-size: .97rem; line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Chevron drawn from two borders -- no icon font, no SVG round-trip. */
.faq-item summary::after {
  content: ""; position: absolute; right: 21px; top: 50%; width: 9px; height: 9px;
  border-right: 2.2px solid var(--muted); border-bottom: 2.2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-answer { padding: 0 20px 17px; color: var(--ink-2); font-size: .94rem; line-height: 1.75; }
.faq-answer > * + * { margin-top: .75em; }
.faq-answer ul, .faq-answer ol { margin-left: 1.35em; }
.faq-answer li + li { margin-top: .3em; }
.faq-answer a { color: var(--brand); }
.faq-answer code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 5px; font-size: .88em; overflow-wrap: anywhere;
}
.faq-answer blockquote {
  border-left: 3px solid var(--brand); padding: 2px 0 2px 14px; color: var(--muted);
}
/* Tables are the one thing that cannot reflow -- let them scroll inside the
 * answer rather than pushing the whole page sideways. */
.faq-answer table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .9em; }
.faq-answer th, .faq-answer td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; white-space: nowrap; }

/* ---------- RTL ---------- */
/* Kept here rather than injected per locale so ar/ and he/ cannot drift from
 * the other thirteen. */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .feature-list li,
[dir="rtl"] .detail-list li,
[dir="rtl"] .plan-features li,
[dir="rtl"] .pricing-features li,
[dir="rtl"] .feature-details li { padding-left: 0; padding-right: 27px; }
[dir="rtl"] .feature-list li::before,
[dir="rtl"] .detail-list li::before,
[dir="rtl"] .plan-features li::before,
[dir="rtl"] .pricing-features li::before,
[dir="rtl"] .feature-details li::before { left: auto; right: 2px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .pricing-badge { left: auto; right: 28px; }
[dir="rtl"] .policy-content ul,
[dir="rtl"] .policy-content ol { margin-left: 0; margin-right: 1.3em; }
/* The Social Login Plus FAQ has no ar/he translation, so those two pages carry
 * the English one in a section marked dir="ltr". [dir="rtl"] is an ANCESTOR
 * selector -- it keeps matching inside that subtree, which put the chevron on
 * the wrong side of an English question. Hence :not([dir="ltr"]) on every rule
 * below rather than a second set of rules undoing them. */
[dir="rtl"] .faq-section[dir="ltr"] { text-align: left; }
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-item summary { padding: 15px 20px 15px 52px; }
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-item summary::after { right: auto; left: 21px; }
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-answer ul,
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-answer ol { margin-left: 0; margin-right: 1.35em; }
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-answer blockquote { border-left: 0; border-right: 3px solid var(--brand); padding: 2px 14px 2px 0; }
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-answer th,
[dir="rtl"] .faq-section:not([dir="ltr"]) .faq-answer td { text-align: right; }
