/* ===========================================================
   DotDotGrow · M1 landing — "sticker" playful direction
   Built from the Figma M1 app visual language:
   gold headers, ink outlines, pastel data-cards, mascots.
   =========================================================== */

:root {
  --ink: #231916;
  --ink-soft: #5b514c;

  --cream: #fff6e2;
  --cream-2: #fdeecb;
  --paper: #ffffff;

  --gold: #ffb90a;
  --gold-deep: #f0a500;
  --yellow: #ffd731;

  --mint: #d9ffec;
  --mint-ink: #1c9d69;
  --coral: #ffdddd;
  --coral-ink: #e4574c;
  --pink: #ec7696;
  --lav: #e6e7ff;
  --lav-ink: #6b63c9;
  --sky: #bcf5ff;
  --sky-2: #cfebff;
  --blue: #3ba0da;

  --radius: 26px;
  --radius-sm: 16px;
  --border: 2.5px solid var(--ink);
  --shadow: 6px 8px 0 rgba(35, 25, 22, 0.13);
  --shadow-sm: 4px 5px 0 rgba(35, 25, 22, 0.12);
  --shadow-lg: 10px 13px 0 rgba(35, 25, 22, 0.12);

  --display: "Baloo 2", "Noto Sans TC", ui-rounded, system-ui, sans-serif;
  --body: "Noto Sans TC", "Baloo 2", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, #ffe9a8 0, transparent 34%),
    radial-gradient(circle at 92% 4%, #cdeeff 0, transparent 30%),
    radial-gradient(circle at 80% 88%, #ffe1e6 0, transparent 34%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.shell {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: transparent;
  z-index: 120;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 13px 24px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 9px 0 rgba(35, 25, 22, 0.16);
}
.button:active { transform: translate(1px, 1px); box-shadow: var(--shadow-sm); }
.button-primary { background: var(--gold); }
.button-secondary { background: #fff; }
.button-small { padding: 9px 18px; font-size: 15px; box-shadow: var(--shadow-sm); }
.button-full { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 246, 226, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--ink); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
}
.brand-dots { display: inline-flex; gap: 5px; }
.brand-dots i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.brand-dots i:nth-child(1) { background: var(--mint-ink); }
.brand-dots i:nth-child(2) { background: var(--blue); }
.brand-dots i:nth-child(3) { background: var(--coral-ink); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 500;
}
.primary-nav a { text-decoration: none; }
.primary-nav > a:not(.button):hover { color: var(--gold-deep); }

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: var(--border);
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.menu-button span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- section shell ---------- */
.section { padding: 78px 0; }
.section-heading { max-width: 660px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border: var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.18; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 44px); }
.section-heading p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 58px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 46px;
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 6vw, 66px); }
.hero h1 .accent {
  color: var(--gold-deep);
  -webkit-text-stroke: 0;
  position: relative;
}
.hero h1 .underline {
  background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%);
  padding: 0 2px;
}
.hero-lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 22px 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  background: var(--mint);
  border: var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint-ink);
}

/* hero visual */
.hero-visual { position: relative; }
.hero-blob {
  position: absolute;
  inset: -6% -8% -8% -6%;
  background: #fff;
  border: var(--border);
  border-radius: 42% 58% 55% 45% / 55% 48% 52% 45%;
  box-shadow: var(--shadow-lg);
  z-index: 0;
}
.window {
  position: relative;
  z-index: 2;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gold);
  border-bottom: 2.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.window-bar .dots { display: inline-flex; gap: 5px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; }
.window-bar .tag {
  margin-left: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 12px;
}
.window-body { padding: 16px; display: grid; gap: 12px; }

.mini-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
}
.mini-label b {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ink);
  font-size: 12px;
}

.sheet {
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.sheet-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1.5px solid #eee4cf;
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row.head { background: var(--cream-2); font-family: var(--display); font-weight: 700; }
.sheet-row b {
  justify-self: end;
  font-family: var(--display); font-weight: 700;
  background: var(--mint); border: 2px solid var(--ink);
  border-radius: 8px; padding: 1px 9px; min-width: 34px; text-align: center;
}
.sheet-row.flag { background: #fff5f5; }
.sheet-row.flag b { background: var(--coral); color: var(--coral-ink); }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lav); border: 2px solid var(--ink);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 500;
}
.pill-note b { font-family: var(--display); }

.result {
  display: flex; align-items: center; gap: 12px;
  background: var(--sky-2); border: 2px solid var(--ink);
  border-radius: 14px; padding: 12px 14px;
}
.result .avg { font-family: var(--display); }
.result .avg b { font-size: 26px; display: block; line-height: 1; }
.result .avg small { color: var(--ink-soft); font-size: 12px; }
.result .excel {
  margin-left: auto;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  background: var(--gold); border: 2px solid var(--ink);
  border-radius: 999px; padding: 7px 14px;
}

/* floating stickers + mascot */
.sticker {
  position: absolute;
  z-index: 3;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  background: #fff; border: var(--border); border-radius: 14px;
  padding: 7px 13px; box-shadow: var(--shadow-sm);
}
.sticker.one { top: -18px; left: -18px; transform: rotate(-6deg); background: var(--yellow); }
.sticker.two { top: 46%; right: -26px; transform: rotate(5deg); background: var(--mint); }
.hero-mascot {
  position: absolute;
  z-index: 4;
  width: 108px;
  top: -40px; right: 10px;
  transform: rotate(6deg);
  filter: drop-shadow(3px 4px 0 rgba(35, 25, 22, 0.14));
}

/* ---------- quote ---------- */
.quote-section { padding: 20px 0 40px; }
.quote-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
}
.quote-card .squid { width: 90px; filter: drop-shadow(2px 3px 0 rgba(35, 25, 22, 0.12)); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-size: clamp(18px, 2.3vw, 24px); font-weight: 500; margin: 0 0 8px; }
.quote-card cite { color: var(--ink-soft); font-style: normal; font-size: 14px; }
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.promises span {
  display: block;
  background: #fff; border: 2px solid var(--ink);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.promises b { font-family: var(--display); display: block; }
.promises small { color: var(--ink-soft); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
}
.step:nth-child(1) { background: var(--mint); }
.step:nth-child(2) { background: var(--coral); }
.step:nth-child(3) { background: var(--sky); }
.step .num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: var(--border);
  font-family: var(--display); font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0 0 16px; color: #40372f; }
.step .chip {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 13px;
}

/* ---------- why (differentiator) ---------- */
.why-section { background: transparent; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: #fff; border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px;
}
.why-card .mk {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  border: var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--display); font-weight: 800; font-size: 20px;
  margin-bottom: 14px;
}
.why-card:nth-child(1) .mk { background: var(--lav); }
.why-card:nth-child(2) .mk { background: var(--coral); }
.why-card:nth-child(3) .mk { background: var(--mint); }
.why-card h3 { font-size: 20px; margin-bottom: 6px; }
.why-card p { margin: 0; color: var(--ink-soft); }
.why-foot {
  margin-top: 30px; text-align: center;
  font-weight: 500; color: var(--ink-soft);
}
.why-foot b { color: var(--ink); }

/* ---------- trust ---------- */
.trust-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  background: #fff;
  border: var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  padding: 42px 44px;
}
.trust-card h2 { margin-bottom: 14px; }
.trust-card > div > p { color: var(--ink-soft); margin: 0 0 18px; }
.trust-qual {
  font-size: 13px; color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 14px;
}
.trust-side {
  background: linear-gradient(180deg, #e6f6ff 0%, var(--mint) 100%);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 28px;
  text-align: center;
}
.tw-stage {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 6px auto 18px;
  display: grid;
  place-items: center;
}
/* "secure data" disc = the sea around Taiwan */
.tw-stage::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #d6efff 55%, #bfe6f7 100%);
  border: var(--border);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), var(--shadow-sm);
}
.tw-ring {
  position: absolute;
  inset: 2px;
  border: 2.5px dashed rgba(35, 25, 22, 0.30);
  border-radius: 50%;
  animation: tw-spin 26s linear infinite;
}
.tw-ring.inner {
  inset: 24px;
  border-style: dotted;
  border-color: rgba(59, 160, 218, 0.5);
  animation-duration: 18s;
  animation-direction: reverse;
}
@keyframes tw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tw-ring { animation: none; } }
.tw-island {
  position: relative;
  z-index: 2;
  width: 168px;
  height: auto;
  filter: drop-shadow(2px 4px 0 rgba(35, 25, 22, 0.12));
}
.tw-scholar {
  position: absolute;
  z-index: 3;
  width: 66px;
  right: 4px;
  bottom: 2px;
  transform: rotate(8deg);
  filter: drop-shadow(2px 3px 0 rgba(35, 25, 22, 0.16));
}
.tw-pin {
  position: absolute;
  z-index: 4;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: var(--shadow-sm);
}
.tw-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ink);
}
.trust-side h3 { font-size: 20px; margin: 4px 0 6px; }
.trust-side p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.trust-list {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 6px;
}
.trust-list article {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 16px;
  padding: 14px 16px;
}
.trust-list .n {
  font-family: var(--display); font-weight: 800; font-size: 14px;
  color: var(--gold-deep);
}
.trust-list b { display: block; font-family: var(--display); margin: 2px 0 3px; }
.trust-list p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.built-by {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  border-top: 2px solid #efe4cb; padding-top: 20px; margin-top: 4px;
}
.built-by b { font-family: var(--display); }
.built-by small { color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  background: #fff; border: var(--border); border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 6px 20px;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  padding: 12px 0; display: flex; align-items: center; justify-content: space-between;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 30px; height: 30px;
  flex-shrink: 0; margin-left: 12px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background-color: var(--gold);
  /* two centered ink bars = a geometric plus (no font metrics) */
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 13px 3px, 3px 13px;
  background-position: center, center;
  background-repeat: no-repeat;
}
.faq-list details[open] summary::after {
  /* open = minus: keep only the horizontal bar */
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 13px 3px;
}
.faq-list details p { margin: 0 0 14px; color: var(--ink-soft); }
.text-link {
  font-family: var(--display); font-weight: 700; text-decoration: none;
  border-bottom: 2.5px solid var(--gold);
}

/* ---------- final ---------- */
.final { padding: 30px 0 80px; }
.final-card {
  position: relative;
  background: var(--gold);
  border: var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: 52px 54px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
}
.final-card h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 14px; }
.final-card .close-line { font-size: 18px; font-weight: 500; margin: 0; }
.final-actions { text-align: center; }
.final-actions small { display: block; margin-top: 12px; font-size: 13px; color: #6a5a10; }
.final-card .chick {
  position: absolute; width: 100px; right: 40px; top: -30px; transform: rotate(-8deg);
  filter: drop-shadow(3px 4px 0 rgba(35, 25, 22, 0.16));
}

/* ---------- footer ---------- */
.site-footer { border-top: 2.5px solid var(--ink); background: var(--cream-2); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding: 30px 0;
}
.footer-inner p {
  flex-basis: 100%;
  font-family: var(--display); font-weight: 700; font-size: 18px; margin: 4px 0;
}
.footer-inner .footer-links { display: flex; gap: 20px; }
.footer-inner .footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-inner small { margin-left: auto; color: var(--ink-soft); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .menu-button { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; right: 4vw; left: 4vw;
    flex-direction: column; align-items: stretch; gap: 10px;
    background: #fff; border: var(--border); border-radius: 18px;
    box-shadow: var(--shadow); padding: 16px; margin-top: 8px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav .button { justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-mascot { width: 92px; top: -52px; }
  .hero-blob { display: none; }
  .sticker.one { left: 8px; top: -14px; }
  .sticker.two { display: none; }
  .trust-card { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .final-card { grid-template-columns: 1fr; text-align: center; }
  .final-card .chick { position: static; display: inline-block; margin-bottom: 6px; transform: rotate(-6deg); }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .steps, .why-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-template-columns: 1fr; text-align: center; padding: 26px; }
  .quote-card .squid { width: 74px; margin-inline: auto; }
  .trust-card { padding: 28px; }
  .final-card { padding: 34px 26px; }
  .footer-inner small { margin-left: 0; flex-basis: 100%; }
}
