
:root{
  --bg:#ffffff;
  --panel:#f7f7f8;
  --text:#171717;
  --muted:#666a73;
  --border:#e5e7eb;
  --accent:#111827;
  --accentText:#ffffff;
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.site{
  width:min(960px,calc(100% - 28px));
  margin:0 auto;
}
header{
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.96);
  position:sticky;
  top:0;
  z-index:10;
}
.header-inner{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
}
.brand{
  font-weight:800;
  letter-spacing:-.03em;
  font-size:1.1rem;
  white-space:nowrap;
  margin-right:64px;
}
.brand::after{
  content:"™";
  font-size:1em;
  vertical-align:baseline;
  margin-left:1px;
  font-weight:inherit;
  letter-spacing:0;
}
.locales{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  overflow-x:auto;
  padding:4px 40px 4px 0;
  flex:1;
  min-width:0;
  scrollbar-width:none;
}
.locales::-webkit-scrollbar{display:none}
.locale{
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  width:42px;
  height:38px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.35rem;
  line-height:1;
  flex:0 0 auto;
}
.locale:hover{background:var(--panel)}
.locale[aria-pressed="true"]{
  border-color:transparent;
  background:var(--panel);
  box-shadow:inset 0 0 0 2px var(--text);
}
main{padding:38px 0 56px}
.hero{
  padding:18px 0 30px;
}
.hero h1{
  font-size:clamp(2.1rem,7vw,4.4rem);
  letter-spacing:-.06em;
  line-height:.98;
  margin:0 0 14px;
  max-width:780px;
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:clamp(1rem,2.7vw,1.22rem);
  max-width:660px;
}
.tool-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.tool-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  min-height:132px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform .15s ease,border-color .15s ease;
}
.tool-card:hover{transform:translateY(-2px);border-color:#bbbfc8}
.tool-card h2{
  margin:0 0 8px;
  font-size:1.12rem;
  letter-spacing:-.02em;
}
.tool-card p{margin:0;color:var(--muted);font-size:.95rem}
.go{margin-top:20px;font-weight:750}
.breadcrumb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--ink);
  margin-bottom:20px;
  font-size:.94rem;
  font-weight:700;
}
.tool-shell{
  max-width:720px;
}
.tool-shell h1{
  font-size:clamp(2rem,6vw,3.6rem);
  letter-spacing:-.055em;
  line-height:1;
  margin:0 0 10px;
}
.tool-intro{
  color:var(--muted);
  margin:0 0 28px;
  font-size:1.04rem;
}
.panel{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  background:var(--panel);
}
.fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.field{min-width:0}
.field.full{grid-column:1/-1}
label{
  display:block;
  font-size:.9rem;
  font-weight:700;
  margin-bottom:7px;
}
input,select,textarea{
  width:100%;
  min-height:50px;
  border:1px solid #cfd2d8;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  padding:11px 13px;
  outline:none;
  font-size:16px;
}
textarea{min-height:180px;resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:var(--text);
  box-shadow:0 0 0 2px rgba(17,24,39,.08)
}
.action{
  min-height:50px;
  border:0;
  border-radius:12px;
  padding:0 18px;
  background:var(--accent);
  color:var(--accentText);
  font-weight:800;
}
.action.secondary{
  background:#fff;
  color:var(--text);
  border:1px solid #cfd2d8;
}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.result{
  margin-top:18px;
  border-radius:15px;
  padding:18px;
  background:#fff;
  border:1px solid var(--border);
}
.result-label{
  color:var(--muted);
  font-size:.84rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.result-value{
  margin-top:5px;
  font-size:clamp(1.65rem,7vw,3.4rem);
  font-weight:850;
  letter-spacing:-.05em;
  line-height:1.08;
  overflow-wrap:anywhere;
}
.result-sub{
  margin-top:7px;
  color:var(--muted);
  font-size:.95rem;
}
.quick-links{
  margin-top:28px;
  border-top:1px solid var(--border);
  padding-top:22px;
}
.quick-links h2{font-size:1rem;margin:0 0 10px}
.quick-links nav{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 11px;
  font-size:.9rem;
}
.note{color:var(--muted);font-size:.88rem;margin-top:14px}
footer{
  border-top:1px solid var(--border);
  color:var(--muted);
  padding:26px 0 38px;
  font-size:.88rem;
}

.calendar-note{
  margin-top:7px;
  color:var(--muted);
  font-size:.86rem;
  line-height:1.35;
}
.calendar-note:empty{display:none}


.calendar-switch{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.switch-label{
  font-size:.9rem;
  font-weight:700;
  color:var(--muted);
}
.switch-pills{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
}
.switch-chip{
  min-height:36px;
  border:1px solid transparent;
  border-radius:999px;
  background:#fff;
  color:var(--text);
  padding:0 12px;
  font-weight:700;
}
.switch-chip[aria-pressed="true"]{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}
.alt-date-wrap{margin-top:10px}
.thai-date-grid{
  display:grid;
  grid-template-columns:.85fr 1.2fr 1fr;
  gap:10px;
}

.field-hint{
  margin-top:6px;
  color:var(--muted);
  font-size:.84rem;
}
.option-details{
  margin-top:18px;
  border-top:1px solid var(--border);
  padding-top:14px;
}
.option-details summary{
  cursor:pointer;
  font-weight:800;
  user-select:none;
}
.option-details[open] summary{margin-bottom:10px}
.details-hint{margin:0 0 12px}
.panel-section{margin:0}
.section-title{
  margin:0 0 14px;
  font-size:1rem;
  letter-spacing:-.015em;
}
.section-divider{
  border:0;
  border-top:1px solid var(--border);
  margin:24px 0;
}

.hidden{display:none!important}
@media(max-width:620px){
  .site{width:min(100% - 22px,960px)}
  .header-inner{min-height:64px;align-items:center}
  .brand{font-size:.88rem;margin-right:16px}
  .header-inner{gap:0}
  .locales{gap:3px;justify-content:flex-start;padding-right:0}
  .locale{width:35px;height:34px;font-size:1.12rem;border-radius:9px}
  .hero h1{font-size:clamp(2rem,12vw,3rem)}
  .hero{padding:12px 0 24px}
  .tool-card{padding:16px;min-height:122px}
  main{padding-top:22px}
  .tool-grid{grid-template-columns:1fr}
  .fields{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .panel{padding:16px}
  .calendar-switch{align-items:flex-start}
  .switch-label{width:100%}
  .thai-date-grid{grid-template-columns:1fr 1fr 1fr}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}

/* V1.8 launch-readiness */
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.info-home{font-weight:700;color:var(--muted)}
.prose{max-width:720px;padding:10px 0 18px}
.prose h1{font-size:clamp(2rem,6vw,3.5rem);letter-spacing:-.05em;line-height:1;margin:0 0 22px}
.prose h2{font-size:1.18rem;margin:28px 0 8px}
.prose p{color:#333842;margin:0 0 15px}
.inline-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-top:8px}
@media (max-width:640px){.footer-inner{align-items:flex-start;flex-direction:column;gap:10px}.footer-links{gap:12px}}
