/* Ultimate App Boracay — landing page (www.ultimate-app.site) */
:root {
  --ink: #000;            /* brand symbol black */
  --text: #1b2430;
  --muted: #56616e;
  --line: #e3e7ec;
  --sea: #00a99c;         /* app accent */
  --palm: #1fb25a;        /* logo gradient start */
  --lagoon: #1769e0;      /* logo gradient end */
  --sand: #f6f1e7;
  --white: #fff;
  --grad: linear-gradient(100deg, var(--palm), var(--sea) 45%, var(--lagoon));
  --display: "Sora", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1160px;
  --r-lg: 24px;
  --r-md: 14px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(23, 105, 224, .55); }
.btn-grad:hover { box-shadow: 0 14px 28px -10px rgba(23, 105, 224, .7); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #22303d; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 600; color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--sea); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font: 700 17px/1.05 var(--display); letter-spacing: -0.01em; }
.brand small { display: block; font: 500 13px/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: #f1f4f7; }
.menu { display: none; }

@media (max-width: 899px) {
  .top-cta { margin-left: auto; }
  .menu { display: grid; place-items: center; gap: 5px; width: 44px; height: 44px; border: 0; background: #f1f4f7; border-radius: 12px; cursor: pointer; padding: 0; align-content: center; }
  .menu span:not(.sr) { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .25); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) { .top-cta { padding: 0 14px; font-size: 14px; } .brand small { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f2fbf9 55%, #e4f5fb 100%); }
.hero-in { display: grid; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 0; }
.launch { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.launch-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 4px rgba(0, 169, 156, .18); }
.launch.live .launch-dot { background: var(--palm); box-shadow: 0 0 0 4px rgba(31, 178, 90, .2); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 7.4vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; max-width: 13ch; }
.lead { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }
.hero-phone { margin: 0; justify-self: center; width: min(78vw, 330px); position: relative; z-index: 1; }
.hero-phone img { width: 100%; filter: drop-shadow(0 30px 40px rgba(10, 40, 70, .28)); }
.hero-sea { position: relative; height: 70px; margin-top: -54px; }
.hero-sea svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--white); }

@media (max-width: 559px) {
  .cta .btn { width: 100%; }
  .hero-phone { width: min(72vw, 280px); }
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 48px; padding-top: 72px; }
  .hero-phone { width: 340px; margin-bottom: -10px; }
  .hero-sea { height: 110px; margin-top: -96px; }
}

/* ---------- Section heads ---------- */
section { scroll-margin-top: 76px; }
.sec-head { max-width: 640px; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }

/* ---------- Services route (the signature element) ---------- */
.services { padding: 56px 0 72px; }
.route { position: relative; margin-top: 40px; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-line path { fill: none; stroke: url(#routeGrad); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.stop { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; align-content: start; }
.stop img { width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 6px #fff, 0 8px 18px -8px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.stop h3 { margin-top: 4px; }
.stop p { margin-top: 4px; color: var(--muted); font-size: 16px; max-width: 34em; }

@media (min-width: 900px) {
  /* Two rows of five that snake: left to right, then right to left — like a ride across the island. */
  .stops { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 64px 28px; }
  .stop { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .stop:nth-child(6) { grid-column: 5; grid-row: 2; }
  .stop:nth-child(7) { grid-column: 4; grid-row: 2; }
  .stop:nth-child(8) { grid-column: 3; grid-row: 2; }
  .stop:nth-child(9) { grid-column: 2; grid-row: 2; }
  .stop:nth-child(10) { grid-column: 1; grid-row: 2; }
  .stop p { font-size: 15px; }
}

/* ---------- Pay ---------- */
.pay { background: var(--sand); padding: 72px 0; }
.pay-in { display: grid; gap: 44px; align-items: center; }
.pay-copy > p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 32em; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; font: 700 clamp(22px, 3.4vw, 32px)/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.rate i { font-style: normal; color: var(--sea); }
.pay-list { margin: 30px 0 0; display: grid; gap: 18px; }
.pay-list div { padding-left: 18px; border-left: 3px solid var(--sea); }
.pay-list dt { font-weight: 700; color: var(--ink); }
.pay-list dd { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.pay-card { margin: 0; justify-self: center; }
.card { width: min(84vw, 320px); border-radius: 28px; padding: 26px; color: #fff; background: linear-gradient(150deg, #0f5fd6, #1769e0 40%, #00a99c); box-shadow: 0 30px 50px -24px rgba(23, 105, 224, .6); display: grid; gap: 4px; transform: rotate(-3deg); }
.card img { width: 110px; height: auto; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 18px; }
.card-bal { font: 700 34px/1.1 var(--display); letter-spacing: -0.02em; }
.card-sub { font-size: 14px; opacity: .85; }
.card-tx { list-style: none; margin: 22px 0 0; padding: 6px 16px; background: #fff; border-radius: 18px; color: var(--text); }
.card-tx li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.card-tx li:last-child { border-bottom: 0; }
.card-tx b { color: var(--ink); white-space: nowrap; }
.card-tx b.in { color: #0a8f52; }
.card-pay { margin-top: 14px; text-align: center; font-weight: 700; }
@media (min-width: 900px) { .pay-in { grid-template-columns: 1.1fr .9fr; } .pay { padding: 96px 0; } }

/* ---------- Install ---------- */
.install { padding: 72px 0; }
.tabs { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; background: #eef2f6; border-radius: 999px; }
.tabs button { border: 0; background: transparent; font: 600 15px/1 var(--body); color: var(--muted); padding: 12px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 72px; border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 16px/1 var(--display); }
.steps b { display: block; color: var(--ink); font-size: 17px; }
.steps span { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; }
.steps em { font-style: normal; font-weight: 600; color: var(--ink); }
.install-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.install-qr { display: none; margin: 0; align-items: center; gap: 16px; max-width: 360px; }
.install-qr img { width: 112px; height: 112px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.install-qr figcaption { font-size: 15px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .install-qr { display: flex; } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { padding: 64px 22px 22px; } .steps li::before { left: 22px; top: 20px; } }
@media (max-width: 559px) { .install-foot .btn { width: 100%; } }

/* ---------- Drive, sell, refer ---------- */
.work { padding: 72px 0; background: linear-gradient(180deg, #fff, #f3f8fb); }
.roles { display: grid; gap: 18px; margin-top: 36px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.role img { width: 64px; height: 64px; border-radius: 16px; }
.role .role-icon-light { border: 1px solid var(--line); padding: 6px; background: #fff; }
.role h3 { margin-top: 18px; }
.role p { margin-top: 8px; color: var(--muted); font-size: 16px; flex: 1; }
.role-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 559px) { .role-links .btn { width: 100%; } }

/* ---------- Partners ---------- */
.partners { padding: 56px 0 24px; }
.partners h2 { font-size: 22px; }
.logos { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 0; margin: 22px 0 0; align-items: center; }
.logos img { width: 88px; height: 88px; object-fit: contain; border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 8px; }

/* ---------- Coming next ---------- */
.soon { padding: 40px 0 72px; }
.soon h2 { font-size: 22px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: #f1f4f7; font-weight: 600; font-size: 15px; color: var(--ink); }
.chips img { width: 28px; height: 28px; border-radius: 8px; }

/* ---------- FAQ ---------- */
.faq { padding: 72px 0; background: var(--sand); }
.faq-in { display: grid; gap: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-md); border: 1px solid #ebe4d6; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; color: var(--ink); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 16px; max-width: 46em; }
@media (min-width: 900px) { .faq-in { grid-template-columns: .7fr 1.3fr; align-items: start; } }

/* ---------- Final call ---------- */
.final { background: var(--ink) url("../img/beach.jpg") center 60% / cover no-repeat; position: relative; color: #fff; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 20, 40, .55), rgba(0, 20, 40, .78)); }
.final-in { position: relative; padding-top: 96px; padding-bottom: 96px; text-align: center; display: grid; justify-items: center; }
.final h2 { color: #fff; font-size: clamp(32px, 5.6vw, 56px); max-width: 14ch; }
.final p { margin-top: 14px; font-size: 18px; opacity: .92; }
.final .cta { justify-content: center; }
@media (max-width: 559px) { .final .cta { width: 100%; } }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot-in { display: grid; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
