/* Hills Studio — MOBILE & TABLET layout (< 960px).
   App-style: compact top bar, bottom tab bar, swipeable product deck, big tap targets. */

body { padding-bottom: calc(78px + var(--safe-b)); }

/* Top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: var(--safe-t);
  background: linear-gradient(180deg, rgba(7, 8, 12, .85), rgba(7, 8, 12, 0)); transition: background .3s; }
.topbar.is-scrolled { background: rgba(7, 8, 12, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px;
  padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right)); }
.topnav { display: none; }
.brand img { width: 32px; height: 32px; }
.brand__word { font-size: 12px; }

/* Bottom tab bar */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding: 6px;
  border-radius: 22px; border: 1px solid var(--line-2);
  background: rgba(16, 18, 28, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 16px; color: var(--dim); font-size: 11px; font-weight: 600; transition: color .2s, background .2s; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--text); background: rgba(255, 255, 255, .08); }
.tabbar a.is-active svg { color: var(--amber); }

/* Hero — full-screen, content anchored low for thumb reach */
.hero { min-height: 100svh; display: flex; align-items: center; }
.hero__sun { width: 150px; right: -36px; top: calc(78px + var(--safe-t)); opacity: .9; }
.hero__ridges { height: 30svh; opacity: .75; }
.hero__content { width: 100%; padding: calc(96px + var(--safe-t)) 20px 36px; display: flex; flex-direction: column; }
.eyebrow { align-self: flex-start; font-size: 12px; }
.hero__title { font-size: clamp(44px, 13vw, 76px); margin-top: 22px; }
.hero__lede { margin-top: 18px; font-size: 16.5px; max-width: 34ch; }
.hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
.hero__cta .btn { --h: 56px; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.stats dt { font-size: 22px; }
.stats dd { font-size: 12px; line-height: 1.35; }

/* Sections */
.section { padding: 64px 20px 8px; scroll-margin-top: 64px; }
.section__head { margin-bottom: 26px; }
.section__head h2 { font-size: clamp(34px, 9.5vw, 54px); }
.section__sub { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* Feature card — stacked, visual on top */
.feature { display: flex; flex-direction: column-reverse; }
.feature__body { padding: 24px 22px 24px; position: relative; }
.feature__visual { padding: 22px 22px 0; }
.mock__card { padding: 10px 12px; }
.mock__big { font-size: 19px; }
.checks { grid-template-columns: 1fr; }
.feature__foot { display: grid; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.feature__links { display: grid; grid-template-columns: 1fr; }
.feature__links .btn { --h: 54px; }

/* Product deck — horizontal swipe with snap */
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; margin: 14px -20px 0;
  padding: 4px 20px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cards::-webkit-scrollbar { display: none; }
.cards:focus-visible { outline-offset: -2px; }
.card { scroll-snap-align: start; min-height: 300px; padding: 22px; }
.cards .reveal.is-pending { opacity: 1; transform: none; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.dots i.is-on { width: 22px; background: var(--text); }

/* Apps */
.section--apps { padding-top: 48px; }
.apps { padding: 30px 22px; display: grid; gap: 26px; }
.apps__note { margin-top: 18px !important; }

/* Studio */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pillar { padding: 20px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.pillar h3 { font-size: 16.5px; }
.pillar p { font-size: 14px; }
.stack { margin-top: 18px; }

/* Timeline — vertical line */
.timeline { padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--amber), var(--violet) 70%, transparent); }
.timeline li { gap: 6px; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); }

/* Contact */
.section--contact { padding-bottom: 40px; }
.contact { padding: 34px 22px; text-align: left; }
.contact h2 { font-size: clamp(32px, 9vw, 50px); }
.contact__actions { display: grid; grid-template-columns: 1fr; margin-top: 26px; }
.contact__actions .btn { font-size: 15px; }
.contact__where { margin-top: 22px; }

/* Footer */
.footer__inner { padding: 30px 20px 26px; display: grid; gap: 18px; }
.footer__nav { gap: 6px 22px; }
.footer__nav a { padding: 8px 0; }

/* Tablet refinements (600–959px) */
@media (min-width: 600px) {
  .hero__content { padding-left: 40px; padding-right: 40px; padding-bottom: 56px; max-width: 760px; }
  .hero__cta { grid-template-columns: auto auto; justify-content: start; }
  .hero__cta .btn { padding: 0 30px; }
  .section { padding-left: 40px; padding-right: 40px; }
  .cards { grid-auto-columns: 46%; margin-inline: -40px; padding-inline: 40px; scroll-padding-inline: 40px; }
  .feature__visual { padding: 30px 30px 0; }
  .feature__body { padding: 30px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .feature__links, .contact__actions { grid-template-columns: auto auto; justify-content: start; }
  .apps { padding: 40px; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .contact { padding: 48px 40px; }
  .footer__inner { padding-inline: 40px; grid-template-columns: auto 1fr; align-items: center; }
  .footer__nav { justify-content: flex-end; }
  .footer__copy { grid-column: 1 / -1; }
  .tabbar { left: 50%; right: auto; width: 420px; transform: translateX(-50%); }
  .hero { align-items: flex-start; }
  .hero__content { padding-top: calc(130px + var(--safe-t)); }
  .hero__sun { width: 170px; right: 10%; top: auto; bottom: 9svh; }
  .hero__ridges { height: 34svh; }
}

/* Very small phones (≤ 360px, e.g. older Androids, iPhone SE 1st gen) */
@media (max-width: 360px) {
  .hero__content { padding-left: 16px; padding-right: 16px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .cards { margin-inline: -16px; padding-inline: 16px; grid-auto-columns: 88%; }
  .pillars { grid-template-columns: 1fr; }
  .stats dt { font-size: 19px; }
  .brand__word span { display: none; }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__content { padding-top: 90px; }
  .hero__cta { grid-template-columns: auto auto; justify-content: start; }
}
