﻿:root {
  --bg: #f6f4ef;
  --surface: #fffdfa;
  --surface-2: #f0eee7;
  --ink: #17332f;
  --muted: #62706c;
  --line: #d8ddd8;
  --accent: #ed7445;
  --accent-dark: #c74e25;
  --teal: #0d746b;
  --teal-soft: #dceee9;
  --yellow: #f4c95d;
  --danger: #b63737;
  --shadow: 0 20px 50px rgba(24, 51, 47, .09);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(23, 51, 47, .12) .7px, transparent .7px);
  background-size: 18px 18px;
  z-index: -1;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(246, 244, 239, .9); border-bottom: 1px solid rgba(216, 221, 216, .9); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.brand-mark svg { width: 22px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }
.nav-cta { border: 1px solid var(--ink); padding: 8px 14px; border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; color: var(--ink); }
.hero { padding: 76px 0 45px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--teal); font-weight: 750; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--accent); }
h1, h2, h3 { margin-top: 0; line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 7vw, 76px); margin-bottom: 22px; max-width: 850px; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
h3 { font-size: 21px; margin-bottom: 10px; }
.hero h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 600; }
.hero-copy { font-size: 18px; color: var(--muted); max-width: 700px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 750; text-decoration: none; transition: .2s ease; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.btn-primary:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--yellow); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.calendar-art { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1.03; }
.calendar-sheet { position: absolute; inset: 5% 4% 4% 7%; background: var(--surface); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 13px 14px 0 var(--teal); transform: rotate(2deg); padding: 34px; }
.calendar-rings { position: absolute; top: -13px; left: 18%; right: 18%; display: flex; justify-content: space-between; }
.calendar-rings span { width: 16px; height: 40px; border-radius: 9px; background: var(--yellow); border: 2px solid var(--ink); }
.calendar-month { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 15px; margin-bottom: 20px; font-weight: 800; font-size: 22px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; font-size: 13px; text-align: center; }
.calendar-grid b { color: var(--muted); }
.calendar-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.calendar-grid .today { background: var(--accent); color: #fff; font-weight: 800; }
.art-badge { position: absolute; right: -6px; bottom: 2%; background: var(--yellow); border: 2px solid var(--ink); padding: 10px 15px; border-radius: 999px; font-weight: 800; transform: rotate(-7deg); box-shadow: 3px 3px 0 var(--ink); }
.trust-strip { padding: 0 0 58px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust-item { padding: 20px 24px; background: var(--surface); display: flex; gap: 13px; align-items: center; }
.trust-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 900; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { color: var(--muted); font-size: 13px; }
.section { padding: 72px 0; }
.section-muted { background: #ece9e1; border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }
.tools-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-tabs { display: grid; gap: 8px; position: sticky; top: 96px; }
.tool-tab { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid transparent; background: transparent; border-radius: 12px; color: var(--ink); cursor: pointer; font-weight: 680; }
.tool-tab:hover { background: rgba(255,255,255,.55); }
.tool-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: 3px 3px 0 var(--ink); }
.tab-number { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 12px; }
.tool-panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.tool-panel.is-active { display: block; animation: panelIn .25s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(5px); } }
.tool-intro { color: var(--muted); margin: -4px 0 26px; max-width: 720px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 14px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #bbc5c1; color: var(--ink); background: #fff; border-radius: 11px; padding: 11px 12px; min-height: 46px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,116,107,.13); }
textarea { min-height: 100px; resize: vertical; }
.check-row { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 18px 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--teal); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.result { margin-top: 28px; padding: 24px; border: 1px solid var(--teal); background: var(--teal-soft); border-radius: 15px; }
.result[hidden] { display: none; }
.result-label { margin: 0 0 6px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-main { font-size: clamp(27px, 4vw, 40px); font-weight: 850; line-height: 1.25; letter-spacing: -.03em; margin: 0; }
.result-sub { color: #3c625c; margin: 8px 0 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.result-chip { background: rgba(255,255,255,.65); padding: 12px; border-radius: 10px; }
.result-chip b { display: block; font-size: 20px; }
.result-chip span { font-size: 12px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 22px; }
.inline-output { display: grid; gap: 10px; margin-top: 16px; }
.output-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.6); padding: 10px 12px; border-radius: 10px; }
.output-row code { overflow-wrap: anywhere; color: var(--ink); }
.copy-btn { border: 0; background: var(--surface); color: var(--teal); border-radius: 8px; padding: 6px 9px; cursor: pointer; font-weight: 700; }
.live-clock { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); font-variant-numeric: tabular-nums; font-size: 14px; margin-bottom: 20px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #31a36c; box-shadow: 0 0 0 5px rgba(49,163,108,.12); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.card-number { color: var(--accent); font-family: Georgia, serif; font-size: 34px; line-height: 1; margin-bottom: 15px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.prose p, .prose li { color: var(--muted); }
.prose h3 { margin-top: 30px; }
.prose ul { padding-left: 20px; }
.note-box { background: var(--yellow); border: 1px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1deg); }
.note-box h3 { margin-bottom: 8px; }
.note-box p { margin: 0; color: var(--ink); }
.faq { display: grid; gap: 12px; max-width: 900px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 19px; }
summary { cursor: pointer; font-weight: 750; padding: 17px 28px 17px 0; position: relative; }
summary::after { content: "+"; position: absolute; right: 0; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 18px; }
.cta-band { padding: 45px 0; }
.cta-inner { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 55px); display: flex; justify-content: space-between; align-items: center; gap: 25px; position: relative; overflow: hidden; }
.cta-inner::after { content: ""; width: 220px; aspect-ratio: 1; border: 40px solid rgba(244,201,93,.13); border-radius: 50%; position: absolute; right: 18%; top: -130px; }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(27px, 4vw, 40px); }
.cta-inner p { margin: 0; color: #b9cac6; }
.cta-inner .btn { background: var(--yellow); color: var(--ink); position: relative; z-index: 1; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 40px; }
.footer-about { color: var(--muted); max-width: 370px; font-size: 14px; }
.footer-title { font-weight: 800; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.page-hero { padding: 70px 0 38px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.page-hero p { max-width: 700px; color: var(--muted); font-size: 18px; }
.article { padding-bottom: 80px; }
.article-card { max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(25px, 5vw, 55px); box-shadow: var(--shadow); }
.article-card h2 { font-size: 27px; margin-top: 38px; }
.article-card h2:first-child { margin-top: 0; }
.article-card h3 { font-size: 19px; margin-top: 27px; }
.article-card p, .article-card li { color: #53645f; }
.article-card li + li { margin-top: 7px; }
.article-meta { display: inline-block; padding: 6px 10px; background: var(--teal-soft); color: var(--teal); border-radius: 7px; font-size: 13px; margin-bottom: 25px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.contact-side, .contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); }
.contact-side { background: var(--ink); color: #fff; }
.contact-side p { color: #b9cac6; }
.contact-list { display: grid; gap: 16px; margin-top: 30px; }
.contact-item strong { display: block; color: var(--yellow); font-size: 13px; }
.contact-item span, .contact-item a { color: #fff; font-size: 14px; }
.honeypot { position: absolute !important; left: -10000px !important; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 99; background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 16px; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.noscript { padding: 14px; background: #fff0c8; border-bottom: 1px solid #d0a032; text-align: center; }
@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .calendar-art { max-width: 390px; }
  .tools-shell { grid-template-columns: 1fr; }
  .tool-tabs { position: static; grid-template-columns: repeat(3, 1fr); }
  .tool-tab { justify-content: center; text-align: center; }
  .tool-tab .tab-label { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 14px; right: 14px; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; box-shadow: var(--shadow); align-items: stretch; flex-direction: column; gap: 4px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px; }
  .nav-cta { box-shadow: none; }
  .hero { padding-top: 50px; }
  .hero-grid { gap: 35px; }
  .trust-grid { grid-template-columns: 1fr; }
  .section { padding: 55px 0; }
  .section-head { display: block; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .output-row { grid-template-columns: 1fr auto; }
  .output-row span { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .cta-inner { display: block; }
  .cta-inner .btn { margin-top: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .calendar-sheet { padding: 28px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Site-controlled English calendar picker */
.date-input { padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.date-picker { position: fixed; z-index: 200; width: 310px; padding: 16px; background: #fff; border: 1px solid #b9c2be; border-radius: 14px; box-shadow: 0 18px 50px rgba(23,51,47,.22); color: var(--ink); }
.date-picker[hidden] { display: none; }
.date-picker-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 6px; margin-bottom: 12px; }
.date-picker-title { text-align: center; font-weight: 800; font-size: 15px; }
.date-picker-nav { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 21px; line-height: 1; }
.date-picker-nav:hover { border-color: var(--teal); background: var(--teal-soft); }
.date-picker-week, .date-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.date-picker-week span { padding: 5px 0 7px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.date-picker-day { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; }
.date-picker-day:hover { background: var(--teal-soft); }
.date-picker-day.is-outside { color: #9ba6a2; }
.date-picker-day.is-today { box-shadow: inset 0 0 0 1px var(--teal); font-weight: 800; }
.date-picker-day.is-selected { background: var(--teal); color: #fff; font-weight: 800; }
.date-picker-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.date-picker-action { border: 0; background: transparent; color: var(--teal); cursor: pointer; padding: 5px 7px; font-size: 13px; font-weight: 750; }
.date-picker-action:hover { color: var(--accent-dark); }
@media (max-width: 420px) { .date-picker { width: min(310px, calc(100vw - 24px)); } }
