/* ============================================================
   DIAL STUDIO — MAIN STYLES
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --creme:      #e6e6e1;
  --black:      #333333;
  --gray:       #777777;
  --gray-mid:   #444444;
  --gray-dark:  #222222;
  --accent:     #11beee;
  --font:       'Google Sans Code', monospace;
  --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--creme);
  color: var(--black);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "MONO" 1;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
  padding-bottom:3px;
  border-bottom: 1px solid transparent;
}
a:hover{
  border-bottom: 1px solid var(--accent);
}
/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header a {
  text-decoration:none !important;
  border-bottom: none !important;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  position: relative;
}

.hamburger .bar {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--black);
  transition:
    transform 0.38s var(--ease-out),
    opacity   0.38s ease;
  transform-origin: center center;
  will-change: transform;
}

/* 
  2 bars: each bar is 2px tall, gap between them is 8px.
  Center-to-center = 1 + 8 + 1 = 10px, so each moves ±5px.
*/
.hamburger.active .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ── FULL-SCREEN NAV MENU ────────────────────────────────── */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background-color: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.nav-menu.open {
  z-index: 250;
  transform: translateY(0);
  pointer-events: all;
}

.nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--black);
  text-decoration: none;
  padding: 8px 0;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  line-height: 1.15;
}

.nav-link:hover {
  /*opacity: 0.4;*/
  color: var(--accent);
}

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
main {
  padding-top: 86px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── SECTION HEADINGS ────────────────────────────────────── */
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  /*font-size: clamp(0.9rem, 1.8vw, 1.25rem);*/
  font-size: 16px;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── APPS SECTION ────────────────────────────────────────── */
.apps-section {
  padding: 80px 0;
  border-top: 1px solid var(--gray-dark);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--gray-mid);
  color: var(--gray);
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--creme);
}

/* Apps grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: #080808;
  border: 1px solid var(--gray-dark);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  border-color: var(--gray-mid);
  transform: translateY(-6px);
  cursor: pointer;
}

.app-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-image .placeholder {
  font-size: 3.5rem;
  color: var(--gray-dark);
  user-select: none;
}

.app-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-card-type {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--gray-dark);
  padding: 3px 10px;
  align-self: flex-start;
}

.app-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
}

.app-card-link {
  display: inline-block;
  color: var(--black);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-mid);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: border-color 0.2s, opacity 0.2s;
  margin: 0 auto;
}

.app-card-link:hover {
  opacity: 0.6;
  border-color: var(--black);
}

/* ── FAQ SECTION ─────────────────────────────────────────── */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--gray-dark);
}

.faq-item {
  border-bottom: 1px solid var(--gray-dark);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  width: 100%;
  transition: opacity 0.2s;
}

.faq-question:hover {
  opacity: 0.65;
}

.faq-toggle {
  flex-shrink: 0;
  position: relative;
  width: 16px;
  height: 16px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--black);
}

.faq-toggle::before {
  width: 12px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 1px;
  height: 12px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding-bottom: 24px;
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-answer-content p + p { margin-top: 10px; }
.faq-answer-content a      { color: var(--black); }
.faq-answer-content ul,
.faq-answer-content ol     { padding-left: 20px; }

/* ── COLOR PALETTE SECTION ───────────────────────────────── */
.colors-section {
  padding: 80px 0;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  max-width: 820px;
  padding-bottom: 24px;
}

.color-swatch {
  aspect-ratio: 1 / 1;
  /*border-radius: 3px;*/
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s var(--ease-out);
}

.color-swatch:hover,
.color-swatch:focus-visible {
  /*transform: scale(1.12);*/
  z-index: 1;
}

.color-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--black);
  color: var(--creme);
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 400;
}

.color-tooltip.visible {
  opacity: 1;
}

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--gray-dark);
}

.contact-info {
  margin-bottom: 40px;
  text-align:center;
}

.contact-info p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.contact-email {
  font-size: 1rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.5;
}

.social-link svg {
  flex-shrink: 0;
}

/* ── ABOUT PAGE ─────────────────────────────────────────── */
.about-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--gray-dark);
}

.about-card {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-text {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 700px;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-contact p {
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── UTILITY ─────────────────────────────────────────────── */
.loading {
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.no-results {
  color: var(--gray);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  padding: 32px;
  border-top: 1px solid var(--gray-dark);
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-social-link {
  color: var(--gray-mid);
  border-bottom: none;
  transition: opacity 0.2s;
}

.footer-social-link:hover {
  opacity: 0.6;
  border-bottom: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .container   { padding: 0 20px; }

  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
  }

  .color-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .social-links { gap: 24px; }
}

/* ── REFERENCE LAYOUT ───────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 120px;
  padding: 22px 36px;
  justify-content: flex-end;
  background: rgba(230, 230, 225, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--black);
  text-decoration: none;
  transform: translateX(-50%);
}

.logo-mark,
.section-mark {
  display: block;
  overflow: hidden;
}

.logo-mark {
  height: 70px;
}

.logo-mark img,
.section-mark img {
  display: block;
  max-width: none;
}

.logo-name {
  font-size: 0.48rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.hamburger {
  gap: 6px;
}

.hamburger .bar {
  width: 24px;
  height: 1px;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

main {
  padding-top: 104px;
  min-height: calc(100dvh - 60px);/*footer height*/
}

.container {
  max-width: 960px;
  padding: 0 28px;
}

.hero {
  min-height: 240px;
  max-width: 390px;
  padding: 24px 24px 48px;
  margin: 0 auto;
  justify-content: flex-start;
  gap: 18px;
}

.hero p {
  color: var(--black);
  font-weight: 430;
  line-height: 1.25;
  text-transform: none;
}

.apps-section {
  padding: 0;
  border: 0;
}

.filter-bar {
  display: none;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 44px;
  align-items: start;
}

.app-card {
  display: flex;
  align-items: center;
  min-width: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  text-align: center;
  transition: opacity 0.2s ease;
}

.app-card:hover {
  border-color: transparent;
  transform: none;
  /*opacity: 0.72;*/
}

.app-card-featured {
  grid-column: 1 / -1;
  width: min(100%, 390px);
  margin: 0 auto 20px;
}

.app-card-image {
  width: 172px;
  height: 172px;
  aspect-ratio: auto;
  background: transparent;
  overflow: visible;
}

.app-card-featured .app-card-image {
  width: 270px;
  height: 270px;
}

.app-card-image img {
  object-fit: contain;
}

.app-card-image .placeholder {
  color: var(--gray);
  font-size: 5rem;
  font-weight: 300;
}

.app-card-body {
  width: 100%;
  padding: 8px 0 0;
  align-items: center;
  gap: 7px;
}

.app-card-name {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-card-description {
  height: 7.5em;
  max-width: 230px;
  font-size: 0.7rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-featured .app-card-name {
  font-size: 1.12rem;
}

.app-card-link {
  width: min(100%, 220px);
  padding: 10px 18px;
  margin-top: 8px;
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 1;
  text-decoration: none;
}

.app-card-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.faq-section {
  padding: 112px 0 0;
  border: 0;
}

.section-mark {
  height: 31px;
  margin: 0 auto 82px;
}

.section-title {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.faq-list {
  margin: 0 auto;
  border-top: 1px solid #969691;
}

.faq-item {
  border-bottom-color: #969691;
}

.faq-question {
  min-height: 37px;
  padding: 7px 5px;
  font-size: 0.66rem;
  font-weight: 430;
  line-height: 1.25;
}

.faq-toggle {
  width: 11px;
  height: 11px;
}

.faq-toggle::before {
  width: 7px;
}

.faq-toggle::after {
  height: 7px;
}

.faq-answer-content {
  padding: 4px 5px 14px;
  color: var(--gray-mid);
  font-size: 0.66rem;
  line-height: 1.5;
}

.contact-section {
  padding: 220px 0 18px;
  border: 0;
}

.social-links {
  justify-content: center;
  gap: 14px;
}

.social-link {
  gap: 0;
}

.social-link span {
  display: none;
}

.social-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.site-footer {
  padding: 12px 24px 36px;
  border: 0;
  color: var(--black);
  font-size: 0.48rem;
}

.footer-social {
  gap: 12px;
  margin-bottom: 10px;
}

.footer-social-link svg,
.footer-social-link img {
  width: 36px;
  height: 36px;
}

.about-section {
  padding-top: 48px;
  border: 0;
}

@media (max-width: 700px) {
  .site-header {
    height: 92px;
    padding: 18px 20px;
  }

  main {
    padding-top: 92px;
  }

  .hero {
    padding-bottom: 42px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .app-card-featured {
    grid-column: auto;
  }

  .app-card-image {
    width: 190px;
    height: 190px;
  }

  .app-card-featured .app-card-image {
    width: min(76vw, 270px);
    height: min(76vw, 270px);
  }

  .faq-section {
    padding-top: 96px;
  }

  .section-mark {
    margin-bottom: 72px;
  }

  .contact-section {
    padding-top: 150px;
  }
}
