/* SimpleStorage website. Colors match src/constants/theme.ts. */

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --orange: #ff6b00;
  --orange-text: #c24e00; /* orange that is dark enough to read as text */
  --orange-deep: #a44200;
  --orange-tint: #fff1e6;
  --page: #ffffff;
  --surface: #f5f5f7;
  --border: #e9e9ee;
  --text: #111111;
  --text-body: #26262c;
  --text-2: #5c5c66;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.04), 0 6px 18px rgba(17, 17, 17, 0.06);
  --shadow-raised: 0 12px 32px rgba(17, 17, 17, 0.14);
  --display: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

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

a {
  color: var(--orange-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  background: var(--page);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip:focus {
  left: 16px;
}

/* ---------- header & footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand img {
  width: auto;
  height: 22px;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--surface);
}

.nav .nav-optional {
  display: none;
}

@media (min-width: 640px) {
  .nav .nav-optional {
    display: inline-block;
  }
}

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-inner img {
  width: auto;
  height: 20px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-inner nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-inner nav a:hover {
  text-decoration: underline;
}

.fine {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

@media (min-width: 820px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- shared pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-deep);
  font-size: 15px;
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #333333;
  color: #ffffff;
}

.button svg {
  width: 20px;
  height: 20px;
}

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--orange-tint);
  color: var(--orange-text);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--orange-tint);
  color: var(--text-body);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 10px;
}

/* ---------- home ---------- */

.hero {
  padding: 48px 0 56px;
}

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

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 9vw, 62px);
}

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

.lede {
  max-width: 34ch;
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--text-2);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.platform small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.75;
}

.hero .note {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--text-2);
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

/* The picture of a container and its label, drawn with HTML so it stays sharp. */
.mock {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 0 72px;
}

.mock-frame {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.container-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.container-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swatch {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
}

.container-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.container-meta {
  font-size: 14px;
  color: var(--text-2);
}

.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.item {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.item:nth-child(1) { background: #ffe2cc; }
.item:nth-child(2) { background: #dbe8fd; }
.item:nth-child(3) { background: #d7f2e3; }
.item:nth-child(4) { background: #ece2fe; }
.item:nth-child(5) { background: #fde7c2; }
.item:nth-child(6) { background: #fbdcea; }

.label-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  max-width: 180px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-raised);
  text-align: center;
  transform: rotate(3deg);
}

.label-card svg {
  width: 100%;
  height: auto;
}

.label-code {
  margin-top: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.label-name {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-2);
}

.section {
  padding: 64px 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5.5vw, 42px);
}

.section-head p {
  margin: 0;
  font-size: 19px;
  color: var(--text-2);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.step h3,
.feature h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.step p,
.feature p {
  margin: 0;
  color: var(--text-2);
}

.features {
  display: grid;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plans {
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.plan {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.plan.pro {
  border: 2px solid var(--orange);
}

.plan-tag {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.plan h3 {
  font-size: 22px;
}

.price {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.price span {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-2);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
}

.checks li::before {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--orange-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c24e00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.plans-note {
  max-width: 820px;
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--text-2);
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.help-band {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--orange-tint);
}

.help-band h2 {
  font-size: clamp(26px, 5vw, 34px);
}

.help-band p {
  margin: 6px 0 0;
  color: var(--text-body);
}

@media (min-width: 760px) {
  .help-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- inner pages ---------- */

.page-head {
  padding: 48px 0 8px;
}

.page-head h1 {
  font-size: clamp(36px, 7vw, 50px);
}

.page-head p {
  max-width: 60ch;
  margin: 12px 0 0;
  font-size: 19px;
  color: var(--text-2);
}

.prose {
  max-width: 740px;
  padding-bottom: 72px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 26px;
  scroll-margin-top: 84px;
}

.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--body);
  font-size: 20px;
  letter-spacing: 0;
}

.prose p,
.prose li {
  color: var(--text-body);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  color: var(--ink);
}

.prose .caps {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.updated {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

.toc {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.toc strong {
  font-size: 16px;
}

.toc ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
  columns: 2 260px;
  column-gap: 32px;
}

.toc li {
  margin: 4px 0;
  font-size: 16px;
  break-inside: avoid;
}

.toc a {
  color: var(--ink);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 8px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.contact-card .email {
  font-family: var(--display);
  font-size: clamp(17px, 4.6vw, 28px);
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-card p {
  margin: 4px 0 0;
  color: var(--text-2);
}

.faq {
  margin-top: 20px;
}

.faq details {
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 26px;
  line-height: 1;
  color: var(--orange-text);
}

.faq details[open] summary::after {
  content: '−';
}

.faq .answer {
  padding-bottom: 18px;
  color: var(--text-body);
}

.faq .answer p {
  margin: 0;
}

.faq .answer p + p,
.faq .answer ol {
  margin-top: 10px;
}

.steps-list {
  counter-reset: item;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 48px;
  counter-increment: item;
}

.steps-list li::before {
  content: counter(item);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(36px, 7vw, 50px);
}

.not-found p {
  margin: 12px 0 28px;
  color: var(--text-2);
}
