/* ============================================================
   Possisoft — Shared Stylesheet
   Clean, minimal, Apple-inspired.
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */

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

:root {
  --color-bg:          #FAFAFA;
  --color-bg-alt:      #F2F2F7;
  --color-surface:     #FFFFFF;
  --color-border:      #E5E5EA;
  --color-text:        #1D1D1F;
  --color-text-2:      #48484A;
  --color-text-3:      #6E6E73;
  --color-text-4:      #AEAEB2;
  --color-accent:      #0071E3;
  --color-accent-dark: #0058B0;

  /* App brand accents */
  --color-platepal:    #1C1C1E;
  --color-brewprint:   #0F4C81;
  --color-colorfolio:  #7B4FA6;

  --radius-card:   18px;
  --radius-badge:  6px;
  --shadow-card:   0 2px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-hover:  0 8px 28px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", "Fira Mono", monospace;

  --max-width: 1080px;
  --page-padding: 24px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

/* --- Layout Utilities -------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section {
  padding: 80px 0;
}

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

/* --- Site Header ------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 250, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.site-header__logo:hover { text-decoration: none; }

.site-header__logo span {
  color: var(--color-accent);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-header__nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header__nav a:hover { color: var(--color-text); text-decoration: none; }

/* --- Site Footer ------------------------------------------- */

.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 40px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.2px;
}
.site-footer__brand span { color: var(--color-accent); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--color-text-3);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--color-text); text-decoration: none; }

.site-footer__legal {
  font-size: 12px;
  color: var(--color-text-4);
  line-height: 1.5;
}

/* --- Hero -------------------------------------------------- */

.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 400;
  color: var(--color-text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); opacity: 1; }

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-border);
}

.btn--dark {
  background-color: var(--color-text);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 10px 0;
}
.btn--ghost:hover { opacity: 0.75; transform: none; }

/* --- Badges ------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--available {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge--soon {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge--premium {
  background-color: #EDE9FE;
  color: #4C1D95;
}

/* --- App Cards (homepage grid) ----------------------------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.app-card__header {
  padding: 32px 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.app-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.app-card__meta {
  flex: 1;
  padding-top: 2px;
}

.app-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.app-card__platform {
  font-size: 12px;
  color: var(--color-text-4);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.app-card__body {
  padding: 0 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card__tagline {
  font-size: 15px;
  color: var(--color-text-2);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.app-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* App-specific accent stripes */
.app-card--platepal .app-card__icon  { background-color: #1C1C1E; }
.app-card--brewprint .app-card__icon { background-color: #0F4C81; }
.app-card--colorfolio .app-card__icon{ background-color: #7B4FA6; }

/* Muted overlay for coming-soon cards */
.app-card--soon {
  opacity: 0.88;
}
.app-card--soon:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* --- Feature Grid ------------------------------------------ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  position: relative;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.feature-item__icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-item__desc {
  font-size: 14px;
  color: var(--color-text-3);
  line-height: 1.55;
}

/* --- App Hero (per-app pages) ------------------------------ */

.app-hero {
  padding: 80px 0 72px;
}

.app-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.app-hero__icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.app-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: var(--color-text);
}

.app-hero__tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-text-2);
  max-width: 520px;
  line-height: 1.5;
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* --- Section Titles ---------------------------------------- */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-3);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 48px;
}

/* --- Coming Soon Banner ------------------------------------ */

.coming-soon-banner {
  background: linear-gradient(135deg, #1D1D1F 0%, #3A3A3C 100%);
  color: #fff;
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  margin: 48px 0;
}

.coming-soon-banner__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.coming-soon-banner__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.coming-soon-banner__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
}

/* --- Privacy / Legal pages --------------------------------- */

.legal-page {
  padding: 60px 0 96px;
}

.legal-page__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal-page__app {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-4);
  margin-bottom: 10px;
}

.legal-page__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.legal-page__updated {
  font-size: 14px;
  color: var(--color-text-4);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 40px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 15px;
  color: var(--color-text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 12px 0 14px 20px;
}

.legal-content li {
  font-size: 15px;
  color: var(--color-text-2);
  line-height: 1.65;
  margin-bottom: 6px;
}

.legal-content a { color: var(--color-accent); }

/* --- Breadcrumb -------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 13px;
  color: var(--color-text-4);
  padding: 16px 0;
}
.breadcrumb a { color: var(--color-text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }

/* --- Support page ------------------------------------------ */

.support-contact {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.support-contact__icon {
  font-size: 32px;
  flex-shrink: 0;
}

.support-contact__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-4);
  margin-bottom: 4px;
}

.support-contact__value {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
}

.support-contact__value a {
  color: var(--color-text);
}

/* --- App Store Badge placeholder --------------------------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #000;
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.appstore-badge:hover { opacity: 0.82; text-decoration: none; color: #fff; }
.appstore-badge__icon { font-size: 22px; }
.appstore-badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.appstore-badge__sub { font-size: 10px; font-weight: 400; opacity: 0.75; }
.appstore-badge__main { font-size: 16px; font-weight: 600; }

/* --- Divider ----------------------------------------------- */

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

/* --- Hamburger / Mobile Nav --------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
/* Animate to × when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  /* Hide the nav off-screen by default */
  .site-header nav {
    display: none;
    position: absolute;
    top: 52px; /* header bar height */
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 6px 0 18px;
    z-index: 99;
  }
  .site-header.nav-open nav { display: block; }

  .site-header__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-header__nav li { width: 100%; }
  .site-header__nav a {
    display: block;
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 500;
  }
}

/* --- Responsive -------------------------------------------- */

@media (max-width: 640px) {
  :root {
    --page-padding: 16px;
  }

  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }

  .support-contact {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
  }

  .coming-soon-banner {
    padding: 48px 24px;
  }

  .legal-page { padding: 40px 0 72px; }
}
