:root {
  --ink: #172238;
  --ink-soft: #4b566a;
  --paper: #fbf8f1;
  --paper-deep: #f4efe4;
  --card: #ffffff;
  --line: #e6dfd3;
  --orange: #f26b38;
  --orange-dark: #d95123;
  --orange-soft: #fff0e8;
  --teal: #1d847f;
  --teal-soft: #e5f4f1;
  --yellow: #f6c85f;
  --green: #2c8a61;
  --red: #c44b4b;
  --shadow: 0 18px 50px rgba(44, 39, 31, 0.09);
  --shadow-small: 0 8px 24px rgba(44, 39, 31, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(246, 200, 95, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(29, 132, 127, 0.1), transparent 26rem),
    var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2h1v1H2zM42 22h1v1h-1zM18 58h1v1h-1z' fill='%23998f7d' fill-opacity='.3'/%3E%3C/svg%3E");
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 1000;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}

.skip-link:focus {
  width: auto;
  height: auto;
  padding: 10px 16px;
  overflow: visible;
  clip-path: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.86);
  border-bottom: 1px solid rgba(230, 223, 211, 0.76);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--orange);
  border-radius: 14px 14px 14px 5px;
  transform: rotate(-3deg);
  box-shadow: 0 6px 18px rgba(242, 107, 56, 0.28);
}

.brand-mark::after {
  position: absolute;
  width: 20px;
  height: 20px;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--orange-dark);
}

.nav-saved {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: -0.025em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta {
  min-height: 42px;
  padding-inline: 17px;
  color: #fff;
  background: var(--ink);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav-cta:focus-visible,
.icon-button:focus-visible,
.scene-tab:focus-visible {
  outline: 3px solid rgba(242, 107, 56, 0.28);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(242, 107, 56, 0.25);
}

.button-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 16px 36px rgba(242, 107, 56, 0.3);
}

.button-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 34, 56, 0.19);
}

.button-light {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-small);
}

.button-ghost {
  min-height: 42px;
  padding-inline: 14px;
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1,
.landing-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.072em;
}

.hero h1 em,
.landing-hero h1 em {
  position: relative;
  color: var(--orange);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 10px;
  z-index: -1;
  content: "";
  background: var(--yellow);
  border-radius: 50%;
  transform: rotate(-1deg);
  opacity: 0.52;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.hero-trust li::before {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-right: 7px;
  place-items: center;
  color: #fff;
  content: "✓";
  background: var(--teal);
  border-radius: 50%;
  font-size: 11px;
}

.passport-card {
  position: relative;
  width: min(100%, 480px);
  margin-left: auto;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--ink);
  border-radius: 34px 34px 34px 10px;
  box-shadow: 0 36px 80px rgba(23, 34, 56, 0.24);
  transform: rotate(2deg);
}

.passport-card::before {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 100px;
  height: 100px;
  content: "";
  border: 2px dashed rgba(242, 107, 56, 0.55);
  border-radius: 50%;
  transform: rotate(15deg);
}

.passport-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.passport-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.passport-title {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.passport-stamp {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--yellow);
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transform: rotate(10deg);
}

.passport-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 50px;
}

.airport-code strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.airport-code span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.airport-code:last-child {
  text-align: right;
}

.route-line {
  position: relative;
  width: 110px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.route-line::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "✦";
  color: var(--orange);
  font-size: 20px;
  transform: translate(-50%, -53%);
}

.passport-progress {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.progress-fill {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: inherit;
  transition: width 260ms ease;
}

.floating-phrase {
  position: absolute;
  right: -42px;
  bottom: -34px;
  width: 220px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px 18px 5px 18px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.floating-phrase small {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-weight: 850;
}

.floating-phrase strong {
  font-size: 14px;
}

.section {
  padding: 94px 0;
}

.section-muted {
  background: rgba(244, 239, 228, 0.72);
  border-block: 1px solid rgba(230, 223, 211, 0.85);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-heading h2,
.content-heading h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.06em;
}

.section-heading p,
.content-heading p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.micro-note {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.day-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 18px rgba(44, 39, 31, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.day-card:hover {
  z-index: 2;
  border-color: rgba(242, 107, 56, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-6px) rotate(-0.4deg);
}

.day-card.is-complete {
  background: linear-gradient(145deg, #fff, var(--teal-soft));
  border-color: rgba(29, 132, 127, 0.3);
}

.day-card:first-child {
  grid-row: span 2;
  min-height: 556px;
  color: #fff;
  background: var(--orange);
  border-color: transparent;
}

.day-card:first-child .card-muted,
.day-card:first-child .day-number,
.day-card:first-child .tag-list {
  color: rgba(255, 255, 255, 0.78);
}

.day-card:first-child .tag-list span {
  background: rgba(255, 255, 255, 0.14);
}

.day-card:first-child .card-arrow {
  color: var(--orange-dark);
  background: #fff;
}

.day-card:first-child::after {
  position: absolute;
  right: -52px;
  bottom: -66px;
  width: 230px;
  height: 230px;
  content: "";
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.day-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0;
}

.day-card h3 {
  margin: auto 0 8px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.day-card:first-child h3 {
  margin-top: auto;
  font-size: 40px;
}

.card-muted {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tag-list span {
  padding: 5px 9px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.card-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--paper-deep);
  border-radius: 50%;
  font-weight: 900;
}

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

.feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 14px;
  font-family: Georgia, serif;
  font-weight: 800;
}

.feature-card h3 {
  margin: 22px 0 8px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.demo-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(23, 34, 56, 0.2);
}

.demo-copy {
  padding: clamp(34px, 6vw, 72px);
  color: #fff;
}

.demo-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 55px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.demo-copy > p {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.66);
}

.demo-dialogue {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 80% 5%, rgba(246, 200, 95, 0.28), transparent 18rem),
    var(--teal);
}

.chat-bubble {
  max-width: 86%;
  padding: 18px 20px;
  background: #fff;
  border-radius: 20px 20px 20px 5px;
  box-shadow: var(--shadow-small);
}

.chat-bubble.user {
  margin-left: auto;
  color: #fff;
  background: var(--orange);
  border-radius: 20px 20px 5px 20px;
}

.chat-label {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.chat-bubble.user .chat-label {
  color: rgba(255, 255, 255, 0.72);
}

.chat-bubble p {
  margin: 0;
  font-weight: 750;
  line-height: 1.5;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--orange);
  font-size: 25px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 26px;
  color: var(--ink-soft);
}

.cta-band {
  padding: 44px 0 96px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 42px;
  color: #fff;
  background: var(--orange);
  border-radius: var(--radius-xl);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.cta-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.travel-tools-section {
  padding: 0 0 92px;
}

.travel-tools-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.travel-tools-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.travel-tools-heading > div > p:last-child {
  margin: 9px 0 0;
  color: var(--ink-soft);
}

.affiliate-label {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.travel-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.travel-tool-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 220px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-small);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.travel-tool-card:hover,
.travel-tool-card:focus-visible {
  border-color: rgba(242, 107, 56, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.travel-tool-card:focus-visible {
  outline: 3px solid rgba(242, 107, 56, 0.22);
  outline-offset: 3px;
}

.travel-tool-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--orange-soft);
  border-radius: 16px;
  font-size: 27px;
}

.travel-tool-card small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.travel-tool-card h3 {
  margin: 4px 0 6px;
  font-size: 23px;
  letter-spacing: -0.045em;
}

.travel-tool-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.travel-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.affiliate-disclosure {
  margin: 14px 0 0;
  padding: 11px 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.68);
  background: #101a2c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 48px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-copy {
  max-width: 440px;
  margin: 12px 0 0;
  font-size: 13px;
}

.footer-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-policy-links a,
.footer-bottom > a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.26);
  text-underline-offset: 4px;
}

.footer-policy-links a:hover,
.footer-bottom > a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.practice-footer {
  margin-top: 72px;
}

/* Policy pages */
.policy-page {
  background: var(--paper);
}

.policy-shell {
  width: min(calc(100% - 40px), 900px);
  margin: 64px auto 96px;
}

.policy-hero {
  margin-bottom: 24px;
  padding: 42px 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(246, 200, 95, 0.28), transparent 13rem),
    linear-gradient(135deg, #fffaf2, #f5f0e7);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-small);
}

.policy-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.policy-hero > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.policy-meta span {
  padding: 6px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.policy-card {
  padding: 18px 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-small);
}

.policy-card section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.policy-card section:last-child {
  border-bottom: 0;
}

.policy-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.policy-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.policy-card strong {
  color: var(--ink);
}

@media (max-width: 640px) {
  .policy-shell {
    width: min(calc(100% - 28px), 900px);
    margin: 28px auto 64px;
  }

  .policy-hero,
  .policy-card {
    padding-right: 22px;
    padding-left: 22px;
    border-radius: 22px;
  }

  .policy-hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .policy-card {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

/* Practice */
.practice-page {
  min-height: 100vh;
  background: #f4efe6;
}

.practice-header {
  position: relative;
  background: #fff;
}

.practice-shell {
  width: min(calc(100% - 40px), 1240px);
  margin: 34px auto 80px;
}

.practice-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.practice-topline h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.055em;
}

.practice-topline p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.overall-progress {
  min-width: 190px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.overall-progress .progress-copy {
  color: var(--ink-soft);
}

.overall-progress .progress-track {
  background: var(--paper-deep);
}

.scene-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  scrollbar-width: none;
}

.scene-tabs::-webkit-scrollbar {
  display: none;
}

.scene-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.scene-tab.is-active {
  color: #fff;
  background: var(--ink);
}

.mode-panel,
.question-type-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 14px 16px 14px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.question-type-panel {
  margin-top: 8px;
}

.question-type-switch .mode-button {
  min-width: 82px;
}

.mode-kicker {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.mode-description {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.mode-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 4px;
  background: var(--paper-deep);
  border-radius: 13px;
}

.mode-button {
  min-width: 64px;
  min-height: 36px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.mode-button.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 5px 12px rgba(26, 34, 45, 0.15);
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(480px, 1.32fr);
  gap: 20px;
  margin-top: 20px;
}

.brief-panel,
.roleplay-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
}

.brief-panel {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 30px;
}

.day-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brief-panel h2 {
  margin: 18px 0 8px;
  font-size: 35px;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.brief-panel > p {
  margin: 0;
  color: var(--ink-soft);
}

.goal-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.goal-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
}

.goal-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--teal);
  content: "✓";
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 11px;
}

.profile-card {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.profile-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.profile-card summary::-webkit-details-marker {
  display: none;
}

.profile-card summary > span:first-child {
  display: grid;
  gap: 2px;
}

.profile-card summary strong {
  font-size: 13px;
}

.profile-card summary small {
  color: var(--ink-soft);
  font-size: 10px;
}

.profile-toggle {
  padding: 5px 9px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.profile-card[open] .profile-toggle::after {
  content: " 닫기";
}

.profile-card[open] .profile-toggle {
  font-size: 0;
}

.profile-card[open] .profile-toggle::after {
  font-size: 10px;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.profile-fields label {
  display: grid;
  gap: 5px;
  padding-top: 13px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.profile-fields input,
.profile-fields select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 12px;
}

.profile-fields input:focus,
.profile-fields select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 56, 0.08);
}

.profile-save {
  min-height: 38px;
  align-self: end;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 11px;
}

.profile-status {
  align-self: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.coach-note {
  margin-top: auto;
  padding: 18px;
  background: var(--ink);
  border-radius: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.coach-note strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.roleplay-panel {
  min-height: 620px;
  padding: clamp(24px, 4vw, 42px);
}

.roleplay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.turn-indicator {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.turn-dots {
  display: flex;
  gap: 6px;
}

.turn-dot {
  width: 24px;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
}

.turn-dot.is-active {
  background: var(--orange);
}

.turn-dot.is-done {
  background: var(--teal);
}

.staff-box {
  position: relative;
  margin-top: 32px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 7px;
}

.speaker-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.speaker-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 10px;
  letter-spacing: 0;
}

.staff-question {
  max-width: 660px;
  margin: 19px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.translation {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.icon-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.guide-hint {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 14px 17px;
  background: var(--orange-soft);
  border: 1px dashed rgba(242, 107, 56, 0.35);
  border-radius: 14px;
}

.guide-hint > span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.guide-hint strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.guide-hint p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.answer-area {
  margin-top: 24px;
}

.answer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 850;
}

.answer-label span:last-child {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.answer-input-wrap {
  position: relative;
}

.answer-input {
  width: 100%;
  min-height: 112px;
  padding: 17px 66px 17px 17px;
  resize: vertical;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 17px;
  outline: 0;
  line-height: 1.55;
}

.answer-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 56, 0.1);
}

.record-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(242, 107, 56, 0.25);
}

.record-button::before {
  width: 10px;
  height: 15px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 7px;
}

.record-button.is-recording {
  animation: pulse 1.2s infinite;
  background: var(--red);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 75, 75, 0.38); }
  70% { box-shadow: 0 0 0 14px rgba(196, 75, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 75, 75, 0); }
}

.answer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.browser-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.feedback-box {
  margin-top: 20px;
  padding: 20px;
  background: var(--teal-soft);
  border: 1px solid rgba(29, 132, 127, 0.2);
  border-radius: 17px;
}

.feedback-box.is-retry {
  background: var(--orange-soft);
  border-color: rgba(242, 107, 56, 0.22);
}

.feedback-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 15px;
}

.score-pill {
  padding: 4px 9px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 11px;
}

.is-retry .score-pill {
  background: var(--orange);
}

.sample-answer {
  margin: 13px 0 0;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.feedback-tip {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.favorite-toggle.is-saved {
  color: var(--teal);
  background: #fff;
  border-color: rgba(29, 132, 127, 0.35);
  box-shadow: inset 0 0 0 1px rgba(29, 132, 127, 0.08);
}

.completion-card {
  display: grid;
  min-height: 540px;
  place-items: center;
  text-align: center;
}

.completion-inner {
  max-width: 500px;
}

.completion-mark {
  display: grid;
  width: 94px;
  height: 94px;
  margin: 0 auto 22px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border: 8px solid var(--teal-soft);
  border-radius: 50%;
  font-size: 38px;
}

.completion-card h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.055em;
}

.completion-card p {
  color: var(--ink-soft);
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-size: 13px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Saved phrases */
.favorites-page {
  min-height: 100vh;
  background: #f4efe6;
}

.favorites-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100vh - 260px);
  margin: 48px auto 80px;
}

.favorites-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.favorites-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.favorites-hero > div > p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
}

.favorites-summary {
  display: grid;
  min-width: 142px;
  padding: 17px 20px;
  text-align: right;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-small);
}

.favorites-summary strong {
  color: var(--orange-dark);
  font-size: 27px;
  line-height: 1.1;
}

.favorites-summary span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.storage-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 15px 18px;
  color: var(--ink-soft);
  background: var(--teal-soft);
  border: 1px solid rgba(29, 132, 127, 0.18);
  border-radius: 16px;
  font-size: 13px;
}

.storage-note > span {
  color: var(--teal);
  font-weight: 900;
}

.storage-note p {
  margin: 0;
}

.storage-note strong {
  color: var(--ink);
}

.favorites-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.favorites-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.favorites-toolbar select {
  min-width: 220px;
  min-height: 42px;
  padding: 0 38px 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
}

.favorites-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.favorites-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.danger-button:not(:disabled) {
  color: var(--red);
  border-color: rgba(196, 75, 75, 0.22);
}

.favorites-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.favorite-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-small);
}

.favorite-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.favorite-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.favorite-badges span {
  padding: 5px 9px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.favorite-badges span + span {
  color: var(--teal);
  background: var(--teal-soft);
}

.favorite-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 11px;
}

.favorite-delete {
  padding: 5px 8px;
  color: var(--red);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.favorite-delete:hover,
.favorite-delete:focus-visible {
  background: rgba(196, 75, 75, 0.08);
}

.favorite-prompt {
  margin-top: 17px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.favorite-prompt small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.favorite-prompt p {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 750;
}

.favorite-prompt .favorite-prompt-en {
  margin-top: 7px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.favorite-sentence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.favorite-sentence {
  position: relative;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.favorite-sentence.user-sentence {
  background: #fff;
}

.favorite-sentence.sample-sentence {
  background: var(--teal-soft);
  border-color: rgba(29, 132, 127, 0.2);
}

.favorite-sentence-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.favorite-sentence-label span {
  color: var(--ink);
  font-weight: 900;
}

.favorite-sentence > p {
  margin: 12px 0 40px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.favorite-translation {
  display: block;
  margin: -32px 0 42px;
  color: var(--ink-soft);
  font-size: 12px;
}

.favorite-sentence-actions {
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: flex;
  gap: 6px;
}

.favorite-sentence-actions button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.favorite-sentence-actions button:hover,
.favorite-sentence-actions button:focus-visible {
  color: var(--orange-dark);
  border-color: rgba(242, 107, 56, 0.35);
}

.favorite-tip {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.favorite-tip strong {
  margin-right: 8px;
  color: var(--ink);
}

.favorites-empty {
  margin-top: 18px;
  padding: 76px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-small);
}

.empty-star {
  color: var(--orange);
  font-size: 58px;
  line-height: 1;
}

.favorites-empty h2 {
  margin: 16px 0 4px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.favorites-empty p {
  margin: 0 auto 24px;
  color: var(--ink-soft);
}

.favorites-footer {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Search landing pages */
.landing-hero {
  padding: 72px 0 54px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 64px;
}

.landing-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.landing-hero .hero-lead {
  font-size: 18px;
}

.scenario-preview {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.scenario-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
}

.audio-wave {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 3px;
}

.audio-wave span {
  width: 3px;
  background: var(--orange);
  border-radius: 3px;
}

.audio-wave span:nth-child(1) { height: 8px; }
.audio-wave span:nth-child(2) { height: 19px; }
.audio-wave span:nth-child(3) { height: 13px; }
.audio-wave span:nth-child(4) { height: 26px; }
.audio-wave span:nth-child(5) { height: 16px; }
.audio-wave span:nth-child(6) { height: 22px; }

.preview-question {
  margin: 28px 0 8px;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.35;
}

.preview-translation {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.preview-answer {
  margin-top: 25px;
  padding: 16px;
  color: #fff;
  background: var(--teal);
  border-radius: 16px 16px 5px 16px;
}

.preview-answer small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.preview-answer strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 19px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 70px;
}

.article-body {
  min-width: 0;
}

.article-body section {
  margin-bottom: 62px;
  scroll-margin-top: 100px;
}

.article-body h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.article-body h3 {
  margin: 30px 0 10px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
}

.phrase-table {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
}

.phrase-table th,
.phrase-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.phrase-table tr:last-child td {
  border-bottom: 0;
}

.phrase-table th {
  color: var(--ink);
  background: var(--paper-deep);
  font-size: 12px;
}

.phrase-table td:first-child {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.speak-inline {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
}

.article-callout {
  margin: 30px 0;
  padding: 24px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 18px 18px 0;
}

.article-callout strong {
  display: block;
  margin-bottom: 5px;
}

.article-callout p {
  margin: 0;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.toc a:hover {
  color: var(--orange-dark);
}

.inline-practice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  color: #fff;
  background: var(--ink);
  border-radius: 22px;
}

.inline-practice h3 {
  margin: 0;
  color: #fff;
}

.inline-practice p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

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

.related-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.related-card small {
  color: var(--orange-dark);
  font-weight: 850;
}

.related-card strong {
  display: block;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .desktop-nav a:not(.nav-cta):not(.nav-saved) {
    display: none;
  }

  .desktop-nav {
    gap: 14px;
  }

  .hero-grid,
  .landing-hero-grid,
  .demo-panel,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .favorite-sentence-grid {
    grid-template-columns: 1fr;
  }

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

  .passport-card {
    margin: 30px auto 20px;
  }

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

  .day-card:first-child {
    grid-row: auto;
    min-height: 320px;
  }

  .feature-grid,
  .related-grid,
  .travel-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .brief-panel {
    min-height: auto;
  }

  .coach-note {
    margin-top: 24px;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 680px) {
  .container,
  .practice-shell,
  .favorites-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .nav-saved {
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    padding: 54px 0 40px;
  }

  .hero h1,
  .landing-hero h1 {
    font-size: 43px;
  }

  .hero-grid,
  .landing-hero-grid {
    gap: 32px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .passport-card {
    padding: 26px;
    transform: none;
  }

  .floating-phrase {
    right: 10px;
    bottom: -50px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading,
  .practice-topline,
  .cta-inner,
  .inline-practice,
  .travel-tools-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .day-grid,
  .feature-grid,
  .related-grid,
  .travel-tools-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .travel-tools-section {
    padding-bottom: 68px;
  }

  .travel-tool-card {
    min-height: auto;
    padding: 21px;
  }

  .day-card,
  .day-card:first-child {
    min-height: 270px;
  }

  .demo-copy,
  .demo-dialogue {
    padding: 30px 24px;
  }

  .cta-inner {
    display: flex;
    padding: 30px 26px;
  }

  .cta-inner .button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .practice-shell {
    margin-top: 22px;
  }

  .favorites-shell {
    margin-top: 28px;
  }

  .favorites-hero,
  .favorites-toolbar,
  .favorite-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-summary {
    width: 100%;
    text-align: left;
  }

  .favorites-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .favorites-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .favorites-toolbar-actions .button {
    width: 100%;
    padding-inline: 10px;
  }

  .favorite-card {
    padding: 18px;
  }

  .favorite-card-meta {
    justify-content: space-between;
  }

  .overall-progress {
    width: 100%;
  }

  .mode-panel,
  .question-type-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    flex: 1;
    min-width: 0;
  }

  .roleplay-panel,
  .brief-panel {
    padding: 22px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .staff-box {
    padding: 22px;
  }

  .staff-question {
    font-size: 27px;
  }

  .answer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .answer-actions .button {
    width: 100%;
  }

  .phrase-table,
  .phrase-table tbody,
  .phrase-table tr,
  .phrase-table td {
    display: block;
  }

  .phrase-table thead {
    display: none;
  }

  .phrase-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .phrase-table tr:last-child {
    border-bottom: 0;
  }

  .phrase-table td {
    padding: 3px 0;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
