/* Closeta — shared site styles */

:root {
  --coral: #ff5a5a;
  --coral-deep: #e84545;
  --coral-soft: #ffe5e1;
  --ink: #15110f;
  --ink-2: #3a332e;
  --muted: #7a6f67;
  --line: #ece4dc;
  --paper: #fff8f6;
  --paper-2: #fff1ec;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1160px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.text-balance {
  text-wrap: balance;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: rgba(255, 90, 90, 0.22);
  color: #571818;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.site-nav a:hover {
  color: var(--coral-deep);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--coral-deep);
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  padding: 16px 28px;
  font-size: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 18px 40px rgba(232, 69, 69, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--coral-deep);
  box-shadow: 0 22px 48px rgba(232, 69, 69, 0.34);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.btn-block {
  width: 100%;
}

.apple-glyph {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 90, 90, 0.14), rgba(255, 248, 246, 0) 60%), var(--paper);
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--coral-deep);
}

.hero-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 46ch;
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.hero-proof strong {
  color: var(--ink);
  font-weight: 800;
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: min(78vw, 320px);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(87, 24, 24, 0.22);
  border: 1px solid rgba(87, 24, 24, 0.08);
}

.phone-frame img {
  width: 100%;
}

.proof-card {
  position: absolute;
  width: 150px;
  border: 1px solid rgba(255, 90, 90, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  color: #571818;
  box-shadow: 0 20px 48px rgba(87, 24, 24, 0.14);
  backdrop-filter: blur(12px);
}
.proof-card strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.proof-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(87, 24, 24, 0.62);
}
.left-card {
  left: -8px;
  top: 40px;
}
.right-card {
  right: -8px;
  bottom: 60px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- Section shell ---------- */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow {
  margin: 0 auto 16px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.alt-bg {
  background: var(--paper-2);
}

/* ---------- Download section ---------- */
.download-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 90, 90, 0.35), transparent 70%);
}
.download-card > * {
  position: relative;
}
.download-card h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
}
.download-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}
.download-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.download-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Screenshots ---------- */
.shot-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}
.shot-scroll::-webkit-scrollbar {
  height: 8px;
}
.shot-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.shot-card {
  flex: 0 0 auto;
  width: min(72vw, 240px);
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(87, 24, 24, 0.14);
  border: 1px solid var(--line);
  background: #fff;
}
.shot-card img {
  width: 100%;
}
.shot-caption {
  padding: 14px 16px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- Feature / step grid ---------- */
.feature-grid,
.step-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 26px;
}
.feature-card .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature-card h3 {
  margin-top: 18px;
  font-size: 19px;
}
.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.step-card {
  border-radius: 22px;
  background: #fff;
  padding: 24px;
  border: 1px solid var(--line);
}
.step-card .num {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.step-card strong {
  display: block;
  margin-top: 16px;
  font-size: 17px;
}
.step-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Guides ---------- */
.guide-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(87, 24, 24, 0.1);
  border-color: var(--coral);
}
.guide-card .tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--coral-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.guide-card h3 {
  margin-top: 10px;
  font-size: 18px;
}
.guide-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.guide-card .read-more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}
.faq-q .plus {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 200ms ease;
}
.faq-item[open] .faq-q .plus {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.faq-a .learn-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--coral-deep);
}
.faq-a .learn-more:hover {
  text-decoration: underline;
}

summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(28px, 5vw, 44px);
}
.final-cta p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .hero-ctas {
  justify-content: center;
  margin-top: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer-brand .brand {
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.footer-col a:hover {
  color: var(--coral-deep);
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Guide article page ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}
.breadcrumb a:hover {
  color: var(--coral-deep);
}
.article-hero {
  padding: 32px 0 8px;
}
.article-hero .eyebrow {
  margin-bottom: 14px;
}
.article-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
}
.article-hero .lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 64ch;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 0;
  font-size: 17px;
  color: var(--ink-2);
}
.article-body h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--ink);
}
.article-body h3 {
  font-size: 19px;
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--ink);
}
.article-body p {
  margin-bottom: 16px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body .callout {
  background: var(--coral-soft);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 28px 0;
  color: #571818;
}
.article-body .callout strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 17px;
}
.article-cta {
  margin: 40px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.article-cta img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.article-cta .txt strong {
  display: block;
  font-size: 17px;
}
.article-cta .txt span {
  color: var(--muted);
  font-size: 14px;
}
.related-guides {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.related-guides h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-size: 16px;
  color: var(--ink-2);
}
.legal-body h1 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--ink);
}
.legal-body .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.legal-body h2 {
  font-size: 21px;
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal-body p, .legal-body li {
  margin-bottom: 12px;
}
.legal-body ul {
  padding-left: 20px;
}
.legal-body a {
  color: var(--coral-deep);
  font-weight: 700;
}
.legal-body a:hover {
  text-decoration: underline;
}

/* ---------- Support page ---------- */
.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}
.support-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 26px;
}
.support-card h3 {
  font-size: 18px;
}
.support-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.support-card a.btn {
  margin-top: 16px;
  padding: 12px 20px;
  font-size: 14px;
}
