/* ==========================================================================
   BASE LAYOUT / SHARED
   Global reset, typography, containers, header, navigation, and shared cards.
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(37, 99, 235, .10), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(249, 115, 91, .12), transparent 24%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 48%, #fff 100%);
  color: var(--text);
  font-family: system-ui, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 44px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(240, 217, 211, 0.78);
  backdrop-filter: blur(20px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 950; }
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 17px;
  background: url("/brand/ondo-mark-512.png") center / cover no-repeat;
  box-shadow: var(--shadow-coral);
}
.brand-mark::before {
  content: none;
}
.brand-copy { display: grid; gap: 0; line-height: 1; }
.brand-text { font-size: 24px; letter-spacing: -0.03em; }
.brand-sub { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid transparent; border-radius: var(--pill);
  color: #475569; font-size: 14px; font-weight: 850;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--surface-soft); border-color: var(--line-strong); color: var(--primary-dark); outline: 0; }
.site-nav .nav-cta { background: var(--ink); color: #fff; box-shadow: var(--shadow-xs); }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: var(--primary); border-color: transparent; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-coral); }
.site-main { min-height: calc(100vh - 180px); }

.home-hero { position: relative; overflow: hidden; padding: 86px 0 72px; }
.hero-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(4px); }
.hero-glow-a { top: 72px; left: -120px; width: 280px; height: 280px; background: rgba(255, 107, 107, .13); }
.hero-glow-b { right: -130px; bottom: 40px; width: 330px; height: 330px; background: rgba(255, 138, 101, .12); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--primary-dark); font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.hero-copy h1, .tool-header h1, .tool-hero h1 {
  max-width: 820px; margin: 8px 0 18px; color: var(--ink);
  font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.065em;
}
.hero-copy p, .tool-title-card p { max-width: 680px; margin: 0; color: #475569; font-size: 18px; font-weight: 620; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-link, .secondary-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 18px; border-radius: var(--pill); font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.primary-link { background: var(--primary); color: #fff; box-shadow: var(--shadow-coral); }
.primary-link:hover { background: var(--primary-dark); transform: translateY(-1px); }
.secondary-link { background: rgba(255,255,255,.72); border: 1px solid var(--line); color: var(--ink); }
.secondary-link:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-trust span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px;
  background: rgba(255,255,255,.74); border: 1px solid rgba(240,217,211,.9); border-radius: var(--pill);
  color: #475569; font-size: 13px; font-weight: 850; box-shadow: var(--shadow-xs);
}
.hero-panel {
  position: relative; padding: clamp(24px, 4vw, 38px); overflow: hidden;
  background: rgba(255,255,255,.9); border: 1px solid rgba(240,217,211,.86); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(18px);
}
.hero-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.panel-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.panel-topline strong { color: var(--primary-dark); }
.search-label { display: block; margin-bottom: 12px; color: var(--ink); font-size: 22px; font-weight: 950; letter-spacing: -0.04em; }
.search-field {
  display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 0 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.search-field:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 6px rgba(255,107,107,.13); }
.search-icon { position: relative; display: inline-block; flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid var(--primary); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 8px; height: 2px; background: var(--primary); border-radius: 2px; transform: rotate(45deg); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 17px; font-weight: 700; }
.search-field input:focus,
.search-field input:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}
.search-field input::placeholder { color: var(--muted-2); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hero-metrics div { padding: 14px 12px; background: var(--bg); border: 1px solid rgba(240,217,211,.82); border-radius: 18px; }
.hero-metrics strong { display: block; color: var(--ink); font-size: 20px; line-height: 1.1; }
.hero-metrics span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }

.section { padding: 66px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.section-heading h2, .section-card-head h2, .panel-heading h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -0.055em; }
.section-heading p:not(.eyebrow) { max-width: 620px; margin: 6px 0 0; color: var(--muted); font-weight: 620; }
.category-jump { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.category-jump a { padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); color: var(--primary-dark); font-size: 13px; font-weight: 900; box-shadow: var(--shadow-xs); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tool-card {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 96px; padding: 14px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(240,217,211,.9); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card::after { content: none; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-md); outline: 0; }
.tool-card:hover::after, .tool-card:focus-visible::after { content: none; }
.tool-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 12px; font-weight: 950; box-shadow: var(--shadow-coral);
}
.tool-icon--svg { font-size: 0; line-height: 0; }
.tool-icon-svg { display: block; width: 24px; height: 24px; color: currentColor; flex: 0 0 auto; }
.side-card-icon.tool-icon--svg { display: inline-grid; place-items: center; }
.related-list .tool-icon-svg { width: 22px; height: 22px; }
.tool-card-body { display: grid; gap: 3px; min-width: 0; }
.tool-card-meta { width: fit-content; padding: 5px 10px; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: var(--pill); color: var(--primary-dark); font-size: 12px; font-weight: 950; }
.tool-card strong { display: block; margin-top: 0; color: var(--ink); font-size: 16px; line-height: 1.28; letter-spacing: -0.035em; }
.tool-card small {
  display: -webkit-box; color: var(--muted); font-size: 12px; line-height: 1.38;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.category-block { padding: 24px; background: rgba(255,255,255,.72); border: 1px solid rgba(226,232,240,.92); border-radius: 22px; box-shadow: var(--shadow-xs); }
.category-block + .category-block { margin-top: 28px; }
.category-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.category-heading h3 { margin: 0; color: var(--ink); font-size: 25px; letter-spacing: -0.04em; }
.category-heading p { margin: 5px 0 0; color: var(--muted); }
.category-heading span { flex: 0 0 auto; padding: 7px 12px; background: var(--info-bg); border: 1px solid #c6edf8; border-radius: var(--pill); color: var(--info); font-size: 13px; font-weight: 950; }
.empty-state { margin: 0 0 24px; padding: 24px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); text-align: center; box-shadow: var(--shadow-xs); }

.tool-page { padding: 50px 0 78px; }
.tool-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: stretch; margin-bottom: 24px; }
.tool-title-card, .tool-side-card, .calculator-panel, .section-card {
  background: rgba(255,255,255,.92); border: 1px solid rgba(226,232,240,.92); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.tool-title-card {
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .05), transparent 34%),
    rgba(255,255,255,.94);
}
.tool-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.tool-meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.tool-meta-row span, .tool-hero-note { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: var(--pill); font-size: 13px; font-weight: 950; }
.tool-meta-row span:first-child { background: var(--primary); color: #fff; }
.tool-meta-row span:not(:first-child), .tool-hero-note { background: var(--surface-soft); border: 1px solid var(--line-strong); color: var(--primary-dark); }
.tool-hero-note { width: fit-content; margin-top: 24px; }

.tool-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-quick-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: rgba(255,255,255,.78); color: var(--ink);
  font-size: 13px; font-weight: 950; box-shadow: var(--shadow-xs);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.tool-quick-link:hover, .tool-quick-link:focus-visible {
  background: #fff; border-color: var(--primary); color: var(--primary-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-sm); outline: 0;
}

.tool-side-card { display: flex; flex-direction: column; justify-content: center; padding: 28px; background: var(--ink); color: #fff; }
.side-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 22px; background: rgba(255,255,255,.13); color: #fff; font-weight: 950; }
.tool-side-card strong { font-size: 20px; letter-spacing: -0.04em; }
.tool-side-card p { margin: 8px 0 20px; color: #cbd5e1; }
.tool-side-card a { display: inline-flex; justify-content: center; width: fit-content; padding: 10px 14px; border-radius: var(--pill); background: #fff; color: var(--ink); font-weight: 950; }
.notice-box { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; padding: 18px 20px; background: var(--info-bg); border: 1px solid #c6edf8; border-radius: var(--radius-lg); color: #155e75; box-shadow: var(--shadow-xs); }
.notice-icon { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--info); color: #fff; font-size: 15px; font-weight: 950; }
.notice-box strong { display: block; margin-bottom: 2px; color: #0e7490; font-weight: 950; }
.notice-list ul { margin: 8px 0 0; padding-left: 18px; }
.notice-list li + li { margin-top: 6px; }
.ad-slot { display: grid; place-items: center; min-height: 96px; margin: 18px 0; background: rgba(255,255,255,.52); border: 1px solid rgba(240,217,211,.65); border-radius: var(--radius-lg); }
.calculator-panel { padding: clamp(26px, 4vw, 44px); }
.panel-heading { margin-bottom: 22px; }
.form-grid { display: grid; }
label { display: grid; color: var(--ink); font-weight: 950; }
input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); outline: 0; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 6px rgba(255,107,107,.13); }
.bizdays-input-layout {
  display: grid;
  gap: 14px;
}
.bizdays-compact-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(240,217,211,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-xs);
}
.bizdays-native-mode {
  display: none;
}
.bizdays-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bizdays-mode-tab {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255,111,97,.22);
  border-radius: 999px;
  background: rgba(255,245,242,.72);
  color: var(--muted);
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
}
.bizdays-mode-tab.is-active {
  border-color: rgba(255,111,97,.55);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.bizdays-active-fields {
  display: grid;
  gap: 10px;
}
.bizdays-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.bizdays-compact-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.bizdays-compact-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}
.bizdays-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bizdays-options-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.bizdays-options-row--nth {
  grid-template-columns: 1.25fr .75fr;
}
.bizdays-compact-panel label {
  gap: 5px;
}
.bizdays-compact-panel input,
.bizdays-compact-panel select,
.bizdays-compact-panel textarea {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
}
.bizdays-exclude-area {
  border-top: 1px solid rgba(240,217,211,.82);
  padding-top: 8px;
}
.bizdays-exclude-area summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}
.bizdays-exclude-area[open] {
  display: grid;
  gap: 8px;
}
.bizdays-mode-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(240,217,211,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-xs);
}
.bizdays-panel-head {
  display: grid;
  gap: 3px;
}
.bizdays-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}
.bizdays-panel-head p,
.bizdays-help-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}
.bizdays-date-row,
.bizdays-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.bizdays-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bizdays-preset-row button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255,111,97,.28);
  background: rgba(255,245,242,.86);
  color: var(--primary-dark);
  box-shadow: none;
  font-size: 13px;
}
.bizdays-exclude-box textarea {
  min-height: 64px;
}
.timezone-input-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.timezone-date-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(240,217,211,.86);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
}
.timezone-date-field {
  flex: 0 1 260px;
  min-width: 210px;
}
.timezone-date-help {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}
.timezone-team-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(240,217,211,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-xs);
}
.timezone-team-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}
.timezone-team-card__hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}
.timezone-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.timezone-team-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}
