:root {
  --bg: #f7f4ec;
  --bg-soft: #efeadf;
  --paper: #fffdf7;
  --paper-strong: #ffffff;
  --text: #171512;
  --muted: #5f5a52;
  --muted-2: #7a746b;
  --line: #ded7ca;
  --line-soft: #ebe4d8;
  --accent: #d46f4d;
  --accent-dark: #b95738;
  --accent-soft: #f2d4c5;
  --ink: #111111;
  --shadow: 0 24px 70px rgba(44, 35, 23, .10);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans TC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 84% 18%, rgba(212,111,77,.16), transparent 28rem),
    radial-gradient(circle at 12% 72%, rgba(67,52,33,.07), transparent 30rem),
    linear-gradient(180deg, #faf7f1 0%, #f7f4ec 58%, #efeadf 100%);
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.82; }
ul { padding-left: 20px; color: var(--muted); line-height: 1.9; }

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(55px);
  opacity: .18;
  pointer-events: none;
  z-index: -2;
  animation: drift 14s ease-in-out infinite alternate;
}
.ambient-one { background: #e88b65; top: 10%; left: -14%; }
.ambient-two { background: #d7c3a7; bottom: 7%; right: -10%; animation-delay: -5s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(38px,-24px,0) scale(1.08); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(22px, 5vw, 76px);
  background: rgba(250, 247, 241, .86);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { background: rgba(250, 247, 241, .96); box-shadow: 0 10px 36px rgba(39, 31, 20, .06); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff7ef;
  box-shadow: 0 12px 24px rgba(212, 111, 77, .16);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text { font-size: 20px; }
.site-nav { display: flex; align-items: center; gap: 26px; color: #38342e; font-size: 15px; }
.site-nav a { transition: color .18s ease; }
.site-nav a:hover { color: var(--accent-dark); }
.nav-cta, .button.primary {
  background: var(--ink);
  color: #fffdf7 !important;
  border-color: var(--ink) !important;
  font-weight: 800;
}
.nav-cta { padding: 11px 18px; border-radius: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--text); }

.section-pad { padding: clamp(76px, 9vw, 128px) clamp(22px, 5vw, 76px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: clamp(40px, 6vw, 86px); align-items: center; min-height: calc(100vh - 76px); }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 850; margin: 0 0 18px; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; color: var(--text); }
h1, h2 { font-family: Georgia, "Times New Roman", "Noto Serif TC", serif; font-weight: 700; }
h1 { font-size: clamp(48px, 7.6vw, 94px); line-height: .98; }
h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; }
h3 { font-size: 21px; }
.hero-lead { font-size: clamp(17px, 2vw, 21px); max-width: 700px; margin: 26px 0 32px; color: #4d473f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255,253,247,.68);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 35, 20, .10); }
.button.ghost { background: rgba(255,253,247,.55); color: var(--text); }
.trust-row { display: grid; gap: 4px; margin-top: 30px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.trust-row strong { color: var(--text); font-weight: 750; }

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,253,247,.78);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 11rem; height: 11rem; border-radius: 999px;
  top: 42px; right: 54px;
  background: var(--accent);
  opacity: .12;
  animation: pulse 4.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .12; } 50% { transform: scale(1.08); opacity: .18; } }
.panel-top { display: flex; gap: 8px; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.panel-top span { width: 11px; height: 11px; border-radius: 99px; background: #d9cdbc; }
.chat-window { padding: 24px; min-height: 520px; position: relative; z-index: 1; }
.chat-message { width: fit-content; max-width: 86%; padding: 14px 16px; border-radius: 18px; margin-bottom: 16px; border: 1px solid var(--line-soft); }
.chat-message.source { margin-left: auto; background: #171512; color: #fffdf7; }
.chat-message.bot { background: #fff7ed; color: #41372e; }
.translation-card { padding: 18px; border: 1px solid var(--line); background: rgba(255,253,247,.9); border-radius: 20px; margin: 18px 0; box-shadow: 0 20px 48px rgba(45,35,22,.10); }
.translation-card span { color: var(--accent-dark); font-weight: 850; }
.translation-card p { margin: 8px 0 0; color: #28231f; }
.float-card { animation: floaty 4.5s ease-in-out infinite; }
.delay-card { animation-delay: -2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.metrics { margin: 0 clamp(22px, 5vw, 76px); padding: 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,247,.7); box-shadow: 0 16px 46px rgba(48,38,25,.06); }
.metrics div { text-align: center; }
.metrics strong { display: block; font-size: clamp(32px, 5vw, 58px); color: var(--text); font-family: Georgia, "Times New Roman", serif; }
.metrics span { color: var(--muted); }
.split-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(34px, 6vw, 72px); }
.section-copy p { max-width: 540px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.feature-card, .price-card, .doc-card, .note-box, details, .step, .legal {
  border: 1px solid var(--line);
  background: rgba(255,253,247,.72);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(45,35,22,.05);
}
.feature-card span { color: var(--accent-dark); font-weight: 900; }
.feature-card h3 { margin-top: 12px; }
.workflow { text-align: center; }
.workflow h2 { margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; text-align: left; }
.step b { display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: #fffdf7; border-radius: 14px; margin-bottom: 18px; }
.cta-band { margin: 0 clamp(22px, 5vw, 76px) 80px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid #e2c8b8; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,253,247,.82), rgba(242,212,197,.58)); }
.page-hero { padding: clamp(70px, 9vw, 120px) clamp(22px, 5vw, 76px) 30px; max-width: 980px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 74px); }
.page-hero p:not(.eyebrow) { font-size: 19px; max-width: 760px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.price-card { min-height: 450px; display: flex; flex-direction: column; }
.price-card.featured { border-color: #d8aa92; background: linear-gradient(180deg, rgba(255,247,237,.96), rgba(255,253,247,.82)); transform: translateY(-14px); }
.price-label { color: var(--accent-dark); font-weight: 900; margin-bottom: 20px; }
.price { font-size: 40px; color: var(--text); font-weight: 900; font-family: Georgia, "Times New Roman", serif; }
.price span { font-size: 16px; color: var(--muted); font-family: "Inter", "Noto Sans TC", system-ui, sans-serif; }
.price-card .button { margin-top: auto; }
.note-box { margin: 0 clamp(22px, 5vw, 76px) 80px; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.docs-side { position: sticky; top: 96px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 22px; padding: 14px; background: rgba(255,253,247,.72); }
.docs-side a { padding: 12px 14px; color: var(--muted); border-radius: 14px; }
.docs-side a:hover { background: #f4eadf; color: var(--text); }
.docs-content { display: grid; gap: 18px; }
pre { overflow: auto; padding: 16px; border-radius: 16px; background: #171512; border: 1px solid #2a261f; }
code { color: #fff3e3; }
.language-list { display: flex; flex-wrap: wrap; gap: 10px; }
.language-list span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,253,247,.62); }
.language-list b { margin-right: 8px; color: var(--accent-dark); }
.faq-list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; width: min(1180px, calc(100% - 48px)); }
details summary { cursor: pointer; font-size: 20px; font-weight: 800; }
.legal { max-width: 920px; margin: 0 auto 90px; }
.legal h2 { font-size: 24px; margin-top: 26px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 42px clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); color: var(--muted); background: rgba(239,234,223,.5); }
.footer-brand { color: var(--text); font-weight: 900; font-size: 18px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 74px 16px auto 16px; display: none; flex-direction: column; align-items: stretch; padding: 18px; background: rgba(250,247,241,.98); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero, .split-section, .docs-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature-grid, .pricing-grid, .steps, .metrics { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .cta-band, .site-footer { flex-direction: column; align-items: flex-start; }
  h1 { font-size: clamp(42px, 12vw, 66px); }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }
}

/* Contact / feedback */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: start;
}
.contact-card,
.support-panel {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.contact-card { padding: 28px; }
.support-panel { padding: 24px; }
.support-block + .support-block { margin-top: 18px; }
.support-block.subtle {
  background: var(--surface-soft);
  border-radius: 20px;
  padding: 18px;
}
.feedback-form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 650;
  color: var(--ink);
}
.feedback-form input,
.feedback-form textarea,
.feedback-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
}
.required { color: var(--accent); }
.field-note,
.muted {
  color: var(--muted);
  font-size: .94rem;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-messages { margin: 14px 0; }
.form-message,
.success-panel {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 0;
}
.form-message.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #991b1b;
}
.form-message.success,
.success-panel {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.mail-link {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  font-weight: 700;
}
.check-list.compact li { margin-bottom: 8px; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-card, .support-panel { border-radius: 22px; padding: 20px; }
}

/* AI feature, LINE add friend and real preview sections */
.compact-add-card {
  margin-top: 22px;
  width: fit-content;
}
.line-add-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, .72);
  box-shadow: 0 14px 34px rgba(45,35,22,.06);
}
.line-search-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d9d3c8;
  border-radius: 14px;
  background: #fff;
  color: #8a8378;
}
.line-search-box.wide { min-width: min(420px, 70vw); }
.search-icon { font-size: 21px; color: #80786e; transform: rotate(-12deg); }
.line-id { color: #6f675e; font-weight: 750; letter-spacing: .01em; }
.or-text { color: var(--muted-2); font-size: 13px; }
.line-add-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: #06c755;
  color: #fff !important;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(6,199,85,.20);
  transition: transform .18s ease, box-shadow .18s ease;
}
.line-add-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(6,199,85,.24); }
.line-bubble {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #06c755;
  font-size: 10px;
  font-weight: 950;
}
.ai-feature-section { align-items: start; }
.ai-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.ai-proof-list span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,247,.76);
  color: #403932;
  font-weight: 760;
  font-size: 14px;
}
.ai-feature-grid .feature-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ai-feature-grid .feature-card:hover {
  transform: translateY(-4px);
  border-color: #dcb69c;
  box-shadow: 0 22px 48px rgba(45,35,22,.10);
}
.ai-card-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255,253,247,.92), rgba(242,212,197,.42));
}
.ai-card-main span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: #fffdf7;
}
.product-demo-section {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  padding-top: 40px;
}
.demo-copy p { max-width: 560px; }
.demo-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.demo-points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.65;
}
.demo-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
}
.line-demo-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,253,247,.78);
  box-shadow: var(--shadow);
}
.line-demo-frame::before {
  content: "";
  position: absolute;
  inset: -28px 40px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(212,111,77,.16);
  filter: blur(12px);
  z-index: -1;
}
.line-demo-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  border-radius: 22px;
  background: transparent;
}
.demo-caption {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}
.large-add-card {
  margin: 28px auto 0;
  padding: 14px;
  gap: 16px;
}
.add-card-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.2;
}
@media (max-width: 920px) {
  .line-add-card { width: 100%; align-items: stretch; flex-direction: column; }
  .compact-add-card { width: 100%; }
  .line-search-box, .line-search-box.wide, .line-add-button { width: 100%; justify-content: center; }
  .or-text { text-align: center; }
  .ai-card-main { grid-column: auto; }
  .product-demo-section { grid-template-columns: 1fr; }
  .line-demo-frame img { max-height: 520px; }
}



.code-example {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  margin-bottom: 20px;
}

.language-search-card {
  margin: 18px 0;
}

.language-search-card input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  outline: none;
}

.language-search-card input:focus {
  border-color: rgba(212, 111, 77, .55);
  box-shadow: 0 0 0 4px rgba(212, 111, 77, .12);
}

.language-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
}

.language-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.language-table th,
.language-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.language-table th {
  font-size: 13px;
  color: var(--muted);
  background: rgba(247, 241, 232, .72);
}

.language-table tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4e5da;
  color: #9b4e32;
  font-size: 12px;
  font-weight: 700;
}

.small-note {
  margin-top: 16px;
}


/* Inline code on light pages */
.page-hero code,
.code-example code,
.language-table code,
.language-search-card code,
p code,
li code {
  color: #a45336;
  background: #fff1ea;
  border: 1px solid rgba(164, 83, 54, .14);
  border-radius: 8px;
  padding: 2px 7px;
  font-weight: 700;
  font-size: .92em;
}

/* Keep dark code blocks readable */
pre code,
.code-block code,
.command-block code {
  color: #fffaf3;
  background: transparent;
  border: 0;
  padding: 0;
}

/* ============================================================
   Responsive content width fixes
   Fixes full-width language table / docs / contact layouts.
   ============================================================ */

:root {
  --border: var(--line);
  --border-strong: var(--line);
  --surface-soft: rgba(247, 241, 232, .72);
  --shadow-soft: 0 18px 48px rgba(45, 35, 22, .06);
}

/* Generic page content container used by languages.html */
.container {
  width: min(1180px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.container.narrow {
  width: min(980px, calc(100% - 56px));
}

/* Generic section spacing for pages that use <section class="section"> */
.section {
  padding: clamp(34px, 5vw, 64px) 0;
}

/* Make table/search/example follow the same content width through .container */
.section > .container .code-example,
.section > .container .language-search-card,
.section > .container .language-table-wrap,
.section > .container .small-note {
  width: 100%;
}

/* Docs and contact pages currently use their layout class directly, not .container */
.docs-layout,
.contact-layout {
  width: min(1180px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

/* Keep contact cards visually balanced after adding outer margins */
.contact-layout {
  padding-top: clamp(22px, 4vw, 44px);
  padding-bottom: clamp(54px, 7vw, 90px);
}

/* Improve language table spacing on large screens */
.language-table th,
.language-table td {
  padding-left: 22px;
  padding-right: 22px;
}

.language-table-wrap {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 920px) {
  .container,
  .container.narrow,
  .docs-layout,
  .contact-layout {
    width: min(100% - 40px, 1180px);
  }

  .section {
    padding-top: 28px;
    padding-bottom: 52px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container,
  .container.narrow,
  .docs-layout,
  .contact-layout {
    width: min(100% - 28px, 1180px);
  }

  .language-table {
    min-width: 640px;
  }

  .language-table th,
  .language-table td {
    padding: 12px 14px;
  }

  .code-example {
    padding: 14px 16px;
  }
}


.faq-list details ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.faq-list details li {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq-list details h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-list details code {
  color: #a45336;
  background: #fff1ea;
  border: 1px solid rgba(164, 83, 54, .14);
  border-radius: 8px;
  padding: 2px 7px;
  font-weight: 700;
  font-size: .92em;
}


/* 6/16 E-1 */
.account-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .82);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 16px 42px rgba(45, 35, 22, .06);
  margin-bottom: 28px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-profile img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff7ef;
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.account-meta > div {
  border: 1px solid rgba(111, 82, 52, .12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .52);
}

.account-meta span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.account-meta strong {
  font-size: 20px;
}

.subscribe-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.subscribe-option-card,
.plan-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .82);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(45, 35, 22, .055);
}

.subscribe-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(45, 35, 22, .08);
}

.subscribe-option-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #a45336;
  font-weight: 800;
}

.subscribe-option-card h3,
.plan-card h3 {
  margin-bottom: 10px;
}

.narrow-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.logout-form {
  margin-top: 24px;
  text-align: center;
}

.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 920px) {
  .subscribe-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .account-meta {
    grid-template-columns: 1fr;
  }

  .account-profile {
    align-items: flex-start;
  }
}



/* 6/16 E-2 */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 22px;
}

.plan-price strong {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.checkout-summary > div {
  border: 1px solid rgba(111, 82, 52, .12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .56);
}

.checkout-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 5px;
}

.checkout-summary strong {
  display: block;
  word-break: break-word;
}

@media (max-width: 640px) {
  .checkout-summary {
    grid-template-columns: 1fr;
  }
}


.copy-url {
  word-break: break-all;
  border: 1px solid rgba(111, 82, 52, .16);
  background: rgba(255, 255, 255, .68);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  color: #a45336;
}




.debug-box {
  margin-top: 24px;
  text-align: left;
  border: 1px solid rgba(111, 82, 52, .16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .62);
}

.debug-box pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
}


.debug-pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  border: 1px solid rgba(111, 82, 52, .16);
  background: rgba(255, 255, 255, .7);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
}
/* E-4 group/gift pricing cards */
.plan-pricing-block {
  margin: 20px 0 24px;
}

.discount-label {
  color: #d91f11;
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.monthly-price-main {
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.total-price-small {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.plan-cta {
  width: 100%;
  min-height: 58px;
  font-size: 17px;
  margin-top: 8px;
}

/* E-5 subscription UI refinements */
.brand-text {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.pricing-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-grid-four .price-card {
  min-height: 470px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.plan-card h3 {
  max-width: 78%;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.18;
}

.plan-card p {
  font-size: 16px;
  line-height: 1.75;
}

.plan-pricing-block {
  margin: 26px 0 26px;
  padding-top: 4px;
}

.plan-card .discount-label {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 108px;
  min-height: 58px;
  padding: 10px 14px;
  color: #fffdf7;
  background: #e1251b;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(225, 37, 27, .24);
  clip-path: polygon(
    8% 0%, 18% 8%, 28% 0%, 38% 8%, 48% 0%, 58% 8%, 68% 0%, 78% 8%, 92% 0%,
    100% 14%, 92% 26%, 100% 38%, 92% 50%, 100% 62%, 92% 74%, 100% 86%, 92% 100%,
    78% 92%, 68% 100%, 58% 92%, 48% 100%, 38% 92%, 28% 100%, 18% 92%, 8% 100%,
    0% 86%, 8% 74%, 0% 62%, 8% 50%, 0% 38%, 8% 26%, 0% 14%
  );
}

.monthly-price-main {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.total-price-small {
  font-size: 14px;
  line-height: 1.55;
  color: #70685f;
}

.plan-cta {
  min-height: 62px;
  border-radius: 16px;
  font-size: 18px;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 18px 0;
  background: rgba(255, 253, 247, .82);
  font-weight: 750;
}

.notice-card.success {
  border-color: rgba(52, 142, 91, .25);
  background: rgba(232, 247, 238, .88);
  color: #1e6a42;
}

.notice-card.warning {
  border-color: rgba(209, 118, 54, .28);
  background: rgba(255, 241, 226, .88);
  color: #98511f;
}

.subscription-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.subscription-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 253, 247, .82);
  box-shadow: 0 14px 34px rgba(45, 35, 22, .055);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff1ea;
  color: #a45336;
  font-weight: 850;
}

.button.danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, .28);
  background: rgba(255, 241, 238, .78);
}

.button.danger:hover {
  border-color: rgba(180, 35, 24, .46);
}

.refund-card .button {
  margin-top: 8px;
}

.hero-copy h1 {
  font-size: clamp(48px, 6.2vw, 86px);
}

@media (max-width: 1320px) and (min-width: 921px) {
  .hero-copy h1 {
    font-size: clamp(52px, 5.55vw, 78px);
  }
}

@media (max-width: 1180px) {
  .pricing-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .pricing-grid-four {
    grid-template-columns: 1fr;
  }

  .subscription-card {
    grid-template-columns: 1fr;
  }

  .plan-card h3 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 1.03;
  }

  .brand-text {
    font-size: 20px;
    font-weight: 740;
  }

  .plan-card {
    padding: 28px 24px;
  }

  .plan-card .discount-label {
    min-width: 92px;
    min-height: 50px;
    font-size: 17px;
    top: 14px;
    right: 14px;
  }
}
