:root {
  --navy: #17343d;
  --turquoise: #11b9b4;
  --turquoise-dark: #087f83;
  --gold: #e7b521;
  --cream: #fffbea;
  --cream-strong: #fff3b0;
  --white: #ffffff;
  --line: #c9dedb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--turquoise-dark); }
a:hover { text-decoration-thickness: 2px; }

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 28px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.brand strong {
  color: var(--gold);
  font-family: Cambria, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  -webkit-text-stroke: 1px var(--turquoise-dark);
}

.brand-title-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  gap: 10px;
}

.brand img.brand-icon {
  order: 2;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.brand img.brand-title {
  order: 1;
  width: min(100%, 360px);
  height: auto;
  max-width: 100%;
  border-radius: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

nav a { font-weight: 700; text-decoration: none; }

.hero {
  padding: clamp(28px, 7vw, 72px);
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #e6faf7, #fff3b0);
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(23, 52, 61, .10);
}

.hero h1 {
  margin: 0 0 12px;
  font-family: Cambria, Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--turquoise-dark);
}

.hero p { max-width: 760px; margin: 0 auto; font-size: clamp(1.05rem, 2.4vw, 1.35rem); text-align: center; }

.slogans {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 30px;
  text-align: center;
  font-weight: 800;
}

.flow-step {
  padding: 9px 16px 7px;
  border-bottom: 4px solid var(--gold);
  background: rgba(255,255,255,.64);
  color: var(--navy);
}

.flow-step:nth-child(1) { width: min(190px, 100%); }
.flow-step:nth-child(3) { width: min(240px, 100%); }
.flow-step:nth-child(5) { width: min(290px, 100%); }

.flow-arrow::before {
  content: "↓";
  color: var(--turquoise-dark);
  font-size: 1.8rem;
  line-height: 1;
}

main { padding: 34px 0 56px; }

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

.card, .legal {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 9px 28px rgba(23, 52, 61, .08);
}

h1, h2, h3 { line-height: 1.25; }
h2 { color: var(--turquoise-dark); }
.eyebrow { color: var(--turquoise-dark); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.language { margin-top: 26px; }
.language + .language { padding-top: 26px; border-top: 2px solid var(--line); }

.principle-copy {
  max-width: 820px;
  padding: clamp(18px, 3vw, 28px);
  border-left: 5px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.58);
}

.principle-copy p:first-child { margin-top: 0; }
.principle-copy p:last-child { margin-bottom: 0; }

.test-section {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 3px solid var(--turquoise);
}

.notice, .test-next, .test-tr {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 243, 176, .58);
}

.ui-label {
  display: inline-block;
  margin: 2px 1px;
  padding: 1px 8px;
  border: 1px solid #8fbeba;
  border-radius: 7px;
  background: var(--white);
  color: #1558b0;
  font-weight: 750;
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.step-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 9px 28px rgba(23, 52, 61, .08);
}

.step-number {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(23, 52, 61, .24);
}

.step-copy { padding: 68px 20px 18px; }
.step-copy h3 { margin: 0 0 8px; color: var(--turquoise-dark); }
.step-copy p { margin: 0; }

.step-image {
  display: grid;
  place-items: center;
  height: 540px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #fff;
}

.step-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.test-next h3, .test-tr h2 { margin-top: 0; }

.test-button {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 18px;
  border: 2px solid #147c57;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
}

.test-button:hover { background: var(--cream-strong); }
.test-tr ol { padding-left: 1.4em; }
.test-tr li + li { margin-top: 12px; }

.visual-guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 9px 28px rgba(23, 52, 61, .08);
}

.visual-guide-link h2,
.visual-guide-link p { margin-top: 0; }
.visual-guide-link p:last-child { margin-bottom: 0; }
.visual-guide-link .test-button { flex: 0 0 auto; margin: 0; }

.walkthrough-intro {
  max-width: 820px;
  margin: 12px auto 38px;
  text-align: center;
}

.walkthrough-intro h1 {
  margin: 0 0 14px;
  color: var(--turquoise-dark);
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.walkthrough {
  display: grid;
  gap: 34px;
}

.walkthrough-item {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 52px);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(23, 52, 61, .09);
}

.walkthrough-item:nth-child(even) .walkthrough-figure,
.walkthrough-item:nth-child(even) .shot-pair { order: 2; }

.walkthrough-figure {
  margin: 0;
  text-align: center;
}

.walkthrough-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 680px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 52, 61, .18);
}

.walkthrough-copy { position: relative; }
.walkthrough-copy h2 { margin: 0 0 18px; padding-right: 54px; }

.walkthrough-number {
  position: absolute;
  top: -7px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
}

.callouts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.callouts li {
  padding: 12px 15px;
  border-left: 4px solid var(--turquoise);
  border-radius: 0 12px 12px 0;
  background: rgba(230,250,247,.82);
}

.walkthrough-item-wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.shot-pair .walkthrough-figure img { max-height: 590px; }

.walkthrough-landscape {
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
}

.walkthrough-landscape .walkthrough-figure img {
  width: 100%;
  height: auto;
  max-height: none;
}

.walkthrough-end {
  margin-top: 38px;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 24px;
  background: linear-gradient(140deg, #e6faf7, #fff3b0);
  text-align: center;
}

.walkthrough-end h2 { margin-top: 0; }

.legal h1 { margin-top: 0; color: var(--turquoise-dark); }
.legal h2 { margin-top: 30px; }

.placeholder {
  padding: 16px;
  border: 3px solid #b42318;
  border-radius: 12px;
  background: #fff0ed;
  color: #7a271a;
  font-weight: 800;
}

.legal-contact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

footer {
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
}

footer .links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.language-choice-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.language-choice {
  flex: 1;
  margin-top: 22px;
  margin-bottom: 50px;
  padding: clamp(28px, 7vw, 68px);
  border-radius: 30px;
  background: linear-gradient(140deg, #14cbc5, #087f83);
  color: var(--white);
  text-align: center;
  box-shadow: 0 18px 48px rgba(23, 52, 61, .16);
}

.language-choice h1 { margin-top: 0; color: var(--cream-strong); }

.language-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 680px;
  margin: 34px auto 0;
}

.language-buttons a {
  display: grid;
  gap: 4px;
  padding: 24px 18px;
  border: 2px solid #147c57;
  border-radius: 18px;
  background: var(--cream-strong);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 52, 61, .18);
}

.language-buttons a:hover { transform: translateY(-2px); }
.language-buttons strong { font-size: 1.35rem; }
.language-buttons span { font-size: .95rem; }

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .language-buttons { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-image { height: 640px; }
  .hero { border-radius: 22px; }
  .brand img { width: 56px; height: 56px; }
  .brand-title-link { min-height: 128px; gap: 8px; }
  .brand img.brand-icon { width: 58px; height: 58px; border-radius: 14px; }
  .brand img.brand-title { width: min(100%, 310px); height: auto; }
  .visual-guide-link { display: block; }
  .visual-guide-link .test-button { margin-top: 18px; }
  .walkthrough-item,
  .walkthrough-item-wide,
  .walkthrough-landscape { grid-template-columns: 1fr; }
  .walkthrough-item:nth-child(even) .walkthrough-figure,
  .walkthrough-item:nth-child(even) .shot-pair { order: initial; }
  .walkthrough-figure img { max-height: 720px; }
  .shot-pair { grid-template-columns: 1fr 1fr; }
  .shot-pair .walkthrough-figure img { max-height: 520px; }
}

@media (max-width: 480px) {
  .shot-pair { grid-template-columns: 1fr; }
  .shot-pair .walkthrough-figure img { max-height: 680px; }
}

@media (min-width: 701px) and (max-width: 920px) {
  .steps { grid-template-columns: 1fr; }
  .step-image { height: 680px; }
}

@media (max-width: 360px) {
  .brand-title-link { min-height: 118px; }
  .brand img.brand-title { width: 100%; height: auto; }
}
