/* ===================================================================
   Mockups Generator - shared site styles (auxiliary pages)
   Matches the homepage cream/pastel theme.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,700;0,900;1,500;1,700;1,900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Caveat:wght@500;700&display=swap');

:root {
  /* Brand v1.0 palette - aligned to brand-tokens.css */
  --cream: #FFF4ED;          /* peach mist */
  --cream-soft: #FFE8E0;     /* blush */
  --ink: #1F1A3D;            /* midnight plum */
  --ink-soft: #5C4A78;       /* heather */
  --rose: #E94B8C;           /* bloom */
  --rose-deep: #C44A8A;      /* magenta */
  --blush: #F5E0F0;          /* orchid */
  --mint: #7FCDA5;           /* sage */
  --mint-bg: #DDF0E5;        /* mint pastel */
  --peach: #F8A576;          /* warm accent */
  --peach-bg: #FFE5D7;       /* peach pastel */
  --lavender: #A56BD9;       /* iris */
  --lavender-bg: #E5DEF5;    /* lilac */
  --cyan: #5BB4E5;           /* sky */
  --cyan-soft: #D6ECF7;      /* pale sky */
  --line: rgba(31, 26, 61, 0.1);
  --shadow-sm: 0 1px 3px rgba(31, 26, 61, 0.08);
  --shadow: 0 6px 24px rgba(31, 26, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 26, 61, 0.12);
  --danger: #DC2626;
  --warn: #D97706;

  /* Brand-only tokens */
  --bloom: #E94B8C;
  --iris: #A56BD9;
  --sky: #5BB4E5;
  --magenta: #C44A8A;
  --gradient-hero: linear-gradient(135deg, #FFF4ED 0%, #FFE8E0 25%, #F5E0F0 50%, #E5DEF5 75%, #DDF0E5 100%);
  --gradient-accent: linear-gradient(90deg, #E94B8C 0%, #A56BD9 50%, #5BB4E5 100%);
  --gradient-cta: linear-gradient(90deg, #E94B8C 0%, #A56BD9 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: 26px; }
h3 { font-size: 19px; }

p { margin: 0 0 12px; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 24px; }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media (max-width: 1024px) {
  .nav-inner { padding-left: 32px; padding-right: 32px; }
}
.nav-logo {
  display: flex; align-items: center;
  color: var(--ink); font-weight: 700; font-size: 17px;
}
.nav-logo img { height: 72px; width: auto; display: block; }
@media (max-width: 1024px) {
  .nav-logo img { height: 40px; }
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(31, 26, 61, 0.3);
}
.btn-primary:hover { background: #1c1029; box-shadow: 0 6px 20px rgba(31, 26, 61, 0.4); }
.btn-rose {
  background: linear-gradient(120deg, var(--rose), var(--lavender));
  color: white;
  box-shadow: 0 6px 18px rgba(233, 75, 140, 0.4);
}
.btn-rose:hover { box-shadow: 0 10px 28px rgba(233, 75, 140, 0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: white; }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: white; }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.4);
}
.btn-danger:hover { background: rgba(220, 38, 38, 0.05); }

/* ----- main content area ----- */
main.container, main.container-sm { padding-top: 48px; padding-bottom: 80px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ----- cards (form / dashboard) ----- */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }

.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--rose);
  background: white;
}
.form-row input::placeholder { color: var(--ink-soft); opacity: 0.6; }

.form-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}
.form-message.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--danger);
}
.form-message.success {
  background: var(--mint-bg);
  border: 1px solid var(--mint);
  color: #047857;
}

/* ----- code chips ----- */
.code {
  font-family: 'SF Mono', Menlo, monospace;
  background: var(--lavender-bg);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  word-break: break-all;
}

/* ----- tables (account portal devices) ----- */
.devices-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.devices-table th, .devices-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.devices-table th {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----- footer (matches homepage) ----- */
footer.site-footer-new {
  background: var(--ink); color: var(--cream);
  padding: 50px 0 32px;
  margin-top: 60px;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,246,238,0.1);
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: rgba(255,246,238,0.6); font-size: 14px; margin-top: 14px; }
.footer-wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  background: linear-gradient(110deg, var(--rose) 10%, var(--lavender) 60%, var(--cyan) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--rose); margin-bottom: 12px;
}
.footer-col a {
  display: block; padding: 4px 0;
  color: rgba(255,246,238,0.7); font-size: 14px;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 24px; font-size: 13px;
  color: rgba(255,246,238,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ----- helpers used by pages ----- */
.lead { font-size: 18px; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: var(--blush); color: var(--rose-deep);
  margin-bottom: 16px;
}
.tier-badge {
  display: inline-block;
  background: linear-gradient(120deg, var(--rose), var(--lavender));
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}
hr.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ----- legal pages (privacy, terms) typography ----- */
main h2 { margin-top: 32px; }
main ul { padding-left: 22px; }
main li { margin-bottom: 6px; }

/* ----- tutorials listing grid ----- */
.tutorial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 40px;
}
.tutorial-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.tutorial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.tutorial-card .cover {
  aspect-ratio: 16 / 9;
  background: var(--cream-soft) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.tutorial-card .body { padding: 18px 20px 22px; }
.tutorial-card h3 { margin: 6px 0 8px; font-size: 20px; line-height: 1.25; }
.tutorial-card p { margin: 0; }
.tutorial-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

/* ----- tutorial detail: rendered markdown body ----- */
.markdown-body { line-height: 1.7; font-size: 16px; }
.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid var(--line);
}
.markdown-body pre {
  background: var(--cream-soft);
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.markdown-body code {
  background: var(--cream-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: 'SF Mono', Menlo, monospace;
}
.markdown-body pre code { background: transparent; padding: 0; font-size: inherit; }
.markdown-body blockquote {
  border-left: 3px solid var(--rose);
  padding: 4px 16px;
  color: var(--ink-soft);
  margin: 16px 0;
  background: rgba(245, 224, 240, 0.3);
  border-radius: 0 8px 8px 0;
}
.markdown-body h2 { margin-top: 36px; }
.markdown-body h3 { margin-top: 24px; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; }
.markdown-body li { margin-bottom: 6px; }
.markdown-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ----- tutorial detail: video embed ----- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-soft);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
