/* plainly-apps.com — one stylesheet for every page.
   Palette: white paper, warm black ink, the brand terracotta (tile, display) and
   a darker "kiln" terracotta wherever terracotta has to carry small text (AA). */

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #231f1c;
  --ink-2: #5c534c;
  --line: #e6dfd8;
  --terracotta: #d2603a;
  --kiln: #b84e2b;
  --kiln-deep: #9e4322;
  --store-ink: #121212;
  --store-image: #efe7df;
  --measure: 62ch;
  --radius: 10px;
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "kern";
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol,
dl {
  margin: 0;
}

p + p,
.prose ul,
.prose ol,
.prose p + h2,
.prose ul + h2 {
  margin-top: 1em;
}

a {
  color: var(--kiln);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--kiln-deep);
}

:focus-visible {
  outline: 3px solid var(--kiln);
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 12px;
  background: var(--paper);
  border: 2px solid var(--kiln);
  border-radius: 6px;
}

.skip:focus {
  top: 16px;
  z-index: 10;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--kiln);
  text-decoration: none;
}

.wordmark svg {
  display: block;
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--terracotta);
  text-underline-offset: 0.3em;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  font-size: 16px;
  color: var(--ink-2);
}

.site-footer .wrap {
  display: grid;
  gap: 20px 40px;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.site-footer .wordmark svg {
  height: 26px;
}

.site-footer .tagline {
  margin-top: 10px;
  max-width: 34ch;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer nav a {
  color: var(--ink);
}

.site-footer .legal {
  grid-column: 1 / -1;
  font-size: 14px;
  max-width: 72ch;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--kiln);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  background: var(--kiln-deep);
  color: #fff;
}

/* Landing page */

.hero {
  padding-block: clamp(40px, 7vw, 72px) 24px;
}

.hero h1 {
  max-width: 17ch;
}

.hero .lede {
  margin-top: 20px;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  max-width: 54ch;
}

.hero .availability {
  margin-top: 18px;
  color: var(--ink-2);
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

.storefront {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif; /* a typical theme, not our brand */
  color: var(--store-ink);
}

.storefront-bar {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-family: "Public Sans", system-ui, sans-serif;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  align-items: start;
}

.product-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--store-image);
}

.product h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: pretty;
}

.product .price {
  margin-top: 8px;
  font-size: 1.05rem;
}

.product .plainly-ships-in {
  margin-top: 18px;
  font-size: 15px;
}

.mock-cta {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid var(--store-ink);
  background: var(--store-ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.mock-cta + p {
  margin-top: 12px;
  font-size: 13px;
  color: #555;
}

/* The badge, exactly as the theme block styles it */

.plainly-ships-in {
  display: flex;
  align-items: center;
  gap: 0.4em;
  line-height: 1.35;
  color: inherit;
}

.plainly-ships-in[hidden] {
  display: none;
}

.plainly-ships-in__icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.plainly-ships-in__text {
  margin: 0;
}

/* The control panel: the brand tile, at hero size */

.panel {
  background: var(--kiln);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}

.panel h2 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.panel .panel-lede {
  margin-top: 6px;
  font-size: 15px;
  opacity: 0.95;
}

.panel fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
  min-width: 0;
}

.panel legend,
.panel .label {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}

.time-row {
  display: grid;
  grid-template-columns: 4.5rem auto 4.5rem minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.time-row .to {
  text-align: center;
  font-size: 15px;
}

.panel input[type="number"],
.panel select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.panel select {
  padding-right: 28px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23231f1c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.panel :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.choices {
  display: grid;
  gap: 8px;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}

.choices input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #fff;
}

.days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.days button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.days button[aria-pressed="true"] {
  background: #fff;
  color: var(--kiln);
}

.panel .note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 15px;
  min-height: 3.2em;
}

.panel .note small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
}

/* Sections */

.section {
  padding-top: clamp(56px, 8vw, 88px);
}

.section > h2 + p {
  margin-top: 14px;
  max-width: var(--measure);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--terracotta);
  padding-top: 14px;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 700;
  color: var(--kiln);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  font-size: 17px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
  margin-top: 28px;
  max-width: 860px;
}

.facts div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan {
  padding: 28px 28px 32px 0;
}

.plan + .plan {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.plan h3 {
  font-size: 1.35rem;
}

.plan .price {
  margin-top: 6px;
  font-size: 1.05rem;
}

.plan .price strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan ul {
  margin-top: 18px;
  padding-left: 1.1em;
  font-size: 17px;
}

.plan li + li {
  margin-top: 6px;
}

.plan .trial {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.plans + p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: var(--measure);
}

.about {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  max-width: 860px;
}

.about .tile {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--terracotta);
}

.about .tile img {
  display: block;
  width: 100%;
  height: 100%;
}

.about p + p {
  margin-top: 0.8em;
}

/* Text pages */

.page {
  padding-block: clamp(40px, 6vw, 64px) 0;
}

.page header p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 17px;
}

.prose {
  max-width: var(--measure);
  margin-top: 36px;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
  margin-bottom: 0.5em;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

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

.prose li + li {
  margin-top: 0.4em;
}

.prose dl dt {
  font-weight: 600;
  margin-top: 1em;
}

.prose dl dd {
  margin: 0.2em 0 0;
}

.contents {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: var(--measure);
  font-size: 16px;
}

.contents ol {
  margin: 8px 0 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 32px;
}

.contents li {
  break-inside: avoid;
}

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

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 1.2em;
  text-align: center;
  color: var(--kiln);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > *:not(summary) {
  margin-top: 10px;
}

.faq details p + p {
  margin-top: 0.6em;
}

.not-found {
  padding-block: 80px;
  max-width: var(--measure);
}

/* Narrow screens */

@media (max-width: 880px) {
  .demo {
    grid-template-columns: 1fr;
  }

  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 24px 0;
  }

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .site-header .wrap {
    min-height: 64px;
  }

  .wordmark svg {
    height: 28px;
  }

  .site-nav a {
    font-size: 16px;
  }

  .product {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .product h3 {
    font-size: 1.1rem;
  }

  .days {
    gap: 4px;
  }

  .days button {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .time-row {
    grid-template-columns: 1fr auto 1fr;
  }

  .time-row select {
    grid-column: 1 / -1;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contents ol {
    columns: 1;
  }
}
