/* Bloif — storefront dawn theme
   Cool mist blues + deep ink + vivid tangerine (commerce) + soft jade */

:root {
  --ink: #14202b;
  --ink-soft: #3a4a58;
  --mist: #d9e6ef;
  --sky: #b8d0e0;
  --paper: #f3f7fa;
  --white: #ffffff;
  --tangerine: #e85a1b;
  --tangerine-deep: #c44512;
  --jade: #1f8a7a;
  --jade-soft: #d4efe9;
  --line: rgba(20, 32, 43, 0.12);
  --shadow: 0 18px 40px rgba(20, 32, 43, 0.08);
  --radius: 4px;
  --font-display: "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  --font-body: "IBM Plex Sans KR", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(184, 208, 224, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(232, 90, 27, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #eef3f7 40%, var(--paper) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--jade);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tangerine-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.inline-error {
  background: #fde8e4;
  color: #8a2a12;
  padding: 0.75rem 1rem;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 250, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px 6px 14px 6px;
  background: linear-gradient(135deg, var(--tangerine) 0%, #ff8a4c 55%, var(--jade) 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--tangerine);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1.25rem;
  }

  .site-nav .nav-cta {
    margin: 0.5rem 1.25rem 0.85rem;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--tangerine);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--tangerine-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--ink);
  color: var(--white);
}

.btn-secondary:hover {
  background: #243445;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 1.05rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 32, 43, 0.88) 0%, rgba(20, 32, 43, 0.55) 48%, rgba(20, 32, 43, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 32, 43, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  animation: riseIn 0.9s ease both;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  max-width: 28ch;
  margin: 0 0 0.75rem;
  font-weight: 500;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero-support {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.hero-actions {
  animation: riseIn 0.9s ease 0.32s both;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(184, 208, 224, 0.35), transparent 60%),
    linear-gradient(0deg, transparent, rgba(31, 138, 122, 0.06));
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 1.08rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translateY(0);
  }
  to {
    transform: scale(1.12) translateY(-2%);
  }
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Feature / benefit rows — not cards by default */
.benefit-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.benefit-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--tangerine);
}

.benefit-row h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.benefit-row p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 48rem;
}

/* Course / content grids — interaction containers */
.course-grid,
.post-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.review-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .course-grid,
  .post-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
}

.course-item,
.post-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.course-item:hover,
.post-item:hover {
  transform: translateY(-4px);
}

.course-item figure,
.post-item figure {
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--mist);
}

.course-item img,
.post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-item:hover img,
.post-item:hover img {
  transform: scale(1.04);
}

.course-item h3,
.post-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.course-item p,
.post-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Quotes */
.quote-block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  max-width: 40rem;
}

.quote-block cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.review-piece {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.review-piece .stars {
  color: var(--tangerine);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.review-piece p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.case-study {
  margin-top: 2.5rem;
  padding: 2rem 0;
  border-top: 2px solid var(--ink);
}

.case-study h3 {
  font-size: 1.6rem;
}

/* Pricing tiers — interactive selection containers */
.tier {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tier:hover,
.tier.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.tier.is-featured {
  background: linear-gradient(165deg, rgba(31, 138, 122, 0.1), rgba(255, 255, 255, 0.7));
}

.tier h3 {
  font-size: 1.45rem;
  margin: 0;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin: 0.25rem 0;
}

.tier .price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.tier ul {
  margin: 0.5rem 0 1rem;
  flex: 1;
}

.tier li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tier li::before {
  content: "– ";
  color: var(--jade);
}

/* Forms */
.form-panel {
  max-width: 36rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.75rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #a03318;
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status--ok {
  background: var(--jade-soft);
  color: #0f5c50;
}

.form-status--err {
  background: #fde8e4;
  color: #8a2a12;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-details address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-list details p {
  color: var(--ink-soft);
  margin: 0.75rem 0 0.25rem;
}

/* Modules */
.module-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.module-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.module-list .mod-num {
  font-family: var(--font-display);
  color: var(--tangerine);
  font-size: 1.2rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #24384a 55%, #1a5c52 100%);
  color: var(--white);
  padding: 4rem 0;
  margin-top: 2rem;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  max-width: 16ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
}

.cta-band .btn-primary {
  margin-top: 0.5rem;
}

/* Legal prose */
.legal-body {
  max-width: 46rem;
  padding: 3rem 0 4.5rem;
}

.legal-body h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: rgba(184, 208, 224, 0.35);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 12vw, 6rem);
  margin-bottom: 0.25rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(20, 32, 43, 0.96);
  color: var(--white);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.cookie-banner-copy {
  flex: 1;
  min-width: 240px;
}

.cookie-banner-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #9fe0d4;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 1.25rem 1.5rem;
  margin-top: 0;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-tag {
  max-width: 22ch;
  font-size: 0.95rem;
}

.footer-heading {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Article */
.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.article-body {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.instructor {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.instructor img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.outcomes {
  margin: 1rem 0 0;
}

.outcomes li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-soft);
}

.outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--jade);
  border-radius: 1px;
}

.prose-wide {
  max-width: 40rem;
}

.muted {
  color: var(--ink-soft);
}
