/* ============================================================
   MinkNote — style.css
   Light mode. Playfair Display headlines, Inter body.
   ============================================================ */

/*
  To use SN Pro instead of Nunito/Google Fonts:
    1. Download SNPro-Regular.woff2 + SNPro-Italic.woff2 from
       https://github.com/supernotes/sn-pro/releases
    2. Place in assets/fonts/
    3. Uncomment below, remove the two Google Fonts <link> tags in index.html
*/
/*
@font-face {
  font-family: "SN Pro";
  src: url("../fonts/SNPro-Regular.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SN Pro";
  src: url("../fonts/SNPro-Italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
*/

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body                   { min-height: 100vh; }
img, video             { display: block; max-width: 100%; }
a                      { color: inherit; text-decoration: none; }
ul, ol                 { list-style: none; }
button                 { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Fonts:
     --font-head  → Playfair Display (high-contrast serif, "Think Different" feel)
     --font-body  → Inter (clean, neutral, legible)
     SN Pro will slot into --font-body when ready. */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "SN Pro", system-ui, -apple-system, sans-serif;

  /* Light palette */
  --bg:          #fafaf8;
  --surface:     #ffffff;
  --surface-2:   #f4f3ef;
  --surface-3:   #eceae4;
  --border:      rgba(0, 0, 0, 0.08);
  --border-hi:   rgba(0, 0, 0, 0.14);

  --text:        #1a1917;
  --text-muted:  #6b6a66;
  --text-dim:    #a09e99;

  /* Accent — Apple Blue */
  --accent:      #0A84FF;
  --accent-hi:   #3a9fff;
  --accent-glow: rgba(10, 132, 255, 0.15);

  /* Type scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.25rem;
  --t-2xl:  1.5rem;
  --t-3xl:  1.875rem;
  --t-4xl:  2.25rem;
  --t-5xl:  3rem;
  --t-6xl:  3.75rem;
  --t-7xl:  4.5rem;

  /* Space scale */
  --s1:  0.25rem;   --s2:  0.5rem;    --s3:  0.75rem;
  --s4:  1rem;      --s5:  1.25rem;   --s6:  1.5rem;
  --s8:  2rem;      --s10: 2.5rem;    --s12: 3rem;
  --s14: 3.5rem;    --s16: 4rem;      --s20: 5rem;
  --s24: 6rem;      --s28: 7rem;      --s32: 8rem;

  /* Radii */
  --r-sm:  6px;   --r-md: 12px;
  --r-lg:  18px;  --r-xl: 24px;  --r-2xl: 32px;

  --nav-h: 64px;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Serif only for big headings */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

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

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: var(--s4) 0;
  transition: background 0.35s ease,
              backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease,
              padding 0.35s ease,
              border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
  padding: var(--s3) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-size: var(--t-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.nav-links a {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: var(--s2);
  border-radius: var(--r-sm);
}

.nav-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s24));
  padding-bottom: 0;            /* screen-bg panel closes the section */
  text-align: center;
  overflow: hidden;
  /* Gentle radial wash — very subtle on light bg */
  background: radial-gradient(
    ellipse 900px 500px at 50% 0%,
    rgba(10, 132, 255, 0.05) 0%,
    transparent 70%
  ), var(--bg);
}

/* Full-width beige panel that frames the hero screenshot —
   mirrors the same var(--surface-2) used by the features grid and features.html */
.hero-screen-bg {
  background: var(--surface-2);
  padding-top: var(--s10);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  padding: 5px var(--s4) 5px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.platform-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(var(--t-5xl), 7.5vw, var(--t-7xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text);
  max-width: 840px;
  margin: 0 auto var(--s6);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(var(--t-base), 2.2vw, var(--t-xl));
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--s10);
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-bottom: var(--s16);
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.68em 1.5em;
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-hi);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ── Hero screenshot ── */
.hero-img-wrap {
  position: relative;
  display: block;
  /* Match the natural resized image width; scales down proportionally on
     smaller viewports via width: 100% on the img — never squashed */
  max-width: 1000px;
  margin: 0 auto;
  /* Side gutters — replaces the container padding it no longer inherits */
  padding: 0 var(--s6);
}

.hero-img-wrap img {
  display: block;
  /* Scale down on narrow screens, never upscale past natural size */
  width: 100%;
  height: auto;
  /* No border-radius — the macOS window shadow is already in the RGBA file */
  /* No filter drop-shadow — the native macOS shadow in the PNG is sufficient */
}

/* ============================================================
   FEATURE SPLIT SECTIONS
   ============================================================ */
.feature-section {
  padding: var(--s32) 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.split-content h2 {
  font-size: clamp(var(--t-3xl), 4vw, var(--t-5xl));
}

.split-content > p {
  font-size: var(--t-lg);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 400px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s2);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── App window placeholder ── */
.app-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 12px 40px rgba(0,0,0,0.10);
}

.chrome-bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #ffbd2e; }
.chrome-dot:nth-child(3) { background: #28c840; }

.app-body {
  padding: var(--s6) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.win-icon {
  width: 46px;
  height: 46px;
  background: rgba(10, 132, 255, 0.09);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s3);
}

.win-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Skeleton bars — light shimmer */
.sk {
  border-radius: var(--r-sm);
  height: 13px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skShimmer 2.2s ease-in-out infinite;
}

.sk-h  { height: 18px; }
.sk-xl { width: 65%; }
.sk-lg { width: 90%; }
.sk-md { width: 75%; }
.sk-sm { width: 50%; }

@keyframes skShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  margin: 0 var(--s6);
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.grid-section {
  padding: var(--s20) 0 var(--s32);
  /* Slightly off-white tinted panel, like the screenshot */
  background: var(--surface-2);
}

.section-header {
  text-align: center;
  margin-bottom: var(--s14);
}

.section-header .eyebrow {
  margin-bottom: var(--s4);
}

.section-header h2 {
  font-size: clamp(var(--t-3xl), 4.5vw, var(--t-6xl));
  margin-bottom: var(--s4);
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: var(--t-lg);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 4-column dense grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s10);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s cubic-bezier(0.16,1,0.3,1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 24px 64px rgba(0,0,0,0.13);
}

/* Circular coloured icon — colour set inline per card */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  /* Background/stroke colour overridden inline per card */
  background: #E3F2FD;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Stroke colour overridden inline per card */
  stroke: #1565C0;
}

.feature-card h3 {
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: var(--s2);
  line-height: 1.3;
}

.feature-card p {
  font-size: var(--t-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.grid-footer {
  text-align: center;
}

.link-arrow {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover {
  color: var(--text);
  gap: var(--s3);
}

/* ============================================================
   DOWNLOAD CTA BANNER
   ============================================================ */
.cta-banner {
  padding: var(--s24) 0;
  background: var(--text);
  text-align: center;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s14);
}

.cta-mink {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  filter: invert(1);
  opacity: 0.1;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(var(--t-3xl), 4.5vw, var(--t-5xl));
  margin-bottom: var(--s5);
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--t-lg);
  margin: 0 auto var(--s10);
  max-width: 380px;
  line-height: 1.7;
}

.btn-white {
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  padding: 0.78em 1.8em;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-white:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: var(--s24) 0 var(--s32);
  background: var(--bg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

/* Summary row */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--s6) 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: var(--s6);
  transition: color 0.2s;
}

/* Hide default disclosure triangle in all browsers */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker               { display: none; }

.faq-question:hover { color: var(--accent); }

/* +  /  − toggle indicator */
.faq-question::after {
  content: '+';
  font-size: var(--t-2xl);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
details[open] > .faq-question::after {
  content: '\2212'; /* − */
  color: var(--accent);
}
details[open] > .faq-question { color: var(--text); }

/* Answer body */
.faq-answer {
  padding-bottom: var(--s8);
  animation: faqOpen 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.faq-answer p {
  font-size: var(--t-base);
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-answer p + p { margin-top: var(--s4); }

.faq-answer strong { color: var(--text); font-weight: 700; }
.faq-answer em     { font-style: italic; }

.faq-answer code {
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-size: 0.875em;
  font-family: ui-monospace, "SF Mono", monospace;
  color: var(--text);
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: var(--s16) 0 var(--s12);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s6);
  margin-bottom: var(--s8);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-links { display: flex; gap: var(--s6); }

.footer-links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: var(--t-xs);
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
   PAGE HEADER — shared across features.html, pricing.html etc.
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-h) + var(--s20));
  padding-bottom: var(--s14);
  text-align: center;
  background: var(--bg);
}

/* ============================================================
   AOS timing
   ============================================================ */
[data-aos] {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: var(--s10); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  .hero { padding-top: calc(var(--nav-h) + var(--s16)); }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s4) var(--s6) var(--s6);
    gap: var(--s5);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: var(--t-base); padding: var(--s2) 0; }
  .nav-menu-btn { display: flex; }

  .hero-title { letter-spacing: -0.015em; }
  .hero-cta   { gap: var(--s3); }
  .feature-section { padding: var(--s20) 0; }
  .feature-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner    { flex-direction: column; align-items: flex-start; }
  .cta-mink        { display: none; }
}
