/* ==========================================================================
   Hawaii Guide App Page - /app
   Note: Site base is html { font-size: 62.5% } so px are used directly.
   ========================================================================== */

.hg-app {
  --hg-app-ink: #101419;
  --hg-app-muted: #667085;
  --hg-app-line: #e6e9ee;
  --hg-app-green: #0a7c42;
  --hg-app-teal: #177f8a;
  --hg-app-blue: #1866b4;
  --hg-app-coral: #df7656;
  --hg-app-gold: #c78b2a;
  --hg-app-sky: #d8f1ff;
  --hg-app-paper: #fbfaf7;
  background: #fff;
  color: var(--hg-app-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.hg-app * {
  box-sizing: border-box;
}

.hg-app a {
  color: inherit;
}

@media only screen and (max-width: 1023px) {
  body.hg-app-page.cover-page .goUS-header,
  body.hg-app-page.cover-page .goUS-header.is-sticky {
    background: rgba(4, 30, 22, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  }

  body.hg-app-page.cover-page .goUS-header .nav-inline-block span,
  body.hg-app-page.cover-page .goUS-header.is-sticky .nav-inline-block span,
  body.hg-app-page.cover-page .goUS-header.is-sticky .nav-inline-block.nav-inline-islands span,
  body.hg-app-page.cover-page .goUS-header.is-sticky .nav-inline-block.search-icon span,
  body.hg-app-page.cover-page .goUS-header.is-sticky .nav-inline-block.menu-icon span {
    color: #fff !important;
    text-shadow: none;
  }

  body.hg-app-page.cover-page .goUS-header .goUS-nav-item.chat-sm .chat-icon span i {
    color: #fff;
  }
}

.hg-app-hero {
  position: relative;
  min-height: 720px;
  background:
    linear-gradient(135deg, rgba(4, 30, 22, .96), rgba(12, 16, 23, .99) 56%, rgba(37, 35, 30, .98)),
    linear-gradient(90deg, rgba(223, 118, 86, .2), transparent 34%, rgba(24, 102, 180, .16));
  color: #fff;
  padding: 132px 18px 52px;
}

.hg-app-hero-inner {
  position: relative;
  width: min(1160px, 100%);
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  grid-template-areas:
    "product preview"
    "metrics preview";
  gap: 34px 48px;
  align-items: center;
}

.hg-app-product {
  grid-area: product;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  max-width: 660px;
}

.hg-app-icon {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.hg-app-kicker {
  margin: 0 0 10px;
  color: #58d09a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hg-app-identity h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 8vw, 86px);
  line-height: .94;
  letter-spacing: 0;
}

.hg-app-subtitle {
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 24px;
  line-height: 1.35;
}

.hg-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hg-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hg-app-btn:hover,
.hg-app-btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.hg-app-btn-primary {
  background: #fff;
  color: #0f3d2b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.hg-app-btn-secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
}

.hg-app-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 0;
  max-width: 720px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.hg-app-metrics div {
  min-height: 86px;
  padding: 15px 17px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.hg-app-metrics div:last-child {
  border-right: 0;
}

.hg-app-metrics strong,
.hg-app-metrics span {
  display: block;
  text-align: center;
}

.hg-app-metrics strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.hg-app-metrics span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
}

.hg-app-hero-preview {
  grid-area: preview;
  display: flex;
  justify-content: center;
  align-self: stretch;
  align-items: center;
}

.hg-app-phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 18.8;
  border: 12px solid #17191d;
  border-radius: 46px;
  background: #f7f8f6;
  color: #16181c;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, .48);
}

.hg-app-phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 72px;
  height: 18px;
  transform: translateX(-50%);
  background: #17191d;
  border-radius: 999px;
  z-index: 4;
}

/* Hero phone matches the real screenshot's 750x1334 aspect (≈9/16) so the
   capture fills the frame with zero crop — the generic 9/18.8 frame ratio
   would shave the edges off the stats strip. */
.hg-app-phone-hero {
  aspect-ratio: 9 / 16;
}

/* Real screenshot fills the hero phone frame edge-to-edge. border-radius:0
   defeats the global img{border-radius:10px} rule — the frame's own
   overflow:hidden + radius clips the corners. */
.hg-app-phone-hero .hg-app-phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  display: block;
}

.hg-phone-status {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 5px;
  font-size: 12px;
  font-weight: 800;
}

.hg-phone-status span:last-child {
  width: 48px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f2933 38%, transparent 38% 52%, #1f2933 52% 68%, transparent 68% 76%, #1f2933 76%);
}

.hg-phone-topbar,
.hg-screen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
}

.hg-phone-topbar i,
.hg-screen-bar i {
  margin-left: auto;
  color: var(--hg-app-green);
}

.hg-phone-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #0a7c42;
  color: #fff;
  font-size: 12px;
}

.hg-phone-search {
  margin: 12px 18px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #ebeee9;
  color: #2d3137;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.hg-phone-map {
  position: relative;
  height: 190px;
  margin: 0 18px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 127, 138, .45), rgba(105, 190, 160, .25)),
    linear-gradient(32deg, transparent 0 28%, rgba(255, 255, 255, .45) 28% 31%, transparent 31% 100%),
    linear-gradient(128deg, transparent 0 45%, rgba(23, 127, 138, .3) 45% 49%, transparent 49% 100%),
    #bfe9dc;
}

.hg-phone-map::after {
  content: "";
  position: absolute;
  inset: 42px 16px 24px 78px;
  border-radius: 46% 54% 46% 54%;
  background: rgba(255, 255, 255, .42);
  transform: rotate(-12deg);
}

.hg-map-pin {
  position: absolute;
  z-index: 2;
  width: 27px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.hg-map-pin::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-app-coral);
}

.hg-map-pin-one { left: 34px; top: 54px; }
.hg-map-pin-two { right: 46px; top: 68px; }
.hg-map-pin-three { left: 118px; bottom: 38px; }

.hg-phone-card {
  position: relative;
  z-index: 3;
  margin: -34px 34px 0;
  padding: 15px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(14, 24, 32, .16);
}

.hg-phone-card strong,
.hg-phone-card p,
.hg-phone-pill {
  display: block;
}

.hg-phone-pill {
  width: max-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 124, 66, .1);
  color: #0a7c42;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hg-phone-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.hg-phone-card p {
  margin: 6px 0 0;
  color: #5d6673;
  font-size: 13px;
  line-height: 1.35;
}

.hg-phone-tabs {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
}

.hg-phone-tabs span {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 18px;
  color: #6a7280;
  font-size: 16px;
}

.hg-phone-tabs .is-active {
  background: #1b4332;
  color: #fff;
}

.hg-app-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 0;
}

.hg-app-intro {
  padding-top: 50px;
}

.hg-app-section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.hg-app-section-head-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.hg-app-section-head h2,
.hg-app-install-panel h2 {
  margin: 0;
  color: var(--hg-app-ink);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hg-app-section-head p:not(.hg-app-kicker),
.hg-app-install-panel p {
  margin: 14px auto 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.55;
}

.hg-app-gallery-controls {
  display: flex;
  gap: 10px;
}

.hg-app-gallery-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hg-app-gallery-status {
  margin: 0;
  color: var(--hg-app-muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.hg-app-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hg-app-line);
  border-radius: 50%;
  background: #fff;
  color: #111820;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 20, 25, .08);
}

.hg-app-icon-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hg-app-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 370px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.hg-app-shot {
  min-height: 620px;
  border-radius: 34px;
  padding: 36px 20px 18px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
  overflow: hidden;
}

.hg-app-shot h3 {
  max-width: 290px;
  min-height: 78px;
  margin: 0 auto 22px;
  color: inherit !important;
  text-align: center;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hg-app-shot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  min-height: 42px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #111;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.hg-app-shot-coral { background: #df7656; }
.hg-app-shot-blue { background: #dfeeff; }
.hg-app-shot-green { background: #dbeee4; }
.hg-app-shot-dark { background: #151719; color: #fff; }
.hg-app-shot-sky { background: #d8f1ff; }
.hg-app-shot-gold { background: #f3d8a6; }

.hg-app-shot-frame {
  width: min(100%, 282px);
  aspect-ratio: 9 / 17;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .2);
}

.hg-app-shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.hg-app-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hg-app-cap {
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--hg-app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hg-app-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hg-app-cap:hover,
.hg-app-cap:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(16, 20, 25, .09);
  text-decoration: none;
}

.hg-app-cap i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #eef7f1;
  color: var(--hg-app-green);
  font-size: 20px;
}

.hg-app-cap:nth-child(2) i { background: #fff4e8; color: var(--hg-app-coral); }
.hg-app-cap:nth-child(3) i { background: #eaf4ff; color: var(--hg-app-blue); }
.hg-app-cap:nth-child(4) i { background: #fff7df; color: var(--hg-app-gold); }
.hg-app-cap:nth-child(5) i { background: #eaf9fb; color: var(--hg-app-teal); }
.hg-app-cap:nth-child(6) i { background: #f0eefb; color: #6255a5; }

.hg-app-cap strong,
.hg-app-cap span {
  display: block;
}

.hg-app-cap strong {
  font-size: 21px;
  line-height: 1.2;
}

.hg-app-cap span {
  margin-top: 10px;
  color: #53606f;
  font-size: 15px;
  line-height: 1.45;
}

.hg-app-install-panel {
  width: min(1060px, calc(100% - 32px));
  margin: 66px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: #101419;
  color: #fff;
}

.hg-app-install-panel h2,
.hg-app-install-panel p {
  color: #fff;
}

.hg-app-install-panel p {
  max-width: 740px;
  margin-left: 0;
  color: rgba(255, 255, 255, .72);
}

.hg-app-install-cue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  color: #fff;
}

.hg-app-install-cue[hidden] {
  display: none;
}

.hg-app-install-cue > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.hg-app-install-cue > .fa {
  color: rgba(255, 255, 255, .46);
  font-size: 12px;
}

.hg-ios-share-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: linear-gradient(currentColor, currentColor) 50% 2px / 2px 13px no-repeat;
}

.hg-ios-share-icon::before,
.hg-ios-share-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.hg-ios-share-icon::before {
  top: 1px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.hg-ios-share-icon::after {
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.hg-app-related {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.hg-app-modal-open {
  overflow: hidden;
}

.hg-app-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 10, 18, .72);
}

.hg-app-modal-panel {
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  color: var(--hg-app-ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
}

.hg-app-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--hg-app-line);
}

.hg-app-modal-head img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.hg-app-modal-head strong,
.hg-app-modal-head span {
  display: block;
}

.hg-app-modal-head strong {
  font-size: 22px;
}

.hg-app-modal-head span {
  margin-top: 4px;
  color: var(--hg-app-muted);
  font-size: 14px;
}

.hg-app-modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #1f2937;
  cursor: pointer;
  font-size: 20px;
}

.hg-app-modal-body {
  padding: 22px;
}

.hg-app-modal-body h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.hg-app-modal-cue {
  margin: 0 0 16px;
  color: var(--hg-app-green);
}

.hg-app-modal-cue > span {
  border-color: #d9e8df;
  background: #f2f8f4;
  color: #174c33;
}

.hg-app-modal-cue > .fa {
  color: #97a3b0;
}

.hg-app-modal-body ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: app-steps;
}

.hg-app-modal-body li {
  position: relative;
  min-height: 52px;
  padding: 14px 14px 14px 54px;
  border: 1px solid var(--hg-app-line);
  border-radius: 8px;
  color: #3f4856;
  font-size: 16px;
  line-height: 1.45;
  counter-increment: app-steps;
}

.hg-app-modal-body li::before {
  content: counter(app-steps);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hg-app-green);
  color: #fff;
  font-weight: 900;
}

@media (max-width: 960px) {
  .hg-app-hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hg-app-hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "product"
      "metrics"
      "preview";
    min-height: 0;
  }

  .hg-app-product {
    margin: 0 auto;
  }

  .hg-app-metrics {
    margin: 0 auto;
    width: 100%;
  }

  .hg-app-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hg-app-hero {
    padding: 76px 16px 38px;
  }

  .hg-app-product {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
  }

  .hg-app-hero-inner {
    gap: 26px;
  }

  .hg-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .hg-app-subtitle {
    font-size: 19px;
  }

  .hg-app-actions {
    margin-top: 20px;
  }

  .hg-app-btn {
    width: 100%;
  }

  .hg-app-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, .38);
    box-shadow: none;
  }

  .hg-app-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hg-app-metrics div:nth-child(2) {
    border-right: 0;
  }

  .hg-app-metrics div:nth-child(1),
  .hg-app-metrics div:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }

  .hg-app-phone {
    width: min(100%, 248px);
  }

  .hg-app-section {
    width: min(100% - 24px, 1160px);
    padding-top: 46px;
  }

  .hg-app-section-head-row {
    align-items: start;
    flex-direction: column;
  }

  .hg-app-gallery-tools {
    align-self: stretch;
  }

  .hg-app-gallery-controls {
    display: none;
  }

  .hg-app-gallery {
    grid-auto-columns: minmax(286px, 86vw);
  }

  .hg-app-shot {
    min-height: 590px;
    border-radius: 28px;
  }

  .hg-app-shot h3 {
    font-size: 27px;
  }

  .hg-app-cap-grid,
  .hg-app-install-panel {
    grid-template-columns: 1fr;
  }

  .hg-app-install-panel {
    width: min(100% - 24px, 1060px);
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-app-btn,
  .hg-app-cap,
  .hg-app-icon-btn {
    transition: none;
  }
}
