/* OurHisab home page sections (shared parts are in site.css). */
.section { padding-block: 80px; }
  .section-head { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
  .section-head p { color: var(--ink-2); font-size: 17px; }
  :focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; border-radius: 6px; }
  .top { background: radial-gradient(120% 90% at 12% 0%, #2A9A62 0%, var(--green) 38%, var(--deep) 100%); color: var(--white); }

  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 64px 80px; }
  .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--coin); color: #3A2A00; font-weight: 600; font-size: 14px;
    padding: 6px 14px; border-radius: 999px; }
  .hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; margin: 20px 0 20px; }
  .hero-sub { font-size: 19px; color: rgba(255,255,255,.84); max-width: 44ch; margin-bottom: 30px; }
  .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.72); }
  .hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
  .hero-meta b { color: var(--coin); font-weight: 600; }
  .phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 44px; padding: 10px; background: #0A2A19;
    box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08); }
  .phone video, .phone img { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 34px; object-fit: cover; background: var(--deep); }
  .hero-visual { position: relative; }
  /* Hero: app screens cross-fade over the first one, 4 s each. */
  .slideshow { position: relative; }
  .slideshow img + img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); opacity: 0; animation: slide 20s infinite; }
  .slideshow img:nth-child(2) { animation-delay: 4s; }
  .slideshow img:nth-child(3) { animation-delay: 8s; }
  .slideshow img:nth-child(4) { animation-delay: 12s; }
  .slideshow img:nth-child(5) { animation-delay: 16s; }
  @keyframes slide { 0% { opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 23% { opacity: 0; } 100% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .slideshow img + img { animation: none; } }
  .float { position: absolute; background: var(--white); color: var(--ink); border-radius: 16px; padding: 12px 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.2); font-size: 13px; line-height: 1.35; max-width: 190px; }
  .float b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
  .float.f1 { left: 0; top: 18%; }
  .float.f1 b { color: var(--leaf); }
  .float.f2 { right: 0; bottom: 16%; }
  .float.f2 b { color: var(--orange); }

  .trust { background: var(--deep); color: #CFE6D9; border-top: 1px solid rgba(255,255,255,.1); }
  .trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; padding-block: 18px; font-size: 15px; }
  .trust span { display: inline-flex; align-items: center; gap: 10px; }
  .trust svg { width: 18px; height: 18px; color: var(--coin); flex: none; }

  /* ---------- How it works ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
  .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
  .step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--mint-2); color: var(--green); font-weight: 700; margin-bottom: 6px; }
  .step h3 { font-size: 19px; }
  .step p { color: var(--ink-2); font-size: 15px; }

  /* ---------- Feature rows ---------- */
  .features { background: var(--white); }
  .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 36px; }
  .row + .row { border-top: 1px solid var(--line); }
  .row.flip .row-media { order: 2; }
  .row-media { display: flex; justify-content: center; background: var(--mint-2); border-radius: var(--r-lg); padding: 36px 20px 0; overflow: hidden; }
  .row-media img { width: 260px; max-width: 80%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
    border-radius: 28px 28px 0 0; border: 8px solid #0A2A19; border-bottom: 0; display: block; margin-bottom: -60px;
    box-shadow: 0 24px 48px rgba(15,77,46,.2); }
  .row-copy { display: flex; flex-direction: column; gap: 14px; }
  .row-copy h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
  .row-copy p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
  .ticks { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
  .ticks li { display: flex; gap: 12px; align-items: flex-start; }
  .ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
    background: var(--mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231B7A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

  .grid-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .mini { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--mint); }
  .mini svg { width: 26px; height: 26px; color: var(--green); margin-bottom: 4px; }
  .mini h3 { font-size: 17px; }
  .mini p { font-size: 14px; color: var(--ink-2); }

  /* ---------- Shared books ---------- */
  .shared { background: var(--deep); color: var(--white); }
  .shared .section-head p { color: rgba(255,255,255,.8); }
  .shared .kicker { color: var(--coin); }
  .shared-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .use { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: 18px; }
  .use h3 { font-size: 17px; margin-bottom: 4px; }
  .use p { font-size: 14px; color: rgba(255,255,255,.75); }
  .shared .phone { width: 280px; }
  .pro-note { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.7); }
  .pro-note b { color: var(--coin); }

  /* ---------- Videos ---------- */
  .watch-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
  /* The guide video already draws its own phone and captions: no phone frame around it. */
  .video-card { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: var(--deep);
    box-shadow: 0 40px 80px rgba(15, 77, 46, .28); }
  .video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; background: var(--deep); }
  .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
  .tab { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--white); color: var(--ink); }
  .tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
  .watch-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; }
  .watch-list li { display: flex; gap: 12px; }
  .watch-list time { font-variant-numeric: tabular-nums; color: var(--green); font-weight: 600; min-width: 42px; }

  /* ---------- Pricing ---------- */
  .pricing { background: var(--white); }
  .plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
  .plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--mint); }
  .plan.pro { background: var(--deep); color: var(--white); border-color: var(--deep); position: relative; }
  .plan-name { font-weight: 700; font-size: 20px; }
  .plan-price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .plan.pro .plan-price { color: var(--coin); }
  .plan-price small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
  .plan-sub { font-size: 14px; color: var(--ink-2); }
  .plan.pro .plan-sub { color: rgba(255,255,255,.75); }
  .plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
  .plan li { display: flex; gap: 10px; }
  .plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
  .plan.pro li::before { color: var(--coin); }
  .plan li.no { color: var(--ink-2); }
  .plan li.no::before { content: "–"; color: var(--ink-2); }
  .badge { position: absolute; top: -12px; right: 24px; background: var(--coin); color: #3A2A00; font-size: 12px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
  .price-note { margin-top: 18px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }

  /* ---------- FAQ ---------- */
  .faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
  .faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 22px; }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { color: var(--ink-2); padding-bottom: 18px; max-width: 68ch; }

  /* ---------- Company & contact ---------- */
  .company { background: var(--mint-2); }
  .company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
  .about p + p { margin-top: 14px; }
  .about p { color: var(--ink-2); font-size: 17px; max-width: 58ch; }
  .card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
  .fact { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 15px; }
  .fact dt { color: var(--ink-2); }
  .fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
  .email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .email { font-size: 18px; font-weight: 700; color: var(--green); user-select: all; }
  .copy { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--mint); color: var(--ink);
    padding: 6px 12px; border-radius: 10px; cursor: pointer; }

  /* ---------- Final CTA + footer ---------- */
  .final { background: radial-gradient(100% 120% at 80% 0%, #2A9A62 0%, var(--green) 40%, var(--deep) 100%); color: var(--white); text-align: center; }
  .final .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 72px; }
  .final img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .final h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
  .final p { color: rgba(255,255,255,.82); font-size: 18px; }

  @media (max-width: 900px) {
    /* minmax(0, 1fr), not 1fr: a plain 1fr column grows to its widest child and can push the page sideways. */
    .hero .wrap, .row, .shared-grid, .watch-grid, .company-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .row.flip .row-media { order: 0; }
    .steps, .grid-more { grid-template-columns: 1fr 1fr; }
    .float { display: none; }
  }
  @media (max-width: 560px) {
    .section { padding-block: 56px; }
    .steps, .grid-more, .plans, .uses { grid-template-columns: 1fr; }
    .fact { grid-template-columns: 1fr; gap: 2px; }
  }
