/* The public website (worker/site.js). Phone first: the base rules are for
   a phone, and wider screens add to them. The app keeps its own style.css. */
:root {
  --paper: #faf8f5;
  --panel: #f0ece6;
  --line: #e4ded5;
  --ink: #25292b;
  --ink-soft: #4b5155;
  --orange: #ff6128;
  --orange-dark: #e2501c;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --wrap: 1200px;
  --gutter: 16px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 var(--sans);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.center {
  text-align: center;
}
.quiet {
  color: var(--ink-soft);
  font-size: 16px;
}
.lead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 34em;
}

/* Buttons: orange with big bold white text (large text keeps it readable). */
.button {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  min-height: 52px;
  transition: background 0.15s;
}
.button:hover {
  background: var(--orange-dark);
}
.button.small {
  font-size: 19px;
  padding: 8px 20px;
  min-height: 44px;
}
/* On a phone the header keeps only the logo and the language: the big
   "Crear cuenta" button is right below, in the first screen. */
.header-actions .button {
  display: none;
}
.button.big {
  font-size: 21px;
  padding: 18px 40px;
}
.more {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  padding: 10px 0;
}

/* Big two-line headline: bold sans, then an italic serif line. */
.headline {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.headline span,
.headline em {
  display: block;
}
.headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

/* ------------------------------------------------------------ header */
.site-header {
  padding: 14px 0;
}
.header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
/* The logo: mark and word in the same proportions as Brayan's design. */
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.logo .mark {
  height: 40px;
  width: auto;
}
.logo .word {
  height: 23px;
  width: auto;
}
.logo.small .mark {
  height: 32px;
}
.logo.small .word {
  height: 18.5px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions .lang,
.header-actions .signin,
.main-nav a {
  text-decoration: none;
  font-size: 17px;
  padding: 10px 2px;
}
.header-actions .signin {
  display: none;
}
/* On a phone the page links sit on their own row under the logo. */
.main-nav {
  order: 3;
  width: 100%;
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.main-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--orange);
  font-weight: 700;
}
.main-nav a:hover,
.header-actions a:not(.button):hover {
  color: var(--orange-dark);
}

/* -------------------------------------------------------------- hero */
.hero {
  padding: 8px 0 48px;
  overflow: hidden;
}
/* The stage: the giant word, the phone in the middle and the job-site
   objects around it, all placed in % of the stage so it scales as one
   picture from a phone to a big screen. */
.hero-stage {
  position: relative;
  aspect-ratio: 1175 / 440;
  margin: 8px 0 12px;
}
.wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  margin: 0;
  font-weight: 900;
  font-size: 21.5vw;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: var(--ink);
  user-select: none;
  white-space: nowrap;
}
.hero-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16.5%;
  transform: translate(-50%, -50%) rotate(-7deg);
  z-index: 2;
}
.obj {
  position: absolute;
  z-index: 1;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(37, 41, 43, 0.18));
}
.obj-pencil {
  left: 13%;
  top: 40%;
  width: 24%;
}
.obj-tape {
  left: 28%;
  top: 52%;
  width: 14%;
}
.obj-chip {
  left: 62%;
  top: 12%;
  width: 10%;
}
.obj-shavings {
  left: 76%;
  top: 46%;
  width: 7%;
}
.obj-note {
  left: 55%;
  top: 50%;
  width: 18%;
  z-index: 3;
}
.hero-bottom {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}
.hero-bottom .headline {
  font-size: clamp(40px, 9vw, 76px);
  margin: 0;
}
.hero-side p:first-child {
  margin-top: 0;
  font-size: 19px;
}
.hero-side .quiet {
  margin: 12px 0 0;
}

/* A phone: the frame image (screen see-through) over a real screenshot,
   placed where the photo's screen is (measured in % of the frame). */
.phone {
  position: relative;
  margin: 0;
  aspect-ratio: 560 / 1145;
  filter: drop-shadow(0 24px 28px rgba(37, 41, 43, 0.28))
    drop-shadow(0 6px 8px rgba(37, 41, 43, 0.18));
}
.phone .screen {
  position: absolute;
  left: 6.25%;
  top: 2.445%;
  width: 88.571%;
  height: 95.022%;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border-radius: 15% / 6.8%;
  /* Room for the status bar and camera pill, like a real phone. */
  padding-top: 12%;
  box-sizing: border-box;
}
.phone .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* -------------------------------------------------------- sections */
section {
  padding: 56px 0;
}
.two-col {
  display: grid;
  gap: 36px;
  align-items: center;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 19px;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--orange);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
}
.steps b {
  color: var(--ink);
  font-size: 21px;
}
.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 36px 20px;
  display: grid;
  place-items: center;
}
.panel .phone {
  width: min(70%, 280px);
}

.client .headline {
  margin-bottom: 36px;
}
.phone-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4%;
  margin: 0 auto 32px;
  max-width: 640px;
}
.phone-pair .phone {
  width: 42%;
}
.phone-pair .arrow {
  color: var(--orange);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
}
.tilt-left {
  transform: rotate(-5deg);
}
.tilt-right {
  transform: rotate(5deg);
}
.client .lead {
  margin: 0 auto;
}

.maker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.maker .headline {
  margin: 0;
}

.faq-grid {
  display: grid;
  gap: 24px;
}
.faq-grid h3 {
  margin: 0 0 6px;
  font-size: 21px;
}
.faq-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.closing {
  background: var(--panel);
}
.closing .headline {
  margin-bottom: 28px;
}

/* --------------------------------------------------- inner pages */
.page-top {
  padding-top: 32px;
}
.page-top .phone {
  width: min(62%, 300px);
  justify-self: center;
}
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.feature-grid li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.feature-grid h2,
.feature-grid h3 {
  font-size: 22px;
  margin: 12px 0 6px;
}
.feature-grid p {
  margin: 0;
  color: var(--ink-soft);
}
.icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.more-features {
  padding-top: 0;
}

.help-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 21px;
  font-weight: 700;
  min-height: 56px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: -4px 0 20px;
  color: var(--ink-soft);
  max-width: 38em;
}
.faq a,
.contact-card a {
  color: var(--orange-dark);
  font-weight: 700;
}
.contact-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 28px;
}
.contact-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.contact-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}
.contact-card a {
  font-size: 19px;
  word-break: break-word;
}

.legal .headline {
  font-size: clamp(34px, 6vw, 56px);
  margin-bottom: 4px;
}
.draft {
  display: inline-block;
  background: #fff2ea;
  color: #8a2f0c;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
}
.summary-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 24px 0 36px;
  max-width: 760px;
}
.summary-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.summary-card ul {
  margin: 0;
  padding-left: 22px;
}
.legal-layout {
  display: grid;
  gap: 24px;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
  color: var(--ink-soft);
}
.toc a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}
.toc a:hover {
  color: var(--orange-dark);
}
.legal-text {
  max-width: 40em;
}
.legal-text h2 {
  font-size: 22px;
  margin: 28px 0 8px;
  scroll-margin-top: 16px;
}
.legal-text h2:first-child {
  margin-top: 0;
}
.legal-text p {
  margin: 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
}
.footer-row {
  display: grid;
  gap: 16px;
}
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-row nav a,
.mail {
  text-decoration: none;
  padding: 6px 0;
}
.footer-row nav a:hover,
.mail:hover {
  color: var(--orange-dark);
}
.footer-note p {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Hidden on screen, read by screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.center-lead {
  margin: 0 auto 28px;
}

/* ------------------------------------------------- try it (/probar)
   web/demo.js: the editor, and the client's view in a frame
   (web/demo-preview.html). On a phone one side at a time (tabs). */
.demo-intro {
  padding: 24px 0 8px;
}
.demo-intro .lead {
  margin: 0;
}
.demo-section {
  padding: 24px 0 64px;
}
.demo-tabs {
  display: flex;
  gap: 6px;
  background: var(--panel);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 16px;
  position: sticky;
  top: 8px;
  z-index: 3;
}
.demo-tabs button {
  flex: 1;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  cursor: pointer;
}
.demo-tabs button[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 1px 4px rgba(37, 41, 43, 0.15);
}
.demo[data-view="edit"] .demo-preview,
.demo[data-view="preview"] .demo-editor {
  display: none;
}
.demo-editor {
  display: grid;
  gap: 18px;
}
.demo-editor fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  margin: 0;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.demo-editor legend {
  font-weight: 800;
  font-size: 20px;
  padding: 0 6px;
}
.demo-editor label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
}
.demo-editor input:not([type="radio"]):not([type="file"]),
.demo-editor select,
.demo-editor textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc8bd;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 48px;
  width: 100%;
}
.demo-editor textarea {
  resize: vertical;
}
.demo-editor input:focus,
.demo-editor select:focus,
.demo-editor textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 97, 40, 0.25);
}
.demo-tools {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
}
.demo-step {
  margin: 0 0 12px;
  font-weight: 700;
}
.demo-tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 48px;
  cursor: pointer;
}
.demo-tool.primary {
  background: var(--orange);
  color: #fff;
  font-size: 19px;
}
.demo-tool.primary:hover {
  background: var(--orange-dark);
}
.demo-tool .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-status:empty {
  display: none;
}
.demo-status {
  margin: 12px 0 0;
  color: #ffd9c9;
}
.demo-nudge {
  margin-top: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  border-left: 5px solid var(--orange);
  padding: 14px 16px;
}
.demo-nudge[hidden] {
  display: none;
}
.demo-nudge p {
  margin: 0 0 10px;
}
.demo-nudge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.demo-choice {
  display: flex;
  gap: 24px;
}
.demo-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  min-height: 44px;
}
.demo-choice input,
.swatch input {
  accent-color: var(--orange);
  width: 20px;
  height: 20px;
}
.demo-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.demo-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
}
.demo-remove {
  font-size: 22px;
  line-height: 1;
  color: #b3261e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.demo-original {
  margin: -4px 0 0;
  font-size: 15px;
  color: #6b7176;
}
.demo-original span {
  font-weight: 600;
}
/* On a phone: quantity and price side by side, "charged" under them. */
.demo-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-numbers label:nth-child(2) {
  grid-column: 1 / -1;
  order: 2;
}
@media (min-width: 520px) {
  .demo-numbers {
    grid-template-columns: 1fr 1.4fr 1.2fr;
  }
  .demo-numbers label:nth-child(2) {
    grid-column: auto;
    order: 0;
  }
}
.demo-numbers label {
  font-size: 15px;
}
.demo-amount {
  margin: 0;
  text-align: right;
  font-weight: 800;
}
.demo-add {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 1px dashed #cfc8bd;
  border-radius: 12px;
  min-height: 48px;
  cursor: pointer;
}
.demo-add:disabled {
  opacity: 0.5;
  cursor: default;
}
.demo-items-total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}
.demo-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.demo-colors > span {
  width: 100%;
}
.swatch {
  position: relative;
  display: block !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}
.swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.swatch:has(input:checked) {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--ink);
}
.swatch:has(input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
.demo-send {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.demo-send .button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.demo-preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.demo-preview-bar select {
  font: inherit;
  font-size: 16px;
  border: 1px solid #cfc8bd;
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 44px;
  background: #fff;
}
.demo-preview iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 16px;
  background: #f2f3f5;
}

/* ------------------------------------------- sign in / create account
   web/login.html: same header and footer as the website, the form on the
   left and a job-site photo on the right (wider screens only). */
/* Texts are written twice (<span lang="en"> and <span lang="es">): show
   the one matching <html lang> (web/page-lang.js). */
html[lang="en"] .auth-page [lang="es"],
html[lang="es"] .auth-page [lang="en"] {
  display: none !important;
}
/* The page's two modes: signing in, or creating an account (#create). */
body[data-mode="signin"] [data-mode="create"],
body[data-mode="create"] [data-mode="signin"] {
  display: none !important;
}
.auth-page .main-nav a[lang] {
  display: inline-block;
}
button.lang {
  font: inherit;
  font-size: 17px;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 10px 2px;
  min-height: 44px;
  cursor: pointer;
}
button.lang:hover {
  color: var(--orange-dark);
}
.button.outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 17px;
}
.button.outline:hover {
  background: #fff;
  border-color: var(--ink);
}
.auth {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 64px;
}
.auth .headline {
  font-size: clamp(34px, 6vw, 64px);
  margin-bottom: 28px;
}
.auth h1 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
/* The headline may run wider than the form. */
.auth-form > :not(.headline) {
  max-width: 460px;
}
.auth-form form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 17px;
}
.auth-form input {
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc8bd;
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 54px;
  width: 100%;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 97, 40, 0.25);
}
.auth-form .button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
}
.auth-form .button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-form .hint {
  margin: -8px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}
/* Short pages keep the footer at the bottom of the screen. */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-page main {
  flex: 1;
  width: 100%;
}
/* Elements a page's script hides (the grid layouts would show them). */
.auth-page [hidden] {
  display: none !important;
}
/* Forgot / reset password: just the form, centered under the header. */
.auth-single {
  justify-items: center;
  padding-top: 48px;
  padding-bottom: 96px;
}
.auth-single .auth-form {
  width: 100%;
  max-width: 460px;
}
/* "Check your email": an envelope above the title. */
.auth-icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #ffe7dd;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lead-small {
  font-size: 19px;
}
/* A long email breaks after the @ (verify.js), else anywhere. */
.lead-small strong {
  overflow-wrap: anywhere;
}
.auth-actions {
  display: grid;
  gap: 16px;
}
/* A button that looks like the page's links. */
.text-button {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}
.auth-form .status.info {
  color: var(--ink);
}
.auth-form .status:empty {
  display: none;
}
.auth-form .status {
  margin: 0;
  color: #b3261e;
  font-weight: 600;
}
.auth-form .note {
  background: var(--panel);
  border-left: 4px solid var(--orange);
  padding: 12px 16px;
  border-radius: 8px;
}
.auth-form a {
  font-weight: 600;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}
.auth-form .switch {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
/* The photo only shows on wider screens (a phone goes straight to the form). */
.auth-photo {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(37, 41, 43, 0.18);
}
.auth-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 16px;
  color: var(--ink-soft);
}
.auth-footer p {
  margin: 0;
}
.auth-footer nav {
  display: flex;
  gap: 20px;
}
.auth-footer a {
  text-decoration: none;
  padding: 6px 0;
}

/* ------------------------------------------------- wider screens */
@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
  .header-row {
    flex-wrap: nowrap;
  }
  .main-nav {
    order: 0;
    width: auto;
    border: 0;
    padding: 0;
    margin: 0 auto;
    gap: 32px;
  }
  .header-actions {
    margin-left: 0;
    gap: 22px;
  }
  .header-actions .signin {
    display: inline;
  }
  .header-actions .button {
    display: inline-block;
  }
  section {
    padding: 88px 0;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .hero-bottom {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 48px;
  }
  .hero-stage {
    margin: 24px 0 32px;
  }
  .wordmark {
    font-size: min(19.5vw, 250px);
  }
  .faq-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 48px;
  }
  .help-layout {
    grid-template-columns: 2fr 1fr;
    gap: 56px;
  }
  .contact-card {
    position: sticky;
    top: 24px;
  }
  .legal-layout {
    grid-template-columns: 240px 1fr;
    gap: 56px;
  }
  .toc {
    position: sticky;
    top: 24px;
    align-self: start;
  }
  .footer-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
  .footer-row nav {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}

/* The sign-in page on wider screens: form left, photo right. */
@media (min-width: 900px) {
  .auth {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 40px;
  }
  .auth-photo {
    display: block;
  }
  .auth-single {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }
  .auth-footer .mail {
    margin-left: auto;
  }
}

/* Try it on wider screens: editor left, client's view right (sticky, so it
   stays in sight while typing). */
@media (min-width: 1000px) {
  .demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
  }
  .demo-tabs {
    display: none;
  }
  .demo[data-view] .demo-preview,
  .demo[data-view] .demo-editor {
    display: block;
  }
  .demo[data-view] .demo-editor {
    display: grid;
  }
  .demo-preview {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 16px;
  }
}

/* The homepage's scroll motion (web/site-motion.js): no shadow on the
   phone while it's zoomed in (a shadowed picture gets stretched, blurry). */
.hero.zooming .hero-phone {
  filter: none;
}
