/* ==========================================================================
   CoreUIX stylesheet
   1. Tokens   2. Base   3. Layout   4. Components   5. Header & footer   6. Pages
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */

:root {
  /* Brand */
  --brand: #37517e;
  --brand-dark: #2b4066;
  --brand-tint: #e9eef6;
  --accent: #47b2e4;
  --on-brand: #ffffff;

  /* Surfaces & text */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --text: #1f2a3d;
  --text-muted: #5b6678;
  --border: #dbe2ec;
  --link: #37517e;
  --danger: #c0392b;
  --danger-tint: #fbeceb;
  --success: #1e8e5a;
  --star: #f5b301;
  --store-bg: #000000;

  /* Type */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Poppins", var(--font-body);
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-section: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgb(20 35 60 / 0.08);
  --shadow: 0 8px 24px rgb(20 35 60 / 0.08);
  --shadow-lg: 0 16px 40px rgb(20 35 60 / 0.14);

  --container: 1140px;
  --header-height: 72px;
  --transition: 0.2s ease;
}


/* 2. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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


/* 3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-5);
  }
}

.section {
  padding-block: var(--space-8);
}

.section--alt {
  background: var(--surface-alt);
}

.section__header {
  max-width: 640px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

/* Section title: large heading with a short brand-colour bar underneath */
.section-title {
  margin-bottom: var(--space-5);
  font-size: var(--fs-section);
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
}

.section__header .section-title::after {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}


/* 4. Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn--outline:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--light {
  background: var(--on-brand);
  color: var(--brand);
}

.btn--light:hover {
  background: var(--brand-tint);
}

.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.5);
  color: var(--on-brand);
  background: transparent;
}

.btn--ghost-light:hover {
  border-color: var(--on-brand);
  background: rgb(255 255 255 / 0.1);
}

.btn--danger {
  background: var(--danger);
  color: var(--on-brand);
}

.btn--danger:hover {
  filter: brightness(0.92);
}

.btn--block {
  width: 100%;
}

/* Cards */
.card {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Page hero: title band for inner pages */
.page-hero {
  padding-block: var(--space-7);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--on-brand);
}

.page-hero h1 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h2);
}

.page-hero p {
  margin: 0;
  max-width: 600px;
  color: rgb(255 255 255 / 0.8);
  font-size: var(--fs-lg);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(55 81 126 / 0.2);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
}

.field__hint {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}

.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
}

/* Switch (toggle-style checkbox) */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.switch:last-child {
  border-bottom: 0;
}

.switch__text strong {
  display: block;
}

.switch__text span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.switch input {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--border);
  cursor: pointer;
  transition: background-color var(--transition);
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--on-brand);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.switch input:checked {
  background: var(--brand);
}

.switch input:checked::after {
  transform: translateX(20px);
}

/* FAQ accordion */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 800px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "\F282"; /* bi-chevron-down */
  font-family: "bootstrap-icons";
  color: var(--accent);
  transition: transform var(--transition);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq details p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
}

/* Pricing cards */
.pricing {
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-lg);
}

.price-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.price-card__name {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
}

.price-card__price {
  margin-bottom: var(--space-5);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.price-card__period {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
}

.price-card__features {
  display: grid;
  gap: var(--space-3);
  flex: 1;
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.price-card__features li {
  display: flex;
  gap: var(--space-2);
}

.price-card__features .bi-check-circle-fill {
  color: var(--success);
}

.price-card__features .is-unavailable {
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-card__features .bi-x-circle {
  color: var(--text-muted);
}

/* Icon circle used in feature/info blocks */
.icon-circle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.3rem;
}


/* 5. Header & footer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.site-header__logo img {
  width: auto;
  height: 44px;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-brand);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Mobile nav: hidden panel below the header */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: var(--brand-dark);
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open {
  display: grid;
  gap: var(--space-4);
}

.site-nav__links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  display: block;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-sm);
  color: rgb(255 255 255 / 0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--on-brand);
  background: rgb(255 255 255 / 0.1);
}

.site-nav__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .site-nav__links {
    display: flex;
    gap: var(--space-1);
  }

  .site-nav__links a {
    padding: var(--space-2) var(--space-3);
  }

  .site-nav__links a[aria-current="page"] {
    background: none;
    box-shadow: inset 0 -2px 0 var(--accent);
    border-radius: 0;
  }
}

/* Country picker */
.country-picker {
  position: relative;
}

.country-picker__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--on-brand);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition);
}

.country-picker__button:hover {
  background: rgb(255 255 255 / 0.1);
}

.country-picker__button .bi {
  font-size: 0.7rem;
}

.country-picker .fi {
  width: 1.4em;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
}

.country-picker__menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 110;
  display: grid;
  min-width: 150px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  list-style: none;
}

.country-picker__menu[hidden] {
  display: none;
}

@media (min-width: 992px) {
  .country-picker__menu {
    left: auto;
    right: 0;
  }
}

.country-picker__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.country-picker__option:hover,
.country-picker__option:focus-visible {
  background: var(--surface-alt);
}

.country-picker__option[aria-pressed="true"] {
  background: var(--brand-tint);
  color: var(--brand);
}

.country-picker__currency {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}

/* Contact banner (above the footer on every page except Contact) */
.contact-banner {
  padding-block: var(--space-6);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--on-brand);
}

.contact-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.contact-banner .icon-circle {
  background: rgb(255 255 255 / 0.12);
  color: var(--on-brand);
}

.contact-banner__text {
  flex: 1 1 240px;
}

.contact-banner__text h2 {
  margin: 0;
  font-size: var(--fs-h3);
}

.contact-banner__text p {
  margin: 0;
  color: rgb(255 255 255 / 0.8);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer__main {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-7);
}

@media (min-width: 640px) {
  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .site-footer__main {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.site-footer__brand img {
  margin-bottom: var(--space-3);
}

.site-footer__brand p {
  color: var(--text-muted);
}

.site-footer__heading {
  margin-bottom: var(--space-4);
  font-size: var(--fs-base);
}

.site-footer__links {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--link);
}

.social-links {
  display: flex;
  gap: var(--space-2);
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  transition: background-color var(--transition);
}

.social-links a:hover {
  background: var(--accent);
}

.site-footer__bottom {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}


/* 6. Pages
   ========================================================================== */

/* Home: hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--on-brand);
}

.hero__inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero__lead {
  max-width: 540px;
  margin-bottom: var(--space-6);
  color: rgb(255 255 255 / 0.85);
  font-size: var(--fs-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__art {
  display: none;
  justify-self: center;
  padding: var(--space-7);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.25);
}

.hero__art img {
  width: 220px;
}

@media (min-width: 992px) {
  .hero {
    padding-block: 7rem;
  }

  .hero__inner {
    grid-template-columns: 1.3fr 1fr;
  }

  .hero__art {
    display: block;
  }
}

/* Home: what we do */
.about {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.about__intro p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.about__intro .about__lead {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
}

.about__intro .about__cta {
  margin-bottom: var(--space-5);
  color: var(--text);
}

.pillars {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pillar h3 {
  margin-bottom: var(--space-1);
  font-size: var(--fs-lg);
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .about {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Home: more link under a section */
.section__more {
  margin-top: var(--space-6);
  text-align: center;
}

/* Home: how it works */
.steps {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.step__number {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-heading);
  font-weight: 700;
}

.step h3,
.step p {
  margin: 0;
}

.step p {
  color: var(--text-muted);
}

/* Home: available everywhere */
.platform {
  text-align: center;
}

.platform__icon {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--brand);
  font-size: 2.5rem;
}

.platform p {
  margin: 0;
  color: var(--text-muted);
}

/* Home: awards */
.awards {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .awards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .awards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.award {
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-top: 4px solid var(--star);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.award__icon {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--star);
  font-size: 2.25rem;
}

.award h3 {
  margin-bottom: var(--space-1);
  font-size: var(--fs-lg);
}

.award p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Home: testimonials */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--star);
}

.testimonial blockquote {
  flex: 1;
  margin: 0;
}

.testimonial blockquote p {
  margin: 0;
  font-size: var(--fs-lg);
}

.testimonial figcaption {
  display: grid;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.testimonial figcaption span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Software */
.software-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.software-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.software-card:hover h3 {
  color: var(--brand);
}

.software-card__icon {
  width: 64px;
  height: 64px;
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--brand-tint);
  object-fit: contain;
}

.software-card h3 {
  margin: 0;
}

.software-card p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
}

/* Software detail */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-2);
  color: rgb(255 255 255 / 0.5);
}

.breadcrumbs a {
  color: rgb(255 255 255 / 0.8);
}

.breadcrumbs [aria-current="page"] {
  color: var(--on-brand);
}

.app-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.app-hero__inner > div {
  flex: 1 1 320px;
}

.app-hero__logo {
  width: 112px;
  height: 112px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.app-hero h1 {
  font-size: var(--fs-h1);
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0.4rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-sm);
  background: var(--store-bg);
  color: var(--on-brand);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: transform var(--transition);
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn .bi {
  font-size: 1.5rem;
}

.store-btn small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
}

.app-detail {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 992px) {
  .app-detail {
    grid-template-columns: 1fr 340px;
  }
}

.app-detail__text {
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.app-detail__subheading {
  margin-top: var(--space-7);
}

.app-features {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .app-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-feature {
  display: flex;
  gap: var(--space-4);
}

.app-feature h3 {
  margin-bottom: var(--space-1);
  font-size: var(--fs-base);
}

.app-feature p {
  margin: 0;
  color: var(--text-muted);
}

.app-info h2 {
  font-size: var(--fs-h3);
}

.app-info dl {
  margin: 0 0 var(--space-5);
}

.app-info dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.app-info dt {
  color: var(--text-muted);
}

.app-info dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

@media (min-width: 992px) {
  .app-info {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }
}

/* Contact */
.contact {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 992px) {
  .contact {
    grid-template-columns: 2fr 3fr;
  }
}

.contact-info {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
}

.contact-info__item h3 {
  margin-bottom: var(--space-1);
  font-size: var(--fs-base);
}

.contact-info__item p {
  margin: 0;
  color: var(--text-muted);
}

/* Auth: login & register */
.auth {
  display: grid;
  place-items: center;
  padding: var(--space-7) var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 480px) {
  .auth-card {
    padding: var(--space-7);
  }
}

.auth-card__header {
  margin-bottom: var(--space-6);
  text-align: center;
}

.auth-card__header img {
  width: 56px;
  margin: 0 auto var(--space-4);
}

.auth-card__header h1 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
}

.auth-card__header p {
  margin: 0;
  color: var(--text-muted);
}

.social-login {
  display: grid;
  gap: var(--space-3);
}

.btn--social {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.btn--social:hover {
  background: var(--surface-alt);
}

.social-login__icon {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.15rem;
  line-height: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.auth-card__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}

.auth-card__footer {
  margin: var(--space-6) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

/* Settings */
.settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.settings-nav {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin: 0;
  padding: 0 0 var(--space-2);
  list-style: none;
}

.settings-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.settings-nav a:hover {
  background: var(--brand-tint);
  color: var(--text);
}

.settings-nav a.is-danger {
  color: var(--danger);
}

.settings__content {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.settings__content .card h2 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
}

.settings__intro {
  margin-bottom: var(--space-5);
  color: var(--text-muted);
}

.settings__actions {
  display: flex;
  justify-content: flex-end;
}

.card--danger {
  border-color: var(--danger);
  background: var(--danger-tint);
}

.card--danger h2 {
  color: var(--danger);
}

@media (min-width: 992px) {
  .settings {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }

  .settings-nav {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
    flex-direction: column;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .settings-nav a {
    border-radius: var(--radius-sm);
  }
}

/* 404 */
.not-found {
  padding-block: var(--space-8);
  text-align: center;
}

.not-found__code {
  margin-bottom: var(--space-2);
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 700;
  line-height: 1;
}

.not-found p {
  color: var(--text-muted);
}
