:root {
  --background: #fafaf7;
  --paper: #fffefa;
  --primary: #64776a;
  --primary-dark: #52675a;
  --primary-soft: #e8eee7;
  --ink: #2f3933;
  --muted: #6b746d;
  --surface: #eef0eb;
  --outline: #dde2da;
  --warm: #d9a276;
  --warm-soft: #f6eadf;
  --error: #a86560;
  --shadow: 0 24px 70px rgba(47, 57, 51, 0.09);
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid rgba(217, 162, 118, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(221, 226, 218, 0.75);
  background: rgba(250, 250, 247, 0.94);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 22px;
  border: 1.8px solid var(--primary);
  border-radius: 50% 50% 45% 45%;
  background: var(--primary-soft);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--primary-soft);
}

.brand-mark::before {
  width: 13px;
  height: 13px;
  left: 1px;
  top: -5px;
  border: 1.8px solid var(--primary);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.brand-mark::after {
  width: 17px;
  height: 15px;
  right: 1px;
  top: -7px;
  border: 1.8px solid var(--primary);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.brand-mark span {
  z-index: 1;
  width: 22px;
  height: 10px;
  left: 2px;
  top: 2px;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.footer-nav a,
.text-link {
  transition: color 150ms ease;
}

.site-nav a:hover,
.footer-nav a:hover,
.text-link:hover,
.site-nav [aria-current="page"],
.footer-nav [aria-current="page"] {
  color: var(--primary-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 128px) 0 clamp(82px, 12vw, 150px);
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -230px;
  right: -160px;
  border-radius: 50%;
  background: rgba(232, 238, 231, 0.65);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: clamp(62px, 8vw, 108px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero-lead {
  margin: 36px 0 0;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.hero-note {
  max-width: 470px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(82, 103, 90, 0.2);
  transition: background 150ms ease, transform 150ms ease;
}

.button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.diary-visual {
  position: relative;
  min-height: 525px;
}

.diary-paper {
  position: absolute;
  z-index: 2;
  top: 36px;
  left: 5%;
  width: 86%;
  min-height: 425px;
  padding: 40px 39px;
  border: 1px solid rgba(221, 226, 218, 0.9);
  border-radius: 25px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.8deg);
}

.paper-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--outline);
  color: var(--muted);
  font-size: 12px;
}

.diary-paper h2 {
  margin: 40px 0 20px;
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.diary-paper p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 15px;
  line-height: 2.05;
}

.paper-lines {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.paper-lines i {
  height: 1px;
  background: var(--outline);
}

.paper-lines i:nth-child(3) {
  width: 64%;
}

.paper-weather {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #8b6548;
  font-size: 12px;
}

.paper-weather span {
  color: var(--warm);
  font-size: 16px;
}

.reply-card {
  position: absolute;
  z-index: 3;
  right: -4%;
  bottom: 15px;
  width: 275px;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 18px 48px rgba(47, 57, 51, 0.11);
}

.reply-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.reply-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 5px var(--warm-soft);
}

.sun {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--warm);
  opacity: 0.84;
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  inset: -17px 27px;
  width: 4px;
  border-radius: 3px;
  background: var(--warm);
}

.sun::after {
  transform: rotate(90deg);
}

.cloud {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: -37px;
  width: 118px;
  height: 49px;
  border: 2px solid #849789;
  border-radius: 999px;
  background: var(--primary-soft);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border: 2px solid #849789;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: var(--primary-soft);
}

.cloud::before {
  width: 45px;
  height: 32px;
  left: 13px;
  top: -25px;
}

.cloud::after {
  width: 60px;
  height: 46px;
  right: 13px;
  top: -39px;
}

.cloud span {
  position: absolute;
  z-index: 1;
  inset: 1px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
}

.section {
  padding: clamp(86px, 11vw, 142px) 0;
}

.intro {
  border-top: 1px solid var(--outline);
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(60px, 10vw, 150px);
}

.intro h2,
.section-heading h2,
.privacy-card h2,
.company-grid h2,
.contact-inner h2,
.legal-header h1,
.support-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.36;
}

.intro h2,
.privacy-card h2,
.section-heading h2,
.contact-inner h2 {
  font-size: clamp(34px, 4vw, 51px);
}

.intro-copy {
  padding-top: 35px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.intro-copy p {
  margin: 0 0 22px;
}

.features-section {
  background: var(--background);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 54px;
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 6px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: 19px;
  background: var(--paper);
}

.feature-large {
  grid-column: span 2;
  background: var(--primary);
  color: #fff;
}

.feature-warm {
  background: var(--warm-soft);
}

.feature-card h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.feature-large p {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.76);
}

.feature-number {
  position: absolute;
  top: 20px;
  right: 21px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.feature-large .feature-number {
  color: rgba(255, 255, 255, 0.58);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 25px;
}

.feature-large .feature-icon {
  background: rgba(255, 255, 255, 0.13);
}

.icon-note::before {
  content: "";
  width: 22px;
  height: 28px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.1);
}

.feature-compact {
  min-height: 175px;
  padding-top: 40px;
}

.feature-compact h3 {
  margin-top: 20px;
}

.privacy-section {
  background: var(--paper);
}

.privacy-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.4fr 1fr 0.9fr;
  align-items: center;
  gap: 55px;
  padding: clamp(38px, 6vw, 74px);
  border-radius: 30px;
  background: var(--primary-soft);
}

.privacy-symbol {
  position: relative;
  width: 114px;
  height: 140px;
  margin: auto;
  border: 3px solid var(--primary);
  border-radius: 57px 57px 28px 28px;
}

.privacy-symbol::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 48px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.privacy-symbol::after {
  content: "";
  position: absolute;
  left: 51px;
  top: 77px;
  width: 3px;
  height: 25px;
  border-radius: 3px;
  background: var(--primary);
}

.privacy-copy p {
  margin: 0 0 24px;
  color: var(--muted);
}

.company-section {
  background: var(--background);
}

.company-grid {
  display: grid;
  grid-template-columns: 0.42fr 1.2fr 0.55fr;
  align-items: start;
  gap: 60px;
}

.company-grid h2 {
  max-width: 680px;
  font-size: clamp(34px, 4.3vw, 57px);
}

.company-grid > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  padding: 82px 0;
  background: var(--ink);
  color: #fff;
}

.contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.contact-inner .section-label {
  color: #a9b6ac;
}

.contact-link {
  min-width: 330px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.site-footer {
  padding: 60px 0 42px;
  border-top: 1px solid var(--outline);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 45px;
}

.footer-brand {
  margin-bottom: 15px;
}

.footer-grid > div p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-top: 25px;
  border-top: 1px solid var(--outline);
  color: #8a918c;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.compact-footer {
  padding-top: 43px;
}

.compact-footer .footer-grid {
  grid-template-columns: 1fr auto;
}

.compact-footer .copyright {
  grid-column: 1 / -1;
}

.legal-main,
.support-main {
  min-height: 70vh;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.2fr);
  gap: clamp(70px, 11vw, 150px);
  padding-top: clamp(74px, 9vw, 118px);
  padding-bottom: clamp(90px, 11vw, 145px);
}

.legal-header {
  position: sticky;
  top: 50px;
  align-self: start;
}

.legal-header h1,
.support-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.legal-header > p:not(.section-label),
.support-hero > p:not(.section-label) {
  margin: 22px 0 0;
  color: var(--muted);
}

.legal-header .policy-date {
  display: inline-flex;
  gap: 9px;
  margin-top: 24px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
}

.legal-intro {
  margin-top: 31px;
  padding-top: 27px;
  border-top: 1px solid var(--outline);
}

.legal-intro p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.legal-content {
  border-top: 1px solid var(--outline);
}

.legal-content section {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  padding: 31px 0 34px;
  border-bottom: 1px solid var(--outline);
}

.legal-content section > span {
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.legal-content h2 {
  margin: 0 0 11px;
  font-size: 18px;
}

.legal-content h3 {
  margin: 30px 0 11px;
  color: var(--primary-dark);
  font-size: 15px;
}

.legal-content p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 7px;
  margin: 15px 0 20px;
  padding: 17px 19px 17px 38px;
  border-radius: 12px;
  background: rgba(232, 238, 231, 0.55);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-content ol {
  padding-left: 42px;
}

.legal-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
}

.policy-dates p {
  margin: 0;
  font-size: 12px;
}

.support-hero {
  padding-top: clamp(74px, 9vw, 118px);
  padding-bottom: 58px;
  text-align: center;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.support-card {
  min-height: 420px;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: var(--paper);
}

.support-primary {
  background: var(--primary-soft);
}

.support-tag {
  display: inline-block;
  margin-bottom: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(100, 119, 106, 0.1);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.support-card h2 {
  margin: 0 0 15px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.support-card > p {
  max-width: 450px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.support-card .button {
  margin-top: 11px;
}

.support-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.support-list {
  display: grid;
  gap: 0;
  margin: 34px 0 24px;
  padding: 0;
  list-style: none;
}

.support-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--outline);
  font-size: 14px;
}

.support-list li span {
  color: var(--primary);
  font-size: 10px;
}

.support-warning {
  font-size: 12px !important;
}

.support-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding-top: 17px;
  padding-bottom: clamp(90px, 11vw, 145px);
}

.support-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border: 1px solid var(--outline);
  border-radius: 15px;
  background: var(--paper);
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .hero-copy {
    max-width: 670px;
  }

  .diary-visual {
    width: min(100%, 580px);
    margin-inline: auto;
  }

  .intro-grid,
  .section-heading,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .section-heading > p,
  .company-grid > p:last-child {
    max-width: 570px;
    margin-top: 0;
  }

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

  .privacy-card {
    grid-template-columns: 0.35fr 1fr;
  }

  .privacy-copy {
    grid-column: 2;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .legal-header {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    gap: 15px;
    font-size: 12px;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .brand-mark {
    width: 25px;
    height: 20px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero::before {
    width: 370px;
    height: 370px;
  }

  .hero h1 {
    font-size: clamp(59px, 20vw, 82px);
  }

  .hero-lead {
    margin-top: 28px;
    font-size: 21px;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .diary-visual {
    min-height: 430px;
  }

  .diary-paper {
    top: 25px;
    left: 3%;
    width: 92%;
    min-height: 360px;
    padding: 29px 25px;
  }

  .diary-paper h2 {
    margin-top: 31px;
    font-size: 25px;
  }

  .diary-paper p {
    font-size: 13px;
  }

  .paper-weather {
    margin-top: 22px;
  }

  .reply-card {
    right: 0;
    width: 235px;
  }

  .sun {
    right: 15px;
    width: 48px;
    height: 48px;
  }

  .cloud {
    display: none;
  }

  .section-heading {
    margin-bottom: 38px;
  }

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

  .feature-large {
    grid-column: auto;
  }

  .feature-card,
  .feature-compact {
    min-height: 205px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    gap: 32px;
    border-radius: 22px;
  }

  .privacy-symbol {
    width: 86px;
    height: 105px;
    margin: 0;
    border-radius: 43px 43px 22px 22px;
  }

  .privacy-symbol::before {
    left: 27px;
    top: 35px;
    width: 26px;
    height: 26px;
  }

  .privacy-symbol::after {
    left: 38px;
    top: 58px;
    height: 19px;
  }

  .privacy-copy {
    grid-column: auto;
  }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 35px;
  }

  .contact-link {
    width: 100%;
    min-width: 0;
  }

  .footer-grid,
  .compact-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .copyright,
  .compact-footer .copyright {
    grid-column: auto;
    margin-top: 5px;
  }

  .legal-content section {
    grid-template-columns: 36px 1fr;
  }

  .support-grid,
  .support-links {
    grid-template-columns: 1fr;
  }

  .support-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
