/* ===== Design System ===== */
:root {
  --bg: #F7F4EF;
  --card-bg: #FFFFFF;
  --text: #2E2523;
  --text-secondary: #6F625D;
  --accent: #6E4B47;
  --accent-hover: #5D3E3A;
  --border: #E7DDD7;
  --accent-bg: #F2EAE4;
  --gold: #C4A88A;
  --gold-light: rgba(196, 168, 138, 0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.06);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1100px;
  --pad: 20px;
  --pad-block: 56px;
  --pad-block-mobile: 36px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Container ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
p, li { font-size: 18px; color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
  box-shadow: 0 2px 8px rgba(110, 75, 71, 0.15);
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(110, 75, 71, 0.25); }
.btn--large { padding: 18px 48px; font-size: 18px; }

/* ===== Nav ===== */
.nav {
  padding: 16px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { font-family: var(--font-head); font-size: 22px; color: var(--text); white-space: nowrap; }
.nav__links { display: flex; gap: 24px; list-style: none; }
.nav__links a { font-size: 15px; color: var(--text-secondary); }
.nav__links a:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text); }

/* ===== Sections ===== */
.section { padding: var(--pad-block) 0; }
.section--accent { background: var(--accent-bg); }
.section__title { text-align: center; margin-bottom: 16px; position: relative; padding-bottom: 20px; }
.section__title::after { content: ''; display: block; width: 48px; height: 2px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }
.section__subtitle { text-align: center; font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 28px; }
.divider { text-align: center; padding: 0 0 32px; color: var(--gold); font-size: 18px; letter-spacing: 8px; opacity: 0.4; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { margin-bottom: 16px; }
.hero p { max-width: 560px; margin: 0 auto 32px; font-size: 19px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards--steps { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 24px; }
.card__title { font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.card__text { font-size: 16px; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 18px; margin-bottom: 16px; }

/* ===== List ===== */
.list { list-style: none; max-width: 640px; margin: 0 auto; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 18px; display: flex; align-items: flex-start; gap: 12px; }
.list li::before { content: "—"; color: var(--accent); font-weight: 300; }

/* ===== Accent block ===== */
.accent-block { background: var(--accent-bg); border-radius: 12px; padding: 48px; text-align: center; }
.accent-block h2 { margin-bottom: 12px; }
.accent-block p { max-width: 560px; margin: 0 auto; }

/* ===== FAQ ===== */
.faq { max-width: 700px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question { width: 100%; padding: 18px 0; background: none; border: none; font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--text); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq__question::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform 0.2s; }
.faq__item.open .faq__question::after { content: "−"; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__answer-inner { padding: 0 0 18px; font-size: 16px; color: var(--text-secondary); }
.faq__item.open .faq__answer { max-height: 300px; }

/* ===== Form ===== */
.form-section { max-width: 480px; margin: 0 auto; }
.form-section .form { display: flex; flex-direction: column; gap: 10px; }
.form-section input, .form-section textarea, .form-section select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 15px; background: var(--card-bg); color: var(--text); transition: border 0.2s; }
.form-section input:focus, .form-section textarea:focus, .form-section select:focus { outline: none; border-color: var(--accent); }
.form-section textarea { min-height: 72px; resize: vertical; }
.order-header { text-align: center; margin-bottom: 16px; }
.order-header__badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); background: var(--bg); padding: 4px 14px; border-radius: 20px; font-weight: 500; margin-bottom: 10px; }
.order-header__price { font-family: var(--font-head); font-size: 22px; color: var(--accent); margin-top: 4px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.3; }
.form-checkbox input { width: auto; margin-top: 3px; }
.form-checkbox a { color: var(--accent); text-decoration: underline; }

/* ===== Footer ===== */
.footer { padding: 48px 0; border-top: 1px solid var(--border); font-size: 15px; }
.footer .container { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__col { flex: 1; min-width: 200px; }
.footer__title { font-family: var(--font-head); font-size: 18px; margin-bottom: 12px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 15px; color: var(--text-secondary); }
.footer__links a:hover { color: var(--accent); }

/* ===== Result page ===== */
.result-page { max-width: 720px; margin: 0 auto; padding: 48px 0; }
.result-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 48px; box-shadow: 0 4px 24px rgba(0,0,0,0.04); position: relative; }
.result-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--gold-light); border-radius: 12px; pointer-events: none; }
.result-page h1 { margin-bottom: 4px; font-size: 32px; }
.result-page .meta { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.result-page .result-text { line-height: 1.8; font-size: 17px; }
.result-page .result-text h2 { font-size: 24px; margin: 24px 0 12px; }
.result-page .result-text h3 { font-size: 18px; margin: 20px 0 8px; font-family: var(--font-body); font-weight: 600; color: var(--accent); }
.result-page .result-text p { margin-bottom: 12px; font-size: 16px; }
.result-page .result-text pre { background: var(--bg); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.result-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.result-upgrade { margin-top: 32px; padding: 28px; background: var(--accent-bg); border-radius: 12px; text-align: center; }
.result-upgrade h3 { margin-bottom: 6px; }
.result-upgrade p { font-size: 15px; margin-bottom: 20px; }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Print ===== */
@media print { .nav, .footer, .result-actions, .result-card::before { display: none; } body { background: #fff; } .result-card { box-shadow: none; border: none; } }

/* ===== Legal ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 0; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .date { color: var(--text-secondary); font-size: 15px; margin-bottom: 32px; display: block; }
.legal h2 { font-size: 24px; margin: 32px 0 12px; }
.legal p { margin-bottom: 16px; line-height: 1.7; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { margin-bottom: 8px; font-size: 16px; color: var(--text-secondary); }

/* ===== Daily ===== */
.daily { padding: 48px 0 64px; }
.daily__header { text-align: center; margin-bottom: 36px; }
.daily__label { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 8px; }
.daily__header h1 { font-size: 30px; }
.daily__card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 44px; max-width: 600px; margin: 0 auto; text-align: center; box-shadow: var(--shadow-lg); }
.daily__number { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.daily__arcana-name { font-family: var(--font-head); font-size: 28px; margin-bottom: 6px; }
.daily__keywords { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.daily__section { text-align: left; margin-bottom: 20px; padding: 20px; background: var(--accent-bg); border-radius: 10px; }
.daily__section h3 { font-family: var(--font-body); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.daily__section p { font-size: 16px; margin: 0; }
.daily__professions { background: var(--bg); border: 1px solid var(--border); }
.daily__cta { text-align: center; max-width: 520px; margin: 48px auto 0; padding: 36px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; }
.daily__cta h2 { margin-bottom: 10px; }
.daily__cta p { margin-bottom: 24px; font-size: 16px; }
@media (max-width: 768px) {
  .daily__card { padding: 28px 20px; }
  .daily__header h1 { font-size: 24px; }
  .daily__arcana-name { font-size: 22px; }
  .daily__section { padding: 16px; }
}

/* ===== Articles ===== */
.articles-list { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.article-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.article-card__date { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.article-card__title { font-family: var(--font-head); font-size: 20px; margin-bottom: 6px; color: var(--text); }
.article-card__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.article { padding: 32px 0 64px; }
.article__container { max-width: 720px; margin: 0 auto; }
.article__header { margin-bottom: 36px; }
.article__breadcrumbs { margin-bottom: 12px; }
.article__breadcrumbs a { font-size: 14px; color: var(--text-secondary); }
.article__breadcrumbs a:hover { color: var(--accent); }
.article__header h1 { font-size: 34px; margin-bottom: 8px; }
.article__date { font-size: 14px; color: var(--text-secondary); }
.article__body section { margin-bottom: 32px; }
.article__body h2 { font-size: 24px; margin-bottom: 12px; }
.article__body p { font-size: 17px; line-height: 1.8; }
.article__cta { margin-top: 48px; padding: 32px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.article__cta h3 { margin-bottom: 8px; }
.article__cta p { font-size: 16px; margin-bottom: 20px; }
@media (max-width: 768px) {
  .article__header h1 { font-size: 26px; }
  .article__body h2 { font-size: 20px; }
  .article-card { padding: 18px; }
  .article-card__title { font-size: 18px; }
}

/* ===== Products ===== */
.products-note { text-align: center; max-width: 640px; margin: -12px auto 36px; font-size: 16px; color: var(--text-secondary); line-height: 1.6; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.product-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card--featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-light); }
.product-card__badge { display: inline-block; align-self: center; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); background: var(--accent-bg); padding: 4px 14px; border-radius: 20px; font-weight: 500; }
.product-card h3 { font-size: 20px; }
.product-card__desc { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.product-card__details { text-align: left; font-size: 14px; }
.product-card__details strong { display: block; margin-bottom: 4px; font-size: 13px; color: var(--text); }
.product-card__details ul { list-style: none; }
.product-card__details li { font-size: 14px; padding: 3px 0; color: var(--text-secondary); display: flex; gap: 8px; align-items: flex-start; }
.product-card__details li::before { content: "—"; color: var(--accent); }
.product-card__for { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.product-card__price { font-family: var(--font-head); font-size: 22px; color: var(--accent); padding: 4px 0; }
.product-card .btn { margin-top: auto; }
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 20px; } p, li { font-size: 16px; }
  :root { --pad-block: var(--pad-block-mobile); }
  .hero { padding: 48px 0 36px; } .hero p { font-size: 17px; }
  .cards, .cards--steps { grid-template-columns: 1fr; } .cards { gap: 16px; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 20px; gap: 12px; }
  .nav__links.open { display: flex; } .nav__toggle { display: block; } .nav { position: relative; }
  .accent-block { padding: 32px 20px; }
  .result-card { padding: 28px 20px; } .result-card::before { inset: 4px; } .result-page h1 { font-size: 26px; }
  .result-actions { flex-direction: column; } .result-actions .btn { width: 100%; text-align: center; }
  .legal { padding: 32px 0; } .legal h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  h1 { font-size: 26px; } .container { padding: 0 16px; } .btn--large { width: 100%; }
}
