:root {
  --ink: #2f2732;
  --muted: #6e5e68;
  --soft: #fff7f4;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(111, 75, 91, 0.15);
  --pink: #ff6f98;
  --pink-deep: #ee3f74;
  --rose: #ffd8e1;
  --peach: #ffdcb7;
  --butter: #fff4bd;
  --mint: #c8f2dc;
  --sky: #b9ddf7;
  --lavender: #ded2ff;
  --shadow: 0 28px 70px rgba(126, 70, 90, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 246, 245, 0.72), rgba(255, 246, 245, 0.94)),
    url("/shared/sprites/ambient-love-ui.jpg");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  font-family: "Noto Sans Thai", "Kanit", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.88), transparent 20rem),
    radial-gradient(circle at 84% 18%, rgba(255, 222, 232, 0.72), transparent 22rem),
    radial-gradient(circle at 76% 92%, rgba(185, 221, 247, 0.48), transparent 26rem),
    linear-gradient(115deg, rgba(255, 218, 226, 0.72), rgba(255, 246, 226, 0.86), rgba(255, 248, 252, 0.82));
  pointer-events: none;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 44px rgba(102, 62, 78, 0.12);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Kanit", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ff6f98, #ffabc0);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(238, 63, 116, 0.26);
}

.nav-links {
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-cta,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 18px 42px rgba(238, 63, 116, 0.28);
}

.header-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.primary-btn,
.secondary-btn {
  padding: 0 22px;
}

.secondary-btn {
  color: #563444;
  border: 1px solid rgba(238, 63, 116, 0.2);
  background: rgba(255, 255, 255, 0.74);
}

.header-cta:hover,
.primary-btn:hover,
.secondary-btn:hover,
.header-cta:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  transform: translateY(-2px);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 62px;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 54%;
  bottom: 18px;
  width: min(520px, 42vw);
  aspect-ratio: 1;
  background: url("/shared/sprites/keepsake.jpg") center / cover;
  border-radius: 42px;
  opacity: 0.16;
  filter: saturate(1.1) blur(0.2px);
  transform: rotate(-6deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-family: "Kanit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Noto Serif Thai", "Kanit", serif;
  letter-spacing: 0;
}

/* ภาษาไทยมีสระบนกับวรรณยุกต์ที่ล้นออกนอกกล่องบรรทัด
   line-height ที่ดูพอดีกับภาษาอังกฤษจะทำให้ตัวบนไปทับบรรทัดหรือองค์ประกอบข้างบน
   ซึ่งวัดด้วย getBoundingClientRect ไม่เจอ เพราะกล่องไม่ทับกันแต่ตัวอักษรทับ
   ต่ำกว่า 1.25 ห้ามใช้กับพาดหัวไทย */
h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 5.55vw, 5.1rem);
  line-height: 1.28;
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.55rem);
  line-height: 1.3;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.order > p,
.feature-grid p,
.example-card p,
.price-list p,
.step-list p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 22px 0 0;
}

.hero-points {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  color: #4d3c47;
  font-weight: 700;
  line-height: 1.58;
}

.hero-points li::before {
  content: "♡";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), #ffb6c9);
  border-radius: 7px;
  font-size: 0.72rem;
}

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

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.polaroid,
.phone,
.feature-grid article,
.example-card,
.price-list a,
.order {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.polaroid {
  position: absolute;
  left: 0;
  top: 58px;
  width: min(420px, 72%);
  padding: 17px 17px 24px;
  border-radius: 28px;
  transform: rotate(3deg);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.polaroid p {
  width: min(310px, 80%);
  margin: -24px auto 0;
  padding: 16px 18px;
  color: #5d4552;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(126, 70, 90, 0.14);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
  transform: rotate(-4deg);
}

.script-note {
  display: block;
  margin: 0 0 8px 14px;
  color: var(--pink-deep);
  font-family: "Noto Serif Thai", serif;
  font-weight: 700;
}

.phone {
  position: absolute;
  right: 0;
  display: grid;
  width: min(255px, 46%);
  min-height: 300px;
  align-content: start;
  padding: 22px;
  border-radius: 34px;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 111, 152, 0.2), transparent 7rem),
    radial-gradient(circle at 86% 88%, rgba(185, 221, 247, 0.24), transparent 7rem);
  border-radius: inherit;
}

.phone span {
  color: #594752;
  font-size: 0.82rem;
  font-weight: 800;
}

.phone h2 {
  margin-top: 22px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.phone p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.phone a,
.phone strong {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-radius: 999px;
  font-weight: 800;
}

.phone small {
  justify-self: end;
  margin-top: 18px;
  color: var(--pink-deep);
  font-weight: 800;
}

.phone-intro {
  top: 0;
}

.phone-answer {
  right: 42px;
  bottom: 10px;
  min-height: 270px;
  transform: rotate(-2deg);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

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

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

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

.feature-grid article {
  min-height: 178px;
  padding: 22px 18px;
  border-radius: 22px;
  text-align: center;
}

.feature-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), #ffafc4);
  border-radius: 16px;
  font-weight: 900;
}

.feature-grid strong,
.step-list strong,
.example-card strong,
.price-list strong {
  display: block;
  color: var(--ink);
}

.feature-grid strong {
  font-size: 1rem;
}

.feature-grid p {
  margin: 9px 0 0;
  font-size: 0.9rem;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  padding: 8px 8px 8px 0;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -8px;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, rgba(238, 63, 116, 0.12), rgba(238, 63, 116, 0.42));
}

.step-list span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-radius: 999px;
  font-weight: 900;
}

.step-list strong {
  font-size: 1.08rem;
}

.step-list p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.examples-section {
  padding-top: 40px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.example-card {
  display: grid;
  min-height: 320px;
  padding: 14px 14px 22px;
  border-radius: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.example-card:hover,
.example-card:focus-visible,
.price-list a:hover,
.price-list a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 34px 80px rgba(126, 70, 90, 0.22);
}

.example-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  border-radius: 18px;
}

.example-card span,
.price-list span {
  margin-top: 14px;
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.example-card strong {
  margin-top: 5px;
  font-size: 1.26rem;
}

.example-card p {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

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

.price-list a {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 390px;
  padding: 28px;
  border-radius: 26px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.price-list mark {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.price-list strong {
  margin-top: 8px;
  font-size: clamp(2.15rem, 4vw, 3rem);
}

.price-list p {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.price-list ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 24px;
  color: #51414c;
  font-size: 0.92rem;
  line-height: 1.5;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink-deep);
  font-weight: 900;
}

.featured-price {
  border-color: rgba(238, 63, 116, 0.36) !important;
  transform: translateY(-10px);
}

.trust-band {
  display: flex;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 32px));
  justify-content: center;
  gap: 10px;
  margin: 8px auto 0;
  padding: 0 0 24px;
}

.trust-band span {
  position: relative;
  padding: 9px 14px 9px 32px;
  color: #4d3d47;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.trust-band span::before {
  content: "✓";
  position: absolute;
  left: 13px;
  color: var(--pink-deep);
}

.order {
  position: relative;
  margin-bottom: 72px;
  padding: clamp(32px, 6vw, 64px);
  overflow: hidden;
  border-radius: 32px;
  text-align: center;
}

.order::before,
.order::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 111, 152, 0.24), transparent 68%);
  pointer-events: none;
}

.order::before {
  left: -54px;
  bottom: -72px;
}

.order::after {
  top: -84px;
  right: -50px;
}

.order > * {
  position: relative;
  z-index: 1;
}

.order p {
  max-width: 700px;
  margin: 16px auto 26px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 1060px) {
  .feature-grid,
  .example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-list {
    grid-template-columns: 1fr;
  }

  .featured-price {
    transform: none;
  }
}

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 96px 0 42px;
  }

  .hero-showcase {
    order: -1;
    min-height: 390px;
  }

  .polaroid {
    left: 50%;
    top: 30px;
    width: min(330px, 72%);
    transform: translateX(-58%) rotate(2deg);
  }

  .phone {
    width: min(190px, 42%);
    min-height: 238px;
    padding: 16px;
    border-radius: 26px;
  }

  .phone h2 {
    margin-top: 14px;
    font-size: 1.2rem;
  }

  .phone p {
    margin-top: 10px;
    font-size: 0.82rem;
  }

  .phone a,
  .phone strong {
    min-height: 36px;
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .phone-intro {
    right: 0;
    top: 0;
  }

  .phone-answer {
    right: 16px;
    bottom: 0;
    min-height: 210px;
  }

  .feature-grid,
  .example-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 8px;
  }

  .brand {
    font-size: 0.96rem;
  }

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

  .hero,
  .section,
  .trust-band {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    line-height: 1.3;
  }

  h2 {
    font-size: clamp(1.55rem, 7.4vw, 2.1rem);
  }

  .hero-showcase {
    min-height: 320px;
  }

  .hero::after {
    display: none;
  }

  .polaroid {
    top: 24px;
    width: min(240px, 74%);
    padding: 11px 11px 17px;
    border-radius: 20px;
  }

  .polaroid img {
    border-radius: 15px;
  }

  .polaroid p {
    display: none;
  }

  .phone {
    width: min(148px, 41%);
    min-height: 190px;
    padding: 12px;
    border-radius: 22px;
  }

  .phone h2 {
    font-size: 0.98rem;
  }

  .phone p {
    font-size: 0.74rem;
    line-height: 1.55;
  }

  .phone small,
  .phone span {
    font-size: 0.68rem;
  }

  .feature-grid,
  .example-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    min-height: 46px;
  }

  .feature-grid,
  .example-grid,
  .step-list,
  .price-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .example-card,
  .price-list a,
  .order {
    border-radius: 22px;
  }

  .example-card {
    min-height: auto;
  }

  .price-list a {
    min-height: auto;
    padding: 24px;
  }

  .trust-band {
    justify-content: stretch;
  }

  .trust-band span {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
