/*
 * Phone layer for gethia.com (loaded after site.css, applies below 768 px).
 * Plan: docs/phone-plan.md. Every section and its content stay; this file only changes how
 * they sit on a phone: one column, 20 px margins, a calmer type scale, full-width buttons,
 * readable mock-ups and photos framed for a tall screen.
 */
@media (max-width: 767px) {

  /* ---------- Base: margins, rhythm, type ---------- */
  :root { --g: 20px; }
  .sec { padding: 72px 0; }
  .sec-sm { padding: 48px 0; }
  .guides::before, .guides::after { display: none; }

  .head { margin-bottom: 32px; }
  .head.center:not(.keep-center) { text-align: left; margin-left: 0; margin-right: 0; }
  .head .label { margin-bottom: 16px; }
  .head h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.03em; }
  .head p { font-size: 15.5px; line-height: 1.55; margin-top: 12px; }
  .dark .head p { margin: 12px 0 0; }
  .label { font-size: 12.5px; }
  p { overflow-wrap: anywhere; }

  .btn { height: 50px; font-size: 15.5px; border-radius: 12px; }
  .nav .btn { height: 44px; padding: 0 16px; font-size: 14.5px; }

  /* ---------- 1. Hero ---------- */
  .hero { padding-top: 104px; }
  .hero h1 { font-size: 38px; line-height: 1.06; letter-spacing: -.035em; margin: 18px 0 16px; }
  .hero .lede { font-size: 15.5px; line-height: 1.55; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .hero-ctas .btn { width: 100%; }
  .hero-note { flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; }
  .hero-media { margin-top: 40px; gap: 12px; }
  .hero-media .photo { aspect-ratio: 4 / 5; border-radius: 20px; }
  .hero-media .photo img { object-position: 50% 30%; }
  .hero-media .photo .glass { left: 12px; right: 12px; bottom: 12px; padding: 16px; }

  /* ---------- 2. Ten jobs: stacked, compact ---------- */
  .pcards { display: grid; overflow: visible; margin: 0; padding: 0; gap: 12px; }
  .pcards > * { flex: none; }
  .pcard { padding: 20px; min-height: 0; }
  .pcard .big { font-size: 52px; margin: 14px 0 10px; }

  /* ---------- 3. Statement ---------- */
  .statement { font-size: 25px; line-height: 1.3; text-align: left; }

  /* ---------- 4. Why Hia: two visuals, one column ---------- */
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .duo-c .tp { aspect-ratio: auto; padding: 16px; min-height: 0; }
  .duo-c h3 { font-size: 21px; height: auto; margin-top: 18px; }
  .duo-c p { font-size: 15px; }

  /* ---------- 5. How Hia works: every feature, stacked (visual, then text) ---------- */
  .story-steps { display: grid; gap: 56px; overflow: visible; margin: 0; padding: 0; }
  .ss { flex: none; opacity: 1; }
  .ss .fp { margin-bottom: 20px; }
  .ss .fp .tp { min-height: 0; padding: 16px; border-radius: 18px; }
  .ss h3 { font-size: 23px; line-height: 1.15; margin: 14px 0 10px; }
  .ss > p { font-size: 15px; margin-bottom: 14px; }
  .ss .checks { display: grid; gap: 8px; }
  .ss .checks li { font-size: 14px; }
  .story-dots { display: none; }
  .more { margin-top: 64px; }
  .more h3 { text-align: left; font-size: 21px; }


  /* Mind map: drawn a little smaller so less of it is cut off; still swipes sideways */
  .mm-scroll .mm-svg { width: 440px; min-width: 440px; max-width: none; height: auto; }

  /* Everything else: compact wrapping chips instead of 16 boxes */
  .more-grid { display: flex; flex-wrap: wrap; gap: 8px; }
  .mi { padding: 8px 12px 8px 8px; border-radius: 99px; font-size: 13.5px; gap: 8px; }
  .mi span { width: 26px; height: 26px; border-radius: 99px; }
  .mi span svg.i { width: 14px; height: 14px; }

  /* Privacy cards: text sits under its heading, no stretched gaps */
  .bento .bc { justify-content: flex-start; }
  .bento .bc p { margin-top: 8px; padding-top: 0; }

  /* Portrait phone photos (picture.pp): frame them from the centre-top */
  .jpanel img { object-position: 50% 25% !important; }
  .band-r img { object-position: 50% 25% !important; }

  /* Mock-ups: no text below 12 px, and nothing wider than the screen */
  .ss, .ss .fp, .ss .tp { min-width: 0; max-width: 100%; }
  .ss .tp { overflow: hidden; }
  .ss table { width: 100%; table-layout: fixed; }
  .ss .tp .tag, .ss .tp small, .ss .tp h6, .ss .tp .sub, .ss .tp em, .ss .tp th,
  .ss .tp .d, .ss .tp .av, .ss .tp .vc-pill, .ss .tp b, .ss .tp .on { font-size: 12px; }
  .ss .tp .src { font-size: 11px; }
  .hero .glass span, .hero .side-card span { font-size: 12px; }
  .hub .n { font-size: 12px; }
  #profile .tag, #profile small { font-size: 12px; }

  /* ---------- 6. Integrations: a smaller orbit with room between tiles, tighter rows ---------- */
  .intg { gap: 28px; }
  .orbit { max-width: 300px; }
  .oring.r2 { inset: 6%; }
  .oring.r1 { inset: 23%; }
  .ht { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 12px; }
  .ht img { width: 20px; height: 20px; }
  .o-core { width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 19px; }
  .o-core img { width: 52px; height: 52px; border-radius: 14px; }
  .jobs-l { gap: 8px; }
  .jl { padding: 14px; gap: 12px; }
  .jl b { font-size: 15px; }
  .jl p, .jl span:not(.ig-ic) { font-size: 13.5px; }
  .ig-l { margin-top: 10px; gap: 8px; }
  .ig-l img.lg { width: 19px; height: 19px; }

  /* ---------- 7. Ask Hia: all routines back ---------- */
  .rp-rows .rrow:nth-child(2), .rp-rows .rrow:nth-child(5) { display: flex; }

  /* ---------- 8. Pricing, FAQ, form, footer ---------- */
  .plan { padding: 22px; }
  .plan .btn { width: 100%; align-self: stretch; }
  .faq summary { font-size: 15.5px; padding-top: 18px; padding-bottom: 18px; }
  form.f .two { grid-template-columns: 1fr; }
  form.f input, form.f select { height: 48px; font-size: 16px; }
  form.f button[type=submit] { width: 100%; }
  .fc-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}
