:root {
  color-scheme: light;
  --blue: #087ff5;
  --blue-dark: #0062c8;
  --blue-soft: #eaf4ff;
  --red: #ff3b45;
  --red-soft: #fff0f1;
  --green: #20b85a;
  --yellow: #f7c400;
  --ink: #101216;
  --muted: #626975;
  --subtle: #8b919b;
  --line: #dfe3e8;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-dark);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(223, 227, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.section-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a,
.site-footer nav a {
  color: #30343b;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--blue);
}

.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav .nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
}

.hero {
  min-height: calc(100svh - 118px);
  overflow: hidden;
  background-color: #dcebf6;
  background-image: url("assets/taiwan-expressway.jpg");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: calc(100svh - 118px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 7vw;
  padding: 70px 0 28px;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
  padding: 34px 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  color: #07090d;
  font-size: clamp(50px, 7vw, 94px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p:first-of-type {
  max-width: 590px;
  margin: 28px 0 0;
  color: #20242a;
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1.55;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
}

.button svg,
.text-link svg {
  width: 19px;
  height: 19px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(8, 127, 245, 0.23);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.availability {
  margin: 16px 0 0;
  color: #252a31;
  font-size: 14px;
  font-weight: 600;
}

.product-shot {
  justify-self: end;
  align-self: end;
  width: min(100%, 350px);
  transform: translateY(48px);
}

.phone-shell {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 3px solid #15181d;
  border-radius: 50px;
  background: #0a0b0d;
  box-shadow: 0 30px 70px rgba(15, 23, 34, 0.32);
}

.phone-shell img {
  width: 100%;
  border-radius: 38px;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 34%;
  height: 25px;
  border-radius: 18px;
  background: #050505;
  transform: translateX(-50%);
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 480px;
}

.section-heading-wide {
  max-width: 680px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.section h2,
.legal-hero h1,
.support-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.trust-lead,
.support-hero p,
.legal-hero p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-overview {
  position: relative;
  background: var(--surface);
}

.overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.95fr;
  align-items: center;
  gap: 62px;
}

.feature-list {
  display: grid;
  gap: 30px;
}

.feature-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: start;
  gap: 18px;
}

.feature-row h3,
.control-item h3,
.trust-points h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.feature-row p,
.control-item p,
.trust-points p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.feature-icon-red {
  color: var(--red);
  background: var(--red-soft);
}

.threshold-icon {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}

.threshold-icon b {
  display: grid;
  place-items: center;
  color: #3d3420;
  background: #ffd530;
}

.threshold-icon b:last-child {
  color: #fff;
  background: var(--red);
}

.app-figure {
  margin: 0;
}

.app-figure img {
  width: min(100%, 340px);
  max-height: 620px;
  margin: 0 auto;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(27, 38, 53, 0.12);
}

.app-figure figcaption {
  max-width: 340px;
  margin: 15px auto 0;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}

.control-section {
  background: var(--surface-alt);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.control-item {
  min-height: 238px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}

.control-item:first-child {
  border-left: 1px solid var(--line);
}

.mode-icons,
.appearance-swatches {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 23px;
  color: var(--blue);
}

.mode-icons svg {
  width: 31px;
  height: 31px;
}

.mode-icons svg:nth-child(2) {
  color: #737a84;
}

.appearance-swatches span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.appearance-swatches svg {
  width: 21px;
}

.swatch-light {
  color: #6b5500;
  background: #ffd84d;
}

.swatch-dark {
  color: #fff;
  background: #22262d;
}

.trust-section {
  padding-bottom: 90px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 90px;
}

.trust-copy {
  align-self: center;
}

.trust-copy .text-link {
  margin-top: 22px;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.trust-points article {
  min-height: 215px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-points svg {
  width: 30px;
  height: 30px;
  margin-bottom: 28px;
  color: var(--blue);
}

.trust-points article:nth-child(1) svg {
  color: var(--green);
}

.trust-points article:nth-child(4) svg {
  color: var(--red);
}

.final-cta {
  padding: 56px 0;
  border-top: 1px solid #b8d9fa;
  background: var(--blue-soft);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.final-cta h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.final-cta p {
  margin: 10px 0 0;
  color: #4c5f73;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand-small {
  font-size: 15px;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
}

.legal-main,
.support-main {
  width: min(calc(100% - 40px), 1050px);
  margin: 0 auto;
  padding: 82px 0 110px;
}

.legal-hero,
.support-hero {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1,
.support-hero h1 {
  font-size: clamp(44px, 6vw, 76px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 86px;
  padding-top: 64px;
}

.legal-summary {
  align-self: start;
  position: sticky;
  top: 108px;
  padding-left: 18px;
  border-left: 3px solid var(--blue);
}

.legal-summary h2 {
  margin: 0;
  font-size: 20px;
}

.legal-summary p {
  color: var(--muted);
}

.legal-content {
  max-width: 700px;
}

.legal-content section {
  padding: 0 0 40px;
}

.legal-content h2,
.support-section h2,
.feedback-band h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.legal-content p,
.legal-content li {
  color: #454b54;
}

.legal-content ul {
  padding-left: 22px;
}

.support-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.support-hero > div {
  max-width: 680px;
}

.support-section {
  padding: 64px 0;
}

.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 23px 46px 23px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 19px;
  right: 8px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 820px;
  margin: -4px 0 24px;
  color: var(--muted);
}

.feedback-band {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 70px;
  padding: 48px;
  border: 1px solid #b8d9fa;
  border-radius: 8px;
  background: var(--blue-soft);
}

.feedback-band p,
.feedback-band li {
  color: #465a6f;
}

.feedback-band ol {
  margin: 0;
  padding-left: 22px;
}

.support-notice {
  margin: 40px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
}

@media (max-width: 960px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-figure {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-item:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .control-item:nth-child(3) {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .control-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .trust-grid {
    gap: 50px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .section-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    display: none;
  }

  .nav .nav-cta {
    display: inline-flex;
  }

  .hero {
    height: calc(100svh - 144px);
    min-height: 560px;
    max-height: 720px;
    background-position: 58% center;
  }

  .hero-inner {
    position: relative;
    min-height: 100%;
    height: 100%;
    display: block;
    padding: 48px 0 0;
  }

  .hero-copy {
    align-self: start;
    padding: 24px 0 0;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-copy > p:first-of-type {
    max-width: 430px;
    font-size: 20px;
  }

  .actions {
    gap: 18px;
  }

  .product-shot {
    position: absolute;
    bottom: -137px;
    left: 50%;
    width: min(58vw, 225px);
    transform: translateX(-50%);
  }

  .section {
    padding: 82px 0;
  }

  .feature-overview {
    padding-top: 28px;
  }

  .overview-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .app-figure {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-list {
    order: 3;
  }

  .control-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .control-item,
  .control-item:first-child,
  .control-item:nth-child(2),
  .control-item:nth-child(3),
  .control-item:nth-child(4) {
    min-height: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .control-item:first-child {
    border-top: 1px solid var(--line);
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .trust-points article {
    min-height: 0;
  }

  .final-cta-inner,
  .support-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    min-height: 180px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
    padding: 30px 0;
  }

  .site-footer nav {
    gap: 20px;
  }

  .site-footer p {
    justify-self: start;
  }

  .legal-main,
  .support-main {
    width: min(calc(100% - 32px), 1050px);
    padding: 58px 0 82px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 44px;
  }

  .legal-summary {
    position: static;
  }

  .feedback-band {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 24px;
  }
}

@media (max-width: 420px) {
  .actions {
    gap: 14px;
  }

  .product-shot {
    width: min(57vw, 218px);
  }

  .phone-shell {
    border-radius: 42px;
  }

  .phone-shell img {
    border-radius: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
