/* Ryze hero redesign. Shared styles.
   body.v1 = "Tomato storefront"  |  body.v2 = "Sunrise"            */

:root {
  --cream: #FFF4E6;
  --ink: #2B0E08;
  --tomato: #E5432A;
  --butter: #FFC94D;
  --leaf: #1FB565;
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-store: 'Boska', Georgia, 'Times New Roman', serif;
}

body.v1 {
  --page: #E5432A;
  --page-deep: #C9361D;      /* niche wall */
  --ledge: #F0603F;          /* shelf the products stand on */
  --band: #CC381F;           /* proof band */
  --shade: rgba(118, 22, 6, .46);
  --badge: rgba(118, 22, 6, .30);
  --btn: #2B0E08;
  --btn-text: #FFF4E6;
  --focus: #2B0E08;
}

body.v2 {
  --page: #4B1210;
  --page-deep: #3A0C0B;
  --band: #3A0C0B;
  --shade: rgba(20, 2, 2, .55);
  --badge: rgba(255, 244, 230, .10);
  --btn: #E5432A;
  --btn-text: #FFF4E6;
  --focus: #FFC94D;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--cream);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---------- frame ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
/* paper grain so the flat colour feels printed, not digital */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .16;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 900; font-size: 29px; letter-spacing: -.02em; line-height: 1; }
.brand img { width: 30px; height: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.8vw, 44px); font-size: 16px; font-weight: 500; }
.nav-links a { padding: 8px 0; text-decoration: underline transparent; text-underline-offset: 7px; text-decoration-thickness: 2px; transition: text-decoration-color .15s ease; }
.nav-links a:hover { text-decoration-color: currentColor; }
.nav-cta { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.nav-cta .call { font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-nav { height: 46px; padding: 0 22px; background: var(--btn); color: var(--btn-text); }
body.v2 .btn-nav { background: var(--cream); color: var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--badge); color: var(--cream); font-size: 22px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- stage ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 64px);
  padding-block: clamp(12px, 2.6vh, 36px) clamp(20px, 4vh, 48px);
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 9px 16px;
  border-radius: 999px; background: var(--badge);
  font-size: 15px; font-weight: 700; line-height: 1.2;
}
.dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--leaf); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--leaf); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.15vw, 100px);
  line-height: .93;
  letter-spacing: -.028em;
}
h1 span { display: block; white-space: nowrap; }
.sub { margin-top: 24px; max-width: 27em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; }

.audit {
  display: flex; align-items: center;
  margin-top: 30px; width: 100%; max-width: 500px; height: 68px; padding: 6px;
  border-radius: 999px; background: var(--cream);
  box-shadow: 0 16px 28px -14px var(--shade);
}
.audit input { flex: 1; min-width: 0; height: 100%; padding: 0 10px 0 22px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 19px; font-weight: 500; }
.audit input::placeholder { color: #A08C82; opacity: 1; }
.audit:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.audit .btn { height: 100%; padding: 0 26px; background: var(--btn); color: var(--btn-text); font-size: 18px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 15.5px; }
.perks li { display: inline-flex; align-items: center; gap: 7px; }
.perks .ic { font-size: 15px; }

/* ---------- proof band ---------- */
.proof { position: relative; z-index: 5; background: var(--band); border-radius: 28px 28px 0 0; }
.proof .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; padding-block: 22px; }
.stats { display: flex; gap: clamp(22px, 2.6vw, 40px); }
.stats div { display: flex; flex-direction: column-reverse; gap: 5px; }
.stats dt { font-size: 14.5px; opacity: .92; white-space: nowrap; }
.stats dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(27px, 2.5vw, 36px); line-height: 1; letter-spacing: -.02em; }
.clients { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); min-width: 0; }
.clients p { flex: none; font-size: 14.5px; line-height: 1.25; opacity: .92; white-space: nowrap; }
.clients ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.clients img { height: calc(var(--h, 24px) * .9); width: auto; opacity: .95; }

/* ---------- shared store bits ---------- */
.shop { position: relative; width: 100%; max-width: 720px; justify-self: end; }
.storebar {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid rgba(255, 244, 230, .5);
  font-size: 22px;
}
.store-name { font-family: var(--font-store); font-weight: 500; font-size: 29px; line-height: 1; letter-spacing: .005em; }
.stars { display: inline-flex; gap: 1px; color: var(--butter); font-size: 17px; }

/* paper tag tied to a product */
.tag {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px 10px 27px;
  border-radius: 10px; background: var(--cream); color: var(--ink);
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  box-shadow: 0 10px 18px -9px rgba(60, 8, 0, .6);
  transform-origin: 13px 50%;
  transform: rotate(var(--r, -4deg));
  animation: sway 5.5s ease-in-out infinite alternate;
}
.tag .ic { font-size: 15px; }
.tag::before { /* punched hole */
  content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--page-deep); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .3);
}
.tag::after { /* string */
  content: ""; position: absolute; right: calc(100% - 13px); top: 50%;
  width: var(--sw, 30px); height: var(--sh, 34px);
  border: 1.5px solid #F6DDBD; border-right: 0; border-bottom: 0; border-radius: 100% 0 0 0;
}
@keyframes sway { from { transform: rotate(calc(var(--r, -4deg) - 1.5deg)); } to { transform: rotate(calc(var(--r, -4deg) + 2deg)); } }

/* white result sticker */
.sticker {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 13px;
  background: #fff; color: var(--ink);
  font-size: 15.5px; font-weight: 700; line-height: 1; white-space: nowrap;
  box-shadow: 0 12px 22px -10px rgba(40, 4, 0, .65);
  transform: rotate(var(--r, -4deg));
}
.sticker .ic { font-size: 16px; }
.s-cro .ic, .cart .sticker .ic { color: var(--leaf); font-size: 18px; }

/* ================= V1: Tomato storefront ================= */
.v1 .shop { padding-bottom: 50px; } /* room for the shelf talker */
.v1 .storebar { margin-bottom: clamp(18px, 3vh, 30px); }
.v1 .pdp-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr); gap: clamp(20px, 2.8vw, 44px); align-items: end; }
.v1 .niche {
  position: relative;
  aspect-ratio: 340 / 450;
  margin-inline: auto; width: 100%; max-width: min(390px, 36vh);
  margin-bottom: 14px;
  border-radius: 999px 999px 0 0;
  background: var(--page-deep);
}
.v1 .niche::after { /* shelf */
  content: ""; position: absolute; left: -22px; right: -22px; bottom: -14px; height: 14px;
  border-radius: 3px 3px 7px 7px; background: var(--ledge);
  box-shadow: 0 14px 18px -10px var(--shade);
}
.v1 .p-box, .v1 .p-tube { position: absolute; bottom: 0; width: auto; max-width: none; z-index: 1; }
.v1 .p-box  { height: 76%; left: 5%;  filter: drop-shadow(20px 0 1px var(--shade)); }
.v1 .p-tube { height: 103%; left: 54%; filter: drop-shadow(18px 0 1px var(--shade)); z-index: 2; }
/* tag tied round the neck of the tube */
.v1 .tag-ad  { left: 79%; top: 9%; --r: -6deg; --sw: 16px; --sh: 22px; }
/* shelf talker hanging under the box */
.v1 .tag-seo { left: 4%; top: calc(100% + 30px); --r: 3deg; transform-origin: 13px -22px; }
.v1 .tag-seo::after { right: auto; left: 12.5px; top: auto; bottom: calc(50% + 3px); width: 0; height: 26px; border: 0; border-left: 1.5px solid #F6DDBD; border-radius: 0; }

.v1 .pdp { padding-bottom: 14px; }
.v1 .pdp h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; letter-spacing: -.022em; }
.v1 .price { margin-top: 10px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
.v1 .rating { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 15.5px; }
.v1 .swatches { display: flex; gap: 11px; margin-top: 20px; }
.v1 .swatches span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid var(--cream); }
.v1 .swatches .on { outline: 2px solid var(--cream); outline-offset: 3px; }
.v1 .cart { position: relative; margin-top: 26px; }
.v1 .btn-cart { width: 100%; height: 58px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-size: 18px; }
.v1 .btn-cart:hover { background: var(--cream); color: var(--ink); filter: none; }
.v1 .cart .sticker { right: -14px; top: calc(100% - 12px); --r: -4deg; }

/* ================= V2: Sunrise ================= */
/* headline in Satoshi Black (the Ryze brand face): open letterforms, looser tracking, soft shadow to lift it off the background line */
body.v2 { --font-display: 'Satoshi', system-ui, sans-serif; }
.v2 h1 { font-weight: 900; letter-spacing: -.022em; line-height: .99; text-shadow: 0 2px 16px rgba(40, 6, 4, .42), 0 1px 2px rgba(40, 6, 4, .3); }
@media (min-width: 901px) { .v2 h1 { font-size: clamp(40px, 5.9vw, 96px); } }
.v2 .stats dd, .v2 .buybar strong { font-weight: 900; }
@media (min-width: 901px) { .v2 .stats { gap: clamp(20px, 2.2vw, 36px); } .v2 .stats dd { font-size: clamp(25px, 2.25vw, 34px); } }
/* warm page gradient, a little lighter toward the top */
.v2 .hero { background: linear-gradient(180deg, #6E1C14 0%, #581611 38%, #47110F 78%, #400F0D 100%); }
/* growth line painted with the lip lacquer, sits behind everything */
.v2 .swoosh {
  position: absolute; z-index: -1; left: -3%; top: 5%; width: 96%; height: 86%; /* its start is tucked behind the proof band */
  object-fit: fill; opacity: .2; pointer-events: none; user-select: none; /* barely there: a tone-on-tone trace, not a contrast element */
}
/* the sun rises from behind the proof band, the product rises with it */
.v2 .stage { padding-bottom: 0; align-items: end; }
.v2 .pitch { align-self: center; padding-bottom: clamp(20px, 4vh, 48px); }
.v2 .shop { max-width: 700px; height: min(74vh, 760px); min-height: 440px; }
.v2 .sun {
  position: absolute; left: 50%; bottom: -24%; width: min(100%, 70vh); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: var(--tomato);
}
.v2 .p-hand { position: absolute; left: 50%; bottom: -13%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 22px 26px rgba(70, 8, 0, .38)); }
/* store header is scenery, not a control: pushed right, half transparent, not clickable */
.v2 .storebar { position: absolute; z-index: 2; left: 9%; top: 4%; width: 42%; height: 50px; background: transparent; border-color: rgba(255, 244, 230, .7); opacity: .5; pointer-events: none; }
.v2 .storebar .store-name { font-size: 26px; }
.v2 .buybar {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: min(100%, 520px); height: 76px; padding: 8px 8px 8px 28px;
  border-radius: 999px; background: var(--cream); color: var(--ink);
  box-shadow: 0 22px 34px -16px rgba(10, 0, 0, .8);
}
.v2 .buybar strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; line-height: 1.1; }
.v2 .buybar .meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 15px; font-weight: 700; color: #6B4A40; }
.v2 .buybar .stars { font-size: 15px; color: #F2A81D; }
/* demo UI, not the page's call to action: quiet outline button */
.v2 .buybar .btn { height: 100%; padding: 0 28px; background: transparent; color: var(--ink); border: 2px solid var(--ink); font-size: 17px; }
.v2 .buybar .btn:hover { background: var(--ink); color: var(--cream); filter: none; }
.v2 .s-ad   { left: 0;   top: 36%; --r: -6deg; }
.v2 .s-seo  { right: 0;  top: 22%; --r: 5deg; }
.v2 .s-cro  { right: 2%; top: 58%; --r: -4deg; }

/* ---------- responsive ---------- */
@media (min-width: 1181px) and (max-width: 1360px) {
  .clients, .clients ul { gap: 18px; }
  .clients img { height: calc(var(--h, 24px) * .78); }
}
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .clients li:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .nav { padding-block: 16px; }
  .nav-cta { gap: 10px; }
  .nav-cta .call { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { font-size: 26px; }
  .brand img { width: 27px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 12px 44px; }
  h1 { font-size: clamp(38px, 10.7vw, 68px); }
  .badge { font-size: 14px; margin-bottom: 18px; }
  .sub { margin-top: 18px; }
  .audit { margin-top: 24px; height: 62px; max-width: none; }
  .audit input { padding-left: 18px; font-size: 17px; }
  .audit .btn { padding: 0 18px; font-size: 16px; }
  .perks { gap: 8px 12px; font-size: 13.5px; margin-top: 16px; }
  .perks li { gap: 5px; }
  .shop { justify-self: center; max-width: 520px; }
  .proof { border-radius: 24px 24px 0 0; }
  .proof .wrap { flex-direction: column; align-items: stretch; gap: 22px; padding-block: 24px 28px; }
  .stats { justify-content: space-between; gap: 12px; }
  .stats dt { font-size: 13px; white-space: normal; }
  .stats dd { font-size: 27px; }
  .clients { flex-direction: column; align-items: flex-start; gap: 14px; }
  .clients p { max-width: none; }
  .clients ul { flex-wrap: wrap; gap: 14px 22px; }
  .clients li:nth-child(n+5) { display: block; }
  .clients img { height: calc(var(--h, 24px) * .76); }

  /* V1: product on its shelf first, then the product details as a compact block */
  .v1 .shop { padding-bottom: 0; }
  .v1 .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 74px; }
  .v1 .niche { max-width: min(250px, 64vw); margin-top: 26px; }
  .v1 .niche::after { left: -34px; right: -34px; }
  .v1 .tag { font-size: 13.5px; padding-block: 9px; }
  /* mirrored: the tag hangs to the left of the cap so it never leaves the screen */
  .v1 .tag-ad { left: auto; right: 43%; top: 4%; --r: 5deg; padding: 9px 27px 9px 15px; transform-origin: calc(100% - 13px) 50%; }
  .v1 .tag-ad::before { left: auto; right: 9px; }
  .v1 .tag-ad::after { right: auto; left: calc(100% - 13px); width: 14px; height: 20px; border: 1.5px solid #F6DDBD; border-left: 0; border-bottom: 0; border-radius: 0 100% 0 0; }
  .v1 .tag-seo { left: -10%; top: calc(100% + 28px); }
  .v1 .pdp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding-bottom: 20px; }
  .v1 .pdp h2 { font-size: 34px; }
  .v1 .price { margin: 0; font-size: 28px; }
  .v1 .rating { margin: 0; }
  .v1 .swatches { margin: 0; justify-self: end; gap: 9px; }
  .v1 .swatches span { width: 26px; height: 26px; }
  .v1 .cart { grid-column: 1 / -1; margin-top: 8px; }
  .v1 .cart .sticker { right: -4px; font-size: 14px; }
  .v1 .btn-cart { height: 54px; font-size: 17px; }

  .v2 .stage { gap: 26px; }
  .v2 .pitch { padding-bottom: 0; }
  .v2 .shop { height: 470px; min-height: 0; }
  .v2 .sun { width: 100%; bottom: -30%; }
  .v2 .storebar { width: 54%; top: 0; left: 6%; }
  .v2 .swoosh { left: -82%; top: 22%; width: 200%; height: auto; opacity: .18; }
  .v2 .buybar { height: 68px; padding-left: 22px; }
  .v2 .buybar strong { font-size: 18px; }
  .v2 .buybar .btn { padding: 0 20px; font-size: 15.5px; }
  .v2 .sticker { font-size: 13.5px; padding: 9px 12px; }
  .v2 .s-ad  { left: -6px; top: 34%; }
  .v2 .s-seo { right: -6px; top: 17%; }
  .v2 .s-cro { right: -8px; top: 69%; }
}
/* short laptop screens: keep the whole hero inside the first screen */
@media (min-width: 901px) and (max-height: 790px) {
  .nav { padding-block: 14px; }
  .stage { padding-block: 6px 18px; }
  .badge { margin-bottom: 16px; }
  .sub { margin-top: 18px; }
  .audit { margin-top: 22px; height: 62px; }
  .perks { margin-top: 14px; }
  .proof .wrap { padding-block: 16px; }
  .v1 .shop { padding-bottom: 44px; }
  .v1 .storebar { height: 48px; margin-bottom: 16px; }
  .v2 .stage { padding-bottom: 0; }
  .v2 .shop { height: 70vh; min-height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag, .dot::after { animation: none; }
  .btn { transition: none; }
}
