:root {
  --navy: #001735;
  --cyan: #00a8b5;
  --text: #111827;
  --muted: #596579;
  --line: #dfe4ea;
  --bg: #ffffff;
  --max: 1080px;
  --radius: 7px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  background: var(--navy);
  color: #fff;
  min-height: 343px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 14px 105px;
}

.eyebrow {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.85);
}

.domain-title {
  /*
   * The domain is NEVER broken over two lines: it stays on one line and the
   * font size is adjusted so it fits the space that is available.
   *
   *  1) Estimate in pure CSS (used before / without JavaScript):
   *       font size = free width / (number of characters x average glyph width)
   *     --chars is set from PHP in index.php, --avail is the width beside the card.
   *  2) script.js then measures the real text and sets the exact size.
   *
   * --title-max is the largest size it may grow to (short domains stay this big).
   */
  --title-max: 64px;
  --avail: calc(100vw - 40px);                /* mobile: full width minus 2 x 20px padding */

  max-width: 100%;
  margin: 0;
  font-size: min(var(--title-max), calc(var(--avail) / (var(--chars, 14) * 0.56)));
  line-height: 1.05;
  letter-spacing: -0.028em;                   /* em: text width scales exactly with the font size */
  font-weight: 700;

  white-space: nowrap;
  overflow-x: clip;                           /* safety net: can never cause sideways page scroll */
}

/* Desktop: leave room for the purchase card (same space as .domain-description) */
@media (min-width: 801px) {
  .domain-title {
    --avail: min(662px, calc(100vw - 418px));  /* page content width minus card 360px + gap 30px */
    max-width: calc(100% - 390px);
  }
}

.sale-text {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 700;
}

.domain-description {
  /*
   * Never run under the purchase card: the text wraps to the space that is
   * left beside it (card 360px + 30px gap), up to a 620px reading width.
   */
  max-width: min(620px, calc(100% - 390px));
  margin: 16px 0 0;

  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   MAIN PAGE
========================================================= */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 14px 70px;
  position: relative;
}

/*
 * Content leaves room for the purchase card on desktop.
 */
.content {
  width: calc(100% - 390px);
  padding-top: 50px;
}

/* =========================================================
   BENEFITS
========================================================= */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  text-align: center;
  margin-bottom: 42px;
}

.benefit-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;

  border: 2px solid #222;
  border-radius: 50%;

  display: grid;
  place-items: center;

  font-size: 31px;
  background: #fff;
}

/* Font Awesome icon inside the circle */
.benefit-icon i {
  line-height: 1;
}

.benefit span {
  margin: 0;
  font-size: 13.5px;
}

/* =========================================================
   DIVIDER
========================================================= */

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 27px;
}

/* =========================================================
   PURCHASE CARD
========================================================= */

/*
 * IMPORTANT:
 *
 * This is NOT fixed.
 * This is NOT sticky.
 *
 * The card is positioned relative to .page and therefore
 * scrolls away naturally together with the page.
 *
 * top: -215px places it over the bottom portion of the hero,
 * similar to the GoDaddy-style layout in your screenshot.
 */

.purchase-card {
  position: absolute;

  z-index: 10;

  top: -235px;
  right: 0;

  width: 370px;

  background: #fff;

  border: 1px solid #d8dce1;
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  overflow: hidden;
}

/* =========================================================
   PURCHASE CARD HEADER
========================================================= */

.card-header {
  padding: 17px 14px 20px;
}

.card-header h2 {
  margin: 0 0 7px;

  font-size: 22px;
  line-height: 1.2;
}

.badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;

  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 3px 7px;

  border-radius: 3px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-brandable {
  background: #FFE2C6;
  color: #000;
}

.badge-premium {
  background: #e2d0ff;
  color: #2c1354;
}

.badge-verified {
  background: #d4f7f3;
  color: #006b70;
}

.card-header p {
  margin: 0;

  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   PURCHASE OPTIONS
========================================================= */

.option-group {
  border-top: 1px solid var(--line);
}

.option {
  min-height: 72px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 14px;

  cursor: pointer;

  transition:
    background 0.15s ease;
}

.option:hover {
  background: #fafafa;
}

.option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

/* Radio */

.radio {
  width: 19px;
  height: 19px;

  border: 1.5px solid #777;

  border-radius: 50%;

  flex: 0 0 19px;
}

.option.selected .radio {
  border: 6px solid var(--cyan);
}

/* Option title */

.option-main {
  font-size: 14px;
  font-weight: 700;

  flex: 1;
}

/* Message shown under "Lease to own" when it is selected */

.lease-msg {
  display: block;

  /* left edge lines up with the option text (14px + 19px radio + 10px gap) */
  margin: -2px 14px 14px 35px;
  padding: 10px 12px;

  background: #f1fafb;
  border-left: 3px solid var(--cyan);
  border-radius: 4px;

  font-size: 13px;
  line-height: 1.5;
  color: var(--text);

  animation: market-in 0.2s ease;
}

/* Price */

.price {
  color: var(--cyan);

  font-weight: 700;
  font-size: 14px;

  text-align: right;

  white-space: nowrap;
}

.price small {
  display: block;

  font-weight: 400;
  font-size: 12px;

  margin-top: -2px;
}

/* =========================================================
   MARKETPLACE LINKS / OFFER CONTACTS (inside the selected option)
========================================================= */

[hidden] {
  display: none !important;
}

.market-panel {
  background: #f6fbfc;

  padding: 4px 14px 16px;

  animation: market-in 0.2s ease;
}

@keyframes market-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.market-panel h3 {
  margin: 0;

  font-size: 13px;
  color: var(--muted);
  outline: none;
}

.market-list {
  display: grid;
  gap: 10px;

  margin-top: 10px;
}

.market-btn {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 54px;
  padding: 9px 14px 9px 10px;

  border: 1.5px solid #cfd5dc;
  border-radius: 5px;
  background: #fff;

  font-size: 14px;
  font-weight: 700;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}

.market-btn:hover,
.market-btn:focus-visible {
  border-color: var(--cyan);
  background: #f4fcfd;
  outline: none;
}

.market-btn:active {
  transform: translateY(1px);
}

.market-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;

  border-radius: 6px;
  background: var(--navy);
  color: #fff;

  display: grid;
  place-items: center;

  font-size: 15px;

  position: relative;
  overflow: hidden;
}

/* Logo image: hidden until it has loaded (the letter shows meanwhile) */
.market-logo-img {
  display: none;
}

.market-logo.has-logo {
  background: #fff;
  border: 1px solid #e3e7ec;
  color: transparent;            /* hide the letter */
}

.market-logo.has-logo .market-logo-img {
  display: block;

  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  padding: 3px;
  box-sizing: border-box;

  object-fit: contain;
}

.market-name {
  flex: 1;

  display: flex;
  flex-direction: column;
}

.market-price {
  color: var(--cyan);

  font-size: 12px;
  font-weight: 700;

  margin-top: 1px;
}

.market-arrow {
  color: var(--cyan);
  font-size: 17px;
}

/* =========================================================
   TRUST / PAYMENT
========================================================= */

.trust {
  border-top: 1px solid var(--line);

  padding: 19px 14px 17px;

  font-size: 13px;
}

.trust p {
  margin: 0 0 10px;

  display: flex;
  align-items: center;

  gap: 8px;
}

.check {
  font-size: 16px;
  font-weight: 700;
}

/* Payment logos */

.payments {
  display: flex;
  flex-wrap: nowrap;            /* icons never break onto a second row */
  align-items: center;

  gap: 6px;

  margin-top: 14px;
}

.pay-icon {
  display: block;

  flex: 0 1 auto;               /* on narrow screens icons shrink instead of wrapping */
  min-width: 0;

  height: 19px;
  width: auto;
  max-width: 100%;

  object-fit: contain;          /* shrunk icons keep their proportions */
}

/* Purchase protection box */

.protection {
  margin-top: 16px;
  padding: 12px 14px;

  background: #eef8f1;
  border: 1px solid #d3ebda;
  border-radius: 12px;

  text-align: center;
}

.protection-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: #14432a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.protection-shield {
  font-size: 15px;
  line-height: 1;
}

.protection-text {
  margin-top: 4px;

  color: #3f6150;
  font-size: 13.5px;
  line-height: 1.4;
}

/* =========================================================
   FAQ
========================================================= */

.faq {
  max-width: 700px;

  margin-top: 55px;
}

.faq h2 {
  font-size: 23px;

  margin: 0 0 18px;
}

details {
  border-top: 1px solid var(--line);

  padding: 17px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;

  font-weight: 700;
}

details p {
  color: var(--text);
  margin: 10px 0 0;
}

/* =========================================================
   TOAST
========================================================= */

.toast {
  position: fixed;

  z-index: 30;

  left: 50%;
  bottom: 25px;

  transform: translate(-50%, 25px);

  background: #111;
  color: #fff;

  padding: 12px 18px;

  border-radius: 6px;

  opacity: 0;

  pointer-events: none;

  transition: 0.25s ease;

  font-size: 14px;
}

.toast.show {
  opacity: 1;

  transform: translate(-50%, 0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .purchase-card {
    right: 14px;
  }

}

/* =========================================================
   DESKTOP LAYOUT (card beside the content)
========================================================= */

/*
 * The card lives in a second grid column, pulled up over the hero with a
 * negative top margin. Unlike position:absolute this keeps the card INSIDE
 * the page height, so the page always leaves room below it – even when the
 * marketplace links / contact info make the card taller.
 */

@media (min-width: 801px) {

  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 30px;
    align-items: start;
  }

  .content {
    grid-column: 1;
    grid-row: 1;

    width: auto;
  }

  .purchase-card {
    position: relative;

    grid-column: 2;
    grid-row: 1;

    top: auto;
    right: auto;

    margin-top: -240px;
  }

}

/* wide screens: card sits flush with the page edge (14px past the content) */
@media (min-width: 1051px) {

  .purchase-card {
    left: 14px;
  }

}

/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 800px) {

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 43px 20px 48px;
  }

  /* card is no longer beside the hero text here */
  .domain-description {
    max-width: 620px;
  }

  .page {
    padding: 0 20px 55px;
  }

  .content {
    width: 100%;
    padding-top: 36px;
  }

  /*
   * On mobile the card becomes a normal-flow element.
   * It will scroll naturally with the page.
   */

  .purchase-card {
    position: static;

    width: 100%;

    margin: 30px auto 0;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  }

  .benefits {
    gap: 14px;
  }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 560px) {

  .domain-title {
    --title-max: 52px;
  }

  .eyebrow {
    font-size: 17px;
  }

  .sale-text {
    font-size: 18px;
  }

  .domain-description {
    margin-top: 12px;
    font-size: 16px;
  }

  .benefits {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .benefit-icon {
    width: 70px;
    height: 70px;
  }

  .purchase-card {
    width: 100%;
  }

}