@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Literata";
  src: url("assets/fonts/Literata-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

:root {
  --indigo: #3f3d99;
  --copper: #b46a55;
  --cream: #f5f1e8;
  --sage: #a8b2a1;
  --graphite: #353740;
  --paper: #fffaf1;
  --white: #ffffff;
  --line: rgba(53, 55, 64, 0.14);
  --shadow: 0 18px 48px rgba(53, 55, 64, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--cream);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::selection {
  color: var(--white);
  background: var(--indigo);
}

a {
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(245, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--indigo);
  border-radius: 50%;
  font-size: 0.78rem;
}

.topbar p {
  margin: 0;
  color: rgba(53, 55, 64, 0.82);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-top: 52px;
  padding-bottom: 52px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--indigo);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 660px;
  font-size: clamp(2.55rem, 8vw, 5.3rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.lead,
.section-heading p,
.payment-note {
  color: rgba(53, 55, 64, 0.78);
}

.lead {
  max-width: 670px;
  margin: 20px 0 0;
  font-size: clamp(1.06rem, 2vw, 1.24rem);
}

.price {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 8px 14px;
  color: var(--paper);
  background: var(--copper);
  border-radius: 999px;
  font-size: 1.34rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chips span {
  padding: 8px 12px;
  background: rgba(168, 178, 161, 0.28);
  border: 1px solid rgba(168, 178, 161, 0.58);
  border-radius: 999px;
  font-size: 0.93rem;
}

.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: var(--white);
  background: var(--indigo);
  border: 1px solid var(--indigo);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(63, 61, 153, 0.22);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(63, 61, 153, 0.27);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-secondary {
  color: var(--indigo);
  background: transparent;
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(63, 61, 153, 0.07);
  box-shadow: none;
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.payment-note {
  margin: 18px 0 0;
  font-size: 0.96rem;
}

.hero-media,
.support-photo {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: clamp(12px, 3vw, 24px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin: 14px 0 0;
}

.section-heading .soft-note {
  max-width: 620px;
  color: #6f6359;
  font-size: 0.94rem;
}

.value-band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1160px) / 2));
  padding-left: max(16px, calc((100% - 1160px) / 2));
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.included-grid div,
.support-list div,
details,
.summary,
.order-form {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.included-grid div {
  min-height: 64px;
  padding: 17px 18px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  gap: 16px;
}

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

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

.choice-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:hover,
.choice-card.is-selected {
  border-color: rgba(63, 61, 153, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.choice-card input {
  position: absolute;
  inset: 16px 16px auto auto;
  width: 20px;
  height: 20px;
  accent-color: var(--indigo);
}

.photo-slot {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(168, 178, 161, 0.22), rgba(180, 106, 85, 0.08)),
    var(--white);
  border: 1px solid rgba(168, 178, 161, 0.38);
  border-radius: var(--radius);
}

.has-photo img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 14px 20px rgba(53, 55, 64, 0.12));
}

.placeholder-slot {
  min-height: 178px;
  background:
    linear-gradient(135deg, rgba(245, 241, 232, 0.92), rgba(168, 178, 161, 0.28)),
    var(--white);
}

.placeholder-slot::before {
  content: "";
  width: 58%;
  height: 38%;
  border: 1px solid rgba(180, 106, 85, 0.38);
  border-radius: 50%;
}

.choice-content {
  display: grid;
  gap: 7px;
  padding: 0 4px 4px;
}

.choice-content strong {
  color: var(--graphite);
  font-size: 1.08rem;
}

.choice-content small {
  color: rgba(53, 55, 64, 0.72);
}

.select-label {
  width: fit-content;
  margin-top: 4px;
  padding: 7px 11px;
  color: var(--indigo);
  border: 1px solid rgba(63, 61, 153, 0.3);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.choice-card.is-selected .select-label {
  color: var(--white);
  background: var(--indigo);
}

.nail-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
}

.nail-step p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
}

.nail-distance {
  display: grid;
  grid-template-columns: 54px minmax(96px, 1fr) 54px;
  gap: 0;
  align-items: center;
  min-height: 150px;
  padding: 24px;
  background: rgba(168, 178, 161, 0.18);
  border: 1px solid rgba(168, 178, 161, 0.72);
  border-radius: var(--radius);
}

.nail-dot {
  display: block;
  width: 54px;
  height: 54px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #f2f2ed, #b8beb7);
  border: 1px solid rgba(53, 55, 64, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.7), 0 10px 24px rgba(53, 55, 64, 0.12);
}

.distance-line {
  position: relative;
  display: block;
  height: 2px;
  background: var(--copper);
}

.distance-line::before,
.distance-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 28px;
  background: var(--copper);
  transform: translateY(-50%);
}

.distance-line::before {
  left: 0;
}

.distance-line::after {
  right: 0;
}

.distance-line span {
  position: absolute;
  left: 50%;
  top: -42px;
  padding: 6px 10px;
  color: var(--paper);
  background: var(--copper);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.start-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1160px) / 2));
  padding-left: max(16px, calc((100% - 1160px) / 2));
  background: rgba(168, 178, 161, 0.18);
}

.support-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.support-photo {
  position: relative;
  display: grid;
  place-items: center;
}

.support-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 16px 24px rgba(53, 55, 64, 0.12));
}

.support-list {
  display: grid;
  gap: 12px;
}

.support-list div {
  padding: 18px;
}

.support-list p {
  margin: 8px 0 0;
  color: rgba(53, 55, 64, 0.74);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.order-form,
.summary {
  padding: clamp(18px, 3vw, 28px);
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid rgba(53, 55, 64, 0.2);
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(63, 61, 153, 0.16);
  border-color: var(--indigo);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--indigo);
  font-weight: 700;
}

.summary {
  position: sticky;
  top: 86px;
}

.summary dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary dt {
  color: rgba(53, 55, 64, 0.68);
}

.summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.no-prepay {
  margin: 22px 0 0;
  padding: 12px;
  color: var(--graphite);
  background: rgba(180, 106, 85, 0.11);
  border: 1px solid rgba(180, 106, 85, 0.28);
  border-radius: var(--radius);
  font-weight: 700;
}

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

details {
  padding: 18px 20px;
}

summary {
  color: var(--indigo);
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  color: rgba(53, 55, 64, 0.76);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 108px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar p {
    display: none;
  }

  .hero,
  .nail-step,
  .order-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 560px;
  }

  .included-grid,
  .engraving-grid,
  .support-layout,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, 1160px);
    padding: 50px 0;
  }

  .hero.section {
    position: relative;
    display: grid;
    grid-template-rows: minmax(96px, 1fr) auto;
    gap: 8px;
    width: min(100% - 28px, 1160px);
    height: calc(100svh - 54px);
    min-height: 620px;
    padding: 10px 0 12px;
    overflow: visible;
  }

  .hero-copy {
    position: relative;
    display: block;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-media {
    position: relative;
    order: -1;
    max-width: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    opacity: 0.96;
    filter: drop-shadow(0 22px 34px rgba(53, 55, 64, 0.15));
    transform: none;
  }

  .hero .eyebrow {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .hero .lead {
    max-width: 92%;
    margin-top: 12px;
    font-size: 1rem;
  }

  .hero .actions {
    margin-top: 10px;
    padding-top: 0;
  }

  .hero .payment-note {
    display: none;
  }

  .value-band,
  .start-section {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .topbar .button {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  h1 {
    font-size: 2.22rem;
    line-height: 1.04;
  }

  .hero .price {
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 1.22rem;
  }

  .hero .chips {
    gap: 8px;
    margin-top: 12px;
  }

  .hero .chips span {
    padding: 7px 11px;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.82rem;
    line-height: 1.12;
  }

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

  .button {
    width: 100%;
  }

  .shape-grid,
  .included-grid,
  .engraving-grid,
  .support-layout,
  .faq-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-slot {
    min-height: 180px;
  }

  .has-photo img {
    height: 220px;
  }

  .support-photo img {
    min-height: 260px;
  }

  .nail-distance {
    grid-template-columns: 44px minmax(84px, 1fr) 44px;
    min-height: 132px;
    padding: 18px;
  }

  .nail-dot {
    width: 44px;
    height: 44px;
  }

  .summary dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .summary dd {
    text-align: left;
  }

}
