/* Good Name Domains: styles for the name pages (names/<name>.html) and 404 */

/* Top of the page: the logo and the deal */
.name-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 88px;
}

.name-art {
  height: auto;
  aspect-ratio: 5 / 4;
  padding: 0 40px;
  border-radius: 24px;
  gap: 14px;
}

.name-cat { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: var(--graphite); }

.name-title {
  margin: 0;
  font-size: min(var(--h1), calc(150vw / var(--len)));
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.name-note { margin: 20px 0 30px; max-width: 30em; font-size: 20px; line-height: 1.5; color: var(--body); }

.name-price { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.price { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price.is-offer { font-size: 32px; }
.price-sub { font-size: 16px; color: var(--graphite); }

.name-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.name-assure {
  margin: 28px 0 0;
  padding-top: 20px;
  max-width: 34em;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--graphite);
}

/* See it in use */
.mocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mock { margin: 0; }
.mock figcaption { margin-top: 14px; font-size: 16px; font-weight: 600; }
.mock-note { margin: 24px 0 0; font-size: 16px; color: var(--graphite); }

.mock-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--mist);
  overflow: hidden;
}

/* Business cards */
.card {
  position: absolute;
  width: 62%;
  aspect-ratio: 3.5 / 2;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 26px -10px rgba(0, 0, 0, .28);
}
.card-back {
  top: 8%;
  right: 6%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7%;
  background: var(--white);
  transform: rotate(6deg);
}
.card-front { left: 7%; bottom: 8%; height: auto; padding: 0 14px; gap: 4px; transform: rotate(-4deg); }
.card-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
}
.card-lines { display: flex; flex-direction: column; min-width: 0; font-size: 10px; line-height: 1.4; color: var(--body); }
.card-lines strong { font-size: 11.5px; color: var(--black); }
.card-lines span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-gap { margin-top: 7px; }

/* Website */
.mock-site { display: flex; align-items: flex-end; padding: 9% 7% 0; }
.browser {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 10px 10px 0 0;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 30px -12px rgba(0, 0, 0, .22);
}
.browser-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #E9E9ED; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #C6C6CD; }
.browser-address {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 20px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--white);
  font-size: 11px;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
}
.browser-address svg { flex: none; color: #85858F; }
.browser-page { flex: 1; display: flex; flex-direction: column; }
.site-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 14px; }
.site-mock-logo { width: 55%; height: 100%; padding: 0; align-items: flex-start; gap: 2px; background: transparent; }
.site-mock-nav { display: flex; gap: 6px; }
.site-mock-nav i { width: 20px; height: 5px; border-radius: 3px; background: currentColor; opacity: .5; }
.site-mock-hero { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; }
.bar { display: block; height: 8px; border-radius: 4px; background: #E6E6EA; }
.bar-xl, .bar-lg { height: 13px; background: #D7D7DD; }
.bar-xl { width: 80%; }
.bar-lg { width: 54%; margin-bottom: 6px; }
.bar-sm { width: 72%; }
.bar-sm.short { width: 48%; }
.site-mock-button { width: 76px; height: 22px; margin-top: 8px; border-radius: 6px; }

/* Work van */
.mock-van { display: flex; align-items: center; justify-content: center; padding: 0 5%; }
.van { position: relative; width: 100%; aspect-ratio: 440 / 220; }
.van-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.van-logo { position: absolute; left: 4.1%; top: 15.5%; width: 65.9%; height: 50%; padding: 0 8px; gap: 3px; background: transparent; }

/* Phone */
.mock-phone { display: flex; justify-content: center; padding-top: 8%; }
.phone {
  position: relative;
  width: 58%;
  aspect-ratio: 9 / 17;
  flex: none;
  border: 9px solid #1C1C1E;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: #E7E9ED;
}
.phone-notch { position: absolute; top: 8px; left: 50%; width: 30%; height: 15px; border-radius: 8px; background: #1C1C1E; transform: translateX(-50%); }
.app-grid {
  list-style: none;
  margin: 0;
  padding: 40px 14px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 14px;
}
.app-grid li { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 23%;
  background: #D2D6DD;
  overflow: hidden;
}
.app-label { width: 70%; height: 5px; border-radius: 3px; background: #C7CBD3; }
.app-name {
  max-width: 100%;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #1C1C1E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Who it fits, about the name */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.about.about-one { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.fits { list-style: none; margin: 0; padding: 0; }
.fits li, .facts > div { padding: 18px 0; border-top: 1px solid var(--line); }
.fits li:first-child, .facts > div:first-child { border-top: 2px solid var(--black); }
.fits li { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.facts dt { font-size: 17px; color: var(--graphite); }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; }

/* Questions */
.faq { max-width: 820px; margin-top: 72px; }
.faq-title { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item p { max-width: 42em; margin: 0 0 22px; color: var(--body); }

/* More names */
.similar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.similar-head h2 { margin: 0; }
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 404 */
.page-lost { min-height: 100vh; display: flex; flex-direction: column; }
.page-lost main { flex: 1; }
.page-lost .site-footer .footer-row { padding-top: 34px; border-top: 0; }
.lost .wrap { display: block; padding-top: 56px; padding-bottom: 140px; }

/* Responsive */
@media (max-width: 960px) {
  .name-hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; padding-bottom: 72px; }
  .name-art { aspect-ratio: 16 / 10; }
  .about { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 760px) {
  .mocks { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .name-art { aspect-ratio: 4 / 3; padding: 0 24px; border-radius: 20px; }
  .name-note { font-size: 18px; }
  .price { font-size: 40px; }
  .fits li { font-size: 18px; }
  .facts > div { grid-template-columns: 128px minmax(0, 1fr); }
  .faq { margin-top: 56px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}
