/* samart.app front page. Builds on styles.css (tokens, fonts, header, buttons, footer). */

.landing main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.landing h1, .landing h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0;
}
.landing h2 { letter-spacing: 0.12em; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.landing .note { color: var(--muted); font-size: 0.88rem; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.button.big { min-height: 56px; padding: 14px 32px; font-size: 0.78rem; }

/* ---- hero: the copy beside a Frame hanging on a gallery wall --------------------------------- */
.l-hero {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center;
  gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
}
@media (max-width: 900px) {
  .l-hero { grid-template-columns: 1fr; text-align: center; }
  .l-hero .lede { margin-left: auto; margin-right: auto; }
  .l-ctas { justify-content: center; }
}
.l-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: 0.05em; margin: 14px 0 18px; }
.l-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.l-platforms { margin-top: 16px; }

.l-wall {
  margin: 0; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(18px, 3vw, 28px);
  background: var(--tile) center / 72px 36px, var(--surface-2);
}
/* The Frame: a slim satin bezel around a 16:9 screen, with the soft shadow of a TV hung flush. */
.l-frame {
  padding: clamp(6px, 0.9vw, 11px); background: linear-gradient(145deg, #2a2a2a, #0e0e0e);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 18px 36px -14px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.25);
}
.l-canvas { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.l-canvas img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 1.4s ease;
}
.l-canvas img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .l-canvas img { transition: none; } }
.l-wall figcaption {
  margin-top: 16px; text-align: center; color: var(--muted);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; min-height: 1.2em;
}

/* ---- stats: a price-card row ------------------------------------------------------------------ */
.l-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.l-stats div { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); }
.l-stats div:last-child { border-right: 0; }
.l-stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.04em; }
.l-stats span { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 640px) {
  .l-stats { grid-template-columns: repeat(2, 1fr); }
  .l-stats div:nth-child(2) { border-right: 0; }
  .l-stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---- features: four aisle signs ------------------------------------------------------------- */
.l-features {
  scroll-margin-top: 150px;  /* clear the sticky header when jumped to from the nav */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1000px) { .l-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .l-features { grid-template-columns: 1fr; } }
.l-feature {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px) clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
}
.l-feature:first-of-type { padding-left: 0; }
.l-feature:last-of-type { border-right: 0; padding-right: 0; }
@media (max-width: 1000px) {
  .l-feature, .l-feature:first-of-type, .l-feature:last-of-type { padding-left: 0; padding-right: clamp(16px, 2vw, 28px); }
  .l-feature:nth-of-type(2n) { border-right: 0; padding-left: clamp(16px, 2vw, 28px); padding-right: 0; }
  .l-feature:nth-of-type(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .l-feature, .l-feature:nth-of-type(2n) { border-right: 0; padding-left: 0; padding-right: 0; }
  .l-feature:not(:last-of-type) { border-bottom: 1px solid var(--line); }
}
.l-num { margin: 0; font-family: var(--display); color: var(--silver); font-size: 1.1rem; letter-spacing: 0.1em; }
.l-feature h3 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 1.15rem;
}
.l-feature p:not(.l-num) { margin: 0; color: var(--muted); flex: 1; }
.l-feature h3 .l-free { color: var(--ink); }
.l-feature .link-button { align-self: flex-start; margin-top: 6px; }

/* ---- shelves of art --------------------------------------------------------------------------- */
.l-shelf, .l-community { padding: clamp(36px, 5vw, 64px) 0 0; }
.l-section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px;
}
.l-shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .l-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l-tile { display: block; margin: 0; border-bottom: 1px solid var(--silver); }
.l-tile-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.l-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.l-tile:hover .l-tile-img img { transform: scale(1.03); }
.l-tile .l-tile-title { margin: 10px 0 12px; font-size: 0.95rem; line-height: 1.3; }
.l-tile .l-tile-sub {
  display: block; margin-top: 2px; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---- steps, price, FAQ ------------------------------------------------------------------------ */
.l-steps { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.l-steps h2 { text-align: center; margin-bottom: 28px; }
.l-steps ol {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px);
}
@media (max-width: 760px) { .l-steps ol { grid-template-columns: 1fr; } }
.l-steps li { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--ink); color: var(--muted); }
.l-steps li::before {
  content: counter(step); display: block; font-family: var(--display); color: var(--ink);
  font-size: 2rem; line-height: 1; margin-bottom: 10px;
}
.l-steps li strong { color: var(--ink); font-weight: 500; }

.l-free {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px 1px;
  border: 1px solid var(--ink); font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.16em;
}

/* ---- plans: a plain card and a black one, like two price tickets ------------------------------ */
.l-plans { padding: clamp(44px, 6vw, 80px) 0; scroll-margin-top: 150px; }
.l-plans-head { text-align: center; margin-bottom: 28px; }
.l-plans-head h2 { margin-top: 8px; }
.l-plan-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(14px, 2.4vw, 28px);
  max-width: 980px; margin: 0 auto; align-items: start;
}
@media (max-width: 760px) { .l-plan-grid { grid-template-columns: 1fr; } }
.l-plan { border: 1px solid var(--ink); padding: clamp(22px, 3vw, 36px); display: grid; gap: 6px; }
.l-plan-paid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.l-plan-name { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.l-plan-price { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.l-plan-price span { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.l-plan-sum { margin: 0 0 8px; opacity: 0.8; }
.l-plan ul { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 0; }
.l-plan li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.l-plan-paid li { border-top-color: rgb(127 127 127 / 0.35); }
.l-plan li::before { content: "✓"; position: absolute; left: 0; top: 9px; font-size: 0.85rem; opacity: 0.8; }
.l-plan .button { margin-top: 14px; justify-self: start; }
.l-plan-paid .button { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.l-plan-paid .button:hover { opacity: 0.88; background: var(--accent-ink); }
.l-plans-note { text-align: center; margin: 18px auto 0; max-width: 620px; }

.l-buy { max-width: 980px; margin: clamp(32px, 4vw, 48px) auto 0; }
.l-buy h3 {
  margin: 0 0 18px; text-align: center; font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.05rem;
}
.l-buy ol {
  list-style: none; margin: 0; padding: 0; counter-reset: buy;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px);
}
@media (max-width: 900px) { .l-buy ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .l-buy ol { grid-template-columns: 1fr; } }
.l-buy li { counter-increment: buy; padding-top: 14px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 0.95rem; }
.l-buy li::before {
  content: counter(buy); display: block; font-family: var(--display); color: var(--ink);
  font-size: 1.6rem; line-height: 1; margin-bottom: 8px;
}
.l-buy li strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

.l-faq { max-width: 820px; margin: 0 auto; padding-bottom: clamp(40px, 6vw, 80px); }
.l-faq h2 { text-align: center; margin-bottom: 20px; }
.l-faq details { border-top: 1px solid var(--line); }
.l-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.l-faq summary {
  cursor: pointer; padding: 18px 28px 18px 0; position: relative; list-style: none; font-size: 1.02rem;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.3rem; color: var(--muted); }
.l-faq details[open] summary::after { content: "–"; }
.l-faq details p { margin: 0 0 20px; color: var(--muted); max-width: 680px; }

.l-foot { display: grid; gap: 8px; }
.l-foot a { color: inherit; }
.l-legal { text-transform: none; letter-spacing: 0; font-size: 0.78rem; max-width: 640px; margin: 4px auto 0 !important; }

@media (max-width: 640px) {
  .landing .top-links { justify-content: center; }
  .landing .top { position: static; }  /* a tall centered header shouldn't eat a phone screen */
}

/* Three nav links no longer fit beside the centered brand on tablets: put them under it. */
@media (max-width: 900px) {
  .landing .top-links { position: static; margin-top: 8px; justify-content: center; }
}

/* ---- a closer look: real app screens in a plain window frame ---------------------------------- */
.l-look { padding: clamp(40px, 5vw, 72px) 0 0; scroll-margin-top: 150px; }
.l-look-head { margin-bottom: clamp(20px, 3vw, 36px); }
.l-look-row {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: clamp(20px, 3vw, 36px) 0; border-top: 1px solid var(--line);
}
.l-look-flip .l-look-copy { order: 2; }
@media (max-width: 900px) {
  .l-look-row { grid-template-columns: 1fr; }
  .l-look-flip .l-look-copy { order: 0; }
}
.l-look-copy h3 {
  margin: 8px 0 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.2;
}
.l-look-copy p:not(.eyebrow) { margin: 0; color: var(--muted); }
.l-unlock {
  display: inline-block; margin-left: 6px; padding: 1px 7px; background: var(--accent); color: var(--accent-ink);
  font-size: 0.6rem; letter-spacing: 0.16em; vertical-align: 1px;
}
.l-window {
  margin: 0; background: #fff; border: 1px solid var(--ink);
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.45);
}
.l-window img { display: block; width: 100%; height: auto; }
.l-window figcaption {
  padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.l-look-free { padding: clamp(24px, 3vw, 40px) 0 0; border-top: 1px solid var(--line); }
.l-look-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: 14px; }
@media (max-width: 640px) { .l-look-pair { grid-template-columns: 1fr; } }
