/*
Theme Name: Offerscodes Renewal
Template: offerscodes
Version: 1.0.0
Description: 오퍼코드 2026 리뉴얼 자식 테마
*/

:root {
  --c1: #4F46E5;
  --c2: #1B1F27;
}

body { font-size: 17px; line-height: 1.75; }
.oc-wrap { width: min(1120px, calc(100% - 32px)); }
.oc-head { background: color-mix(in srgb, var(--c1) 4%, var(--bg)); }
.oc-head-in { min-height: 72px; gap: 20px; }
.oc-logo, .oc-nav a, .oc-foot-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.oc-nav { gap: 4px; }
.oc-skip { min-height: 44px; display: inline-flex; align-items: center; }

.oc-hero-renewal {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 40px;
  padding: 56px 0 48px;
}
.oc-hero-renewal__eyebrow, .oc-kicker {
  margin: 0 0 12px;
  color: var(--c1);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}
.oc-hero-renewal h1 { margin: 0; max-width: 15ch; font-size: clamp(36px, 5vw, 56px); line-height: 1.14; letter-spacing: -.045em; }
.oc-hero-renewal__lede { max-width: 38rem; margin: 20px 0 0; color: var(--sub); font-size: 19px; }
.oc-hero-renewal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.oc-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--c2); font-weight: 800; text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.oc-button--primary { border-color: var(--c1); background: var(--c1); color: var(--bg); }
.oc-button:hover, .oc-card:hover, .oc-hub:hover, .oc-path:hover { transform: translateY(-2px); }
.oc-hero-renewal__visual { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--c1) 6%, var(--bg)); }
.oc-hero-renewal__visual img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }

.oc-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 64px; padding: 0; list-style: none; }
.oc-proof li { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.oc-proof strong { display: block; margin-bottom: 4px; color: var(--c2); }
.oc-proof span { display: block; color: var(--sub); font-size: 15px; line-height: 1.55; }
.oc-icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.oc-sec { padding-block: 56px; }
.oc-sec + .oc-sec { border-top: 1px solid var(--line); }
.oc-sec__head { position: relative; padding-right: 132px; }
.oc-sec__title { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.025em; }
.oc-sec__more { min-height: 44px; display: inline-flex; align-items: center; }
.oc-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.oc-path { display: flex; gap: 14px; min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--c2); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease; }
.oc-path:hover { border-color: var(--c1); }
.oc-path strong, .oc-path span { display: block; }
.oc-path span { margin-top: 3px; color: var(--sub); font-size: 14px; line-height: 1.5; }
.oc-hubs { grid-template-columns: repeat(4, 1fr); }
.oc-hub { min-height: 128px; transition: transform 180ms ease, border-color 180ms ease; }
.oc-grid { gap: 16px; }
.oc-card { box-shadow: none; transition: transform 180ms ease, border-color 180ms ease; }
.oc-card:hover { border-color: var(--c1); }

.entry > p:first-child:not(.oc-disclosure):not(.oc-checked-line) { padding: 18px 20px; border-left: 4px solid var(--c1); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--c1) 6%, var(--bg)); color: var(--c2); font-weight: 650; }
.entry img, article > img.wp-post-image { border: 1px solid var(--line); border-radius: 12px; }
.oc-toc a, .oc-next a { min-height: 44px; display: flex; align-items: center; }
.oc-faq summary { min-height: 48px; display: flex; align-items: center; }

.oc-breadcrumb { margin: 24px 0 12px; color: var(--sub); font-size: 14px; }
.oc-breadcrumb a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.oc-foot p a { min-height: 44px; display: inline-flex; align-items: center; }

.oc-tool { max-width: 760px; }
.oc-tool-form { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--c1) 4%, var(--bg)); }
.oc-tool-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.oc-field label { display: block; margin-bottom: 6px; font-weight: 750; }
.oc-field select, .oc-field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--c2); font: inherit; }
.oc-tool-form .oc-button { margin-top: 16px; }
.oc-result { margin-top: 24px; padding: 22px; border: 1px solid var(--c1); border-radius: 12px; background: var(--bg); }
.oc-result__amount { display: block; font-size: 32px; font-weight: 850; color: var(--c1); font-variant-numeric: tabular-nums; }
.oc-result__detail { margin: 4px 0 0; color: var(--sub); }
.oc-tool-note { margin-top: 20px; font-size: 14px; color: var(--sub); }

.oc-reveal { opacity: 1; }
.oc-reveal.is-visible { animation: oc-rise 420ms ease both; }
@keyframes oc-rise { from { opacity: .65; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .oc-hero-renewal { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .oc-hero-renewal__visual { order: -1; }
  .oc-proof, .oc-paths { grid-template-columns: 1fr; }
  .oc-hubs { grid-template-columns: repeat(2, 1fr); }
  .oc-tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .oc-wrap { width: min(100% - 24px, 1120px); }
  .oc-hero-renewal h1 { font-size: 38px; }
  .oc-hero-renewal__lede { font-size: 17px; }
  .oc-hero-renewal__actions .oc-button { width: 100%; }
  .oc-hubs { grid-template-columns: 1fr; }
  .oc-sec { padding-block: 44px; }
  .oc-sec__head { padding-right: 0; }
  .oc-sec__more { position: static; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .oc-button:hover, .oc-card:hover, .oc-hub:hover, .oc-path:hover { transform: none; }
}
