/* Shared styles for project detail pages (/iwish/, /guaxi/).
   Each page sets its own accent tokens in an inline <style> on :root. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-red:      #E94B47;
  --brand-mute:     #C9433F;
  --brand-cream:    #F4E9DC;
  --brand-ink:      #2E2E2E;
  --brand-ink-soft: #5C5C5C;
  --line:           rgba(46,46,46,0.12);

  /* per-project defaults, overridden inline */
  --accent:        #E94B47;
  --accent-soft:   rgba(233,75,71,0.1);
  --hero-bg:       #E94B47;
  --hero-fg:       #ffffff;
  --hero-fg-soft:  rgba(255,255,255,0.75);
  --hero-chip-bg:  rgba(255,255,255,0.14);
  --btn-bg:        #ffffff;
  --btn-fg:        #E94B47;
  --btn-line:      rgba(255,255,255,0.4);
  --title-font:    'Fraunces', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--brand-cream);
  color: var(--brand-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── Top bar ── */
.topbar { max-width: 1100px; margin: 0 auto; padding: 1.2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; color: var(--brand-ink); text-decoration: none; }
.wordmark span { color: var(--brand-red); }
.topbar-links { display: flex; gap: 1.5rem; list-style: none; }
.topbar-links a { font-size: 0.82rem; font-weight: 500; color: var(--brand-ink-soft); text-decoration: none; }
.topbar-links a:hover, .topbar-links a[aria-current="page"] { color: var(--brand-ink); }

/* ── Breadcrumb ── */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; color: var(--brand-ink-soft); }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ── Hero ── */
.hero-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-fg); border-radius: 26px; padding: 3.5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--hero-chip-bg); top: -120px; right: -100px; opacity: 0.5; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.chip { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 100px; background: var(--hero-chip-bg); color: var(--hero-fg); }
.hero h1 { font-family: var(--title-font); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; margin: 1.2rem 0 1rem; }
.hero h1 .brand { display: block; }
.hero-lede { font-size: 1.05rem; line-height: 1.7; color: var(--hero-fg-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.8rem 1.5rem; border-radius: 100px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.01em; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-line { color: var(--hero-fg); border-color: var(--btn-line); }
.btn-line:hover { border-color: var(--hero-fg); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.facts li { font-size: 0.74rem; font-weight: 500; padding: 0.32rem 0.8rem; border-radius: 100px; border: 1px solid var(--btn-line); color: var(--hero-fg); }
.hero-visual { display: flex; justify-content: center; }

/* ── Content ── */
main { max-width: 1100px; margin: 0 auto; padding: 1rem 2.5rem 2rem; }
.block { padding: 3.5rem 0 0.5rem; }
.block > p.eyebrow, .eyebrow { font-size: 0.7rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.7rem; }
.block h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.025em; max-width: 720px; }
.block > p, .prose p { font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--brand-ink-soft); max-width: 720px; margin-top: 1rem; }
.prose strong, .block > p strong { font-weight: 600; color: var(--brand-ink); }
.prose a, .block > p a { color: var(--accent); text-underline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.tile { background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem; }
.tile h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.4rem; }
.tile p { font-size: 0.88rem; font-weight: 300; line-height: 1.65; color: var(--brand-ink-soft); }
.tile .tile-tag { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.55rem; border-radius: 100px; margin-bottom: 0.7rem; }

a.tile { display: block; text-decoration: none; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
a.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(46,46,46,0.08); }
a.tile .tile-go { display: inline-block; margin-top: 0.8rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.steps li { counter-increment: step; position: relative; padding: 1.4rem 1.5rem 1.4rem 4.2rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.55); }
.steps li::before { content: counter(step); position: absolute; left: 1.4rem; top: 1.3rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #ffffff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p { font-size: 0.86rem; font-weight: 300; color: var(--brand-ink-soft); line-height: 1.6; }

.compare { width: 100%; max-width: 860px; border-collapse: collapse; margin-top: 1.8rem; font-size: 0.88rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink-soft); }
.compare tbody th { font-weight: 600; }
.compare td { font-weight: 300; color: var(--brand-ink-soft); }
.compare td.win { color: var(--brand-ink); font-weight: 500; }
.table-scroll { overflow-x: auto; }

.price-row { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 1rem; margin-top: 1.8rem; }
.price { border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.65); padding: 1.5rem; }
.price .plan { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink-soft); }
.price .amount { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.3rem 0; }
.price .amount small { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 400; color: var(--brand-ink-soft); }
.price p { font-size: 0.85rem; font-weight: 300; color: var(--brand-ink-soft); }

.faq { margin-top: 1.5rem; max-width: 820px; }
.faq-item { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 0.45rem; }
.faq-item p { font-size: 0.93rem; font-weight: 300; line-height: 1.7; color: var(--brand-ink-soft); }
.faq-item a { color: var(--accent); }

.maker { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-top: 1.8rem; padding: 1.8rem; border-radius: 20px; background: var(--brand-ink); color: var(--brand-cream); max-width: 860px; }
.maker-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-red); color: #ffffff; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.maker p { font-size: 0.93rem; font-weight: 300; line-height: 1.7; color: rgba(244,233,220,0.8); }
.maker p + p { margin-top: 0.7rem; }
.maker strong { color: #ffffff; font-weight: 600; }
.maker a { color: #ffffff; text-underline-offset: 3px; }

.cta-band { margin-top: 3.5rem; border-radius: 24px; background: var(--hero-bg); color: var(--hero-fg); padding: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-family: var(--title-font); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.2; max-width: 560px; }
.cta-band p { color: var(--hero-fg-soft); font-size: 0.92rem; margin-top: 0.4rem; }

/* ── Footer ── */
footer { max-width: 1100px; margin: 2rem auto 0; padding: 2rem 2.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--brand-ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { text-decoration: none; font-weight: 500; }
footer a:hover { color: var(--brand-red); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .topbar, .breadcrumb, .hero-wrap, main, footer { padding-left: 1rem; padding-right: 1rem; }
  .topbar-links { display: none; }
  .hero { padding: 2rem 1.4rem; border-radius: 22px; }
  .grid, .grid-2, .steps, .price-row { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 1fr; }
  .cta-band { padding: 1.8rem 1.4rem; }
  .compare { font-size: 0.82rem; }
}
