/* Terissa Lin Studio — studio.terissalin.com
   顏色與報價單、開幕價文件一致：深藍 + 金色 */
:root {
  --navy: #1f3a5f;
  --navy-deep: #13263f;
  --gold: #b08d57;
  --gold-light: #e6d3b0;
  --cream: #fbf6ec;
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #1c2431;
  --muted: #5b6573;
  --line: #e3e7ed;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 38, 63, .06), 0 8px 24px rgba(19, 38, 63, .06);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC",
          "Microsoft JhengHei", "Heiti TC", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75;
  color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--navy); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 38, 63, .96); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(230, 211, 176, .18);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--gold-light); letter-spacing: .14em; line-height: 1.2; }
.brand span { line-height: 1.2; }
.menu { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu a { display: block; padding: 8px 12px; border-radius: 8px; color: #dfe6ef; text-decoration: none; font-size: .95rem; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.menu .lang { border: 1px solid rgba(230, 211, 176, .5); color: var(--gold-light); padding: 5px 11px; margin-left: 6px; }
.menu .cta-sm { background: var(--gold); color: #fff; font-weight: 600; }
.menu .cta-sm:hover { background: #c09d66; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
@media (max-width: 860px) {
  .js .menu-toggle { display: block; }
  .js .menu { display: none; }
  .js .menu.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--navy-deep); padding: 10px 20px 18px; gap: 2px; border-bottom: 1px solid rgba(230,211,176,.2);
  }
  .menu { flex-wrap: wrap; }
  .menu .lang { margin: 6px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(176, 141, 87, .22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 75%);
  color: #e9eef5; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .2em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); color: #fff; margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { font-size: 1.12rem; color: #cfd8e4; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px;
  border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #c09d66; color: #fff; }
.btn-ghost { border-color: rgba(230, 211, 176, .55); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.hero-note { margin-top: 16px; font-size: .88rem; color: #a9b6c7; }

.proof { background: rgba(255,255,255,.05); border: 1px solid rgba(230,211,176,.25); border-radius: 18px; padding: 26px; }
.proof h2 { font-size: .8rem; letter-spacing: .18em; color: var(--gold-light); margin-bottom: 16px; font-weight: 700; }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.proof-list li { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.proof-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-num { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.proof-num small { white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--gold-light); }
.proof-list p { margin: 0; color: #cfd8e4; font-size: .93rem; line-height: 1.55; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { display: block; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .2em; margin-bottom: 8px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); color: var(--gold); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.why { border-top: 3px solid var(--gold); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--cream), #fff 38%); transform: translateY(-8px); }
@media (max-width: 960px) { .plan--featured { transform: none; } }
.badge { position: absolute; top: -13px; left: 28px; background: var(--gold); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-size: 1.3rem; color: var(--navy); margin: 0; }
.plan-en { font-size: .74rem; letter-spacing: .2em; color: var(--gold); font-weight: 700; margin: 2px 0 14px; }
.plan-for { color: var(--muted); font-size: .95rem; min-height: 3.2em; }
.price { margin: 6px 0 4px; color: var(--navy); }
.price .cur { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.01em; }
.price .from { font-size: .95rem; color: var(--muted); }
.price-note { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.features li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.55; }
.features li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.features strong { color: var(--navy); }
.plan .btn { width: 100%; }
.plan .btn-outline { border-color: var(--navy); color: var(--navy); }
.plan .btn-outline:hover { background: var(--navy); color: #fff; }

.included { margin-top: 40px; background: var(--surface); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 22px 26px; }
.included h3 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--cream); color: #6f5730; border-radius: 999px; padding: 5px 14px; font-size: .9rem; }

/* ---------- Add-ons table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 700; color: var(--navy); }
td .sub { display: block; color: var(--muted); font-size: .86rem; }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(19,38,63,.15); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5dd; }
.browser-bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; }
.mock { padding: 26px; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #dfe6ef; }
.mock b { display: block; color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.mock .mock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); margin: 8px 0; }
.mock .w70 { width: 70%; } .mock .w50 { width: 50%; } .mock .w85 { width: 85%; }
.mock .mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mock .mock-row div { height: 54px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(230,211,176,.25); }

.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 10px; }
.score { text-align: center; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.ring {
  --p: 100; width: 66px; height: 66px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), #e4efe9 0);
}
.ring::after { content: attr(data-v); width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--ok); font-size: 1.1rem; }
.ring.s92 { --p: 92; } .ring.s97 { --p: 97; } .ring.s100 { --p: 100; }
.score-toggle { display: flex; gap: 8px; }
.score-caption { font-size: .82rem; color: var(--muted); }
.device-label { font-weight: 700; color: var(--navy); font-size: .92rem; margin: 18px 0 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: block; font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 12px;
}
.steps h3 { color: var(--navy); font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps .pay { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 700; color: #6f5730; background: var(--cream); border-radius: 6px; padding: 2px 8px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.portrait { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--cream); box-shadow: var(--shadow); }
.creds { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--navy); background: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #dfe6ef; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #b9c5d4; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-aside li { padding-left: 26px; position: relative; color: #cfd8e4; }
.contact-aside li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.contact-aside a { color: var(--gold-light); }
form.card { background: #fff; color: var(--ink); padding: 30px; border: 0; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, .legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.req { color: var(--gold); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #cdd4dd; border-radius: 10px; padding: 11px 14px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(176,141,87,.35); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .84rem; color: var(--muted); margin: 4px 0 18px; }
form .btn { width: 100%; padding: 14px; font-size: 1.02rem; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1b2e; color: #8f9db0; font-size: .88rem; padding: 30px 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: #c7d1de; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--gold); line-height: 1; }
