/* createwithoscar: the OSCAR website. One stylesheet, no build step for it. */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/raleway-latin-wght-normal.woff2") format("woff2");
}

:root {
  --coral: #ff5a36;
  --pink: #ff3663;
  --brand: linear-gradient(100deg, var(--coral), var(--pink));
  --ink: #2b2b33;
  --soft: #6b6b78;
  --line: #e6e6ec;
  --paper: #ffffff;
  --wash: #f4f4f7;
  --radius: 14px;
  --width: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "lnum";
}

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

a {
  color: var(--pink);
}

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

p {
  margin: 0;
}

.wrap {
  width: min(100% - 40px, var(--width));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
}

/* ---- the bar across the top ---------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.top .logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: #ffffff;
}

/* The menu button: three bars that become a cross. Shown on narrow screens
   only, where seven links would wrap into two rows. */
.menu {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.menu:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.menu span,
.menu span::before,
.menu span::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s, opacity 0.2s;
}

.menu span {
  top: 21px;
}

.menu span::before {
  left: 0;
  top: -7px;
}

.menu span::after {
  left: 0;
  top: 7px;
}

.top.open .menu span {
  background: transparent;
}

.top.open .menu span::before {
  transform: translateY(7px) rotate(45deg);
}

.top.open .menu span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-size: 16px;
  }

  .top.open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 24px;
    border-bottom: 0;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* ---- buttons ------------------------------------------------------------------ */
/* A column that centres what it holds: beside a taller button (one with a
   <small> line) a button is stretched to the same height, and its words stay
   in the middle rather than at the top. */
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(255, 54, 99, 0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(255, 54, 99, 0.8);
}

.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
  color: inherit;
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px currentColor;
}

.btn small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

/* ---- the opening ------------------------------------------------------------------ */
.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20, 16, 24, 0.72), rgba(20, 16, 24, 0.82)),
    url("img/hero.webp") center / cover no-repeat,
    #1b171f;
  padding: 84px 0 0;
}

.hero h1 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(34px, 5.4vw, 58px);
}

.hero .lead {
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  opacity: 0.92;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero .shot-wrap {
  position: relative;
  margin: 56px auto -120px;
}

.hero .shot {
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
}

.hero figcaption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(20, 16, 24, 0.82);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.after-hero {
  padding-top: 170px;
}

/* ---- sections ------------------------------------------------------------------------- */
section {
  padding: 84px 0;
}

.wash {
  background: var(--wash);
}

.head {
  max-width: 60ch;
  margin: 0 auto 46px;
  text-align: center;
}

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

.head p {
  margin-top: 14px;
  color: var(--soft);
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card h3 {
  font-size: 20px;
  color: var(--pink);
}

.card p {
  margin-top: 10px;
  color: var(--soft);
  font-size: 16px;
}

.card .icon {
  width: 86px;
  margin-bottom: 14px;
}

.centre {
  text-align: center;
}

.centre .icon {
  margin-inline: auto;
}

.plain {
  border: 0;
  background: transparent;
  padding: 0 8px;
}

/* ---- three protocols ---------------------------------------------------------------------- */
.proto {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---- templates ------------------------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #17151c;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.5);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery .wide {
  grid-column: span 6;
  aspect-ratio: 3 / 2;
}

.gallery .tall {
  grid-column: span 3;
  aspect-ratio: 3 / 4;
}

/* ---- steps ------------------------------------------------------------------------------------ */
.steps {
  counter-reset: step;
}

.steps .card {
  position: relative;
}

.apps {
  columns: 3 180px;
  column-gap: 30px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 16px;
}

.apps li {
  padding: 3px 0;
  break-inside: avoid;
}

/* ---- two columns: words and a picture ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
}

.split h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.split p {
  margin-top: 16px;
  color: var(--soft);
}

.split ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--soft);
}

.split li {
  margin: 6px 0;
}

.phone {
  width: min(100%, 300px);
  margin-inline: auto;
  border: 10px solid #17151c;
  border-radius: 34px;
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.55);
}

/* ---- the plans: Free and Pro, side by side ------------------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.plan-pro {
  border: 2px solid var(--pink);
  box-shadow: 0 22px 44px -26px rgba(255, 54, 99, 0.45);
}

.plan h3 {
  font-size: 20px;
  color: var(--pink);
}

.plan .price {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.plan .price span {
  font-size: 18px;
  font-weight: 600;
  color: var(--soft);
}

.plan .price small {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--soft);
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 16px;
}

.plan .btn {
  align-self: flex-start;
  margin-top: auto;
}

.plan .how {
  margin-top: auto;
  font-size: 14px;
  color: var(--soft);
}

/* ---- the trial offer ------------------------------------------------------------------------------ */
.offer {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #ffffff;
  text-align: center;
}

.offer p + p {
  margin-top: 12px;
}

.offer .small {
  font-size: 14px;
  opacity: 0.92;
}

.offer a {
  color: #ffffff;
}

/* ---- the quote -------------------------------------------------------------------------------------- */
.quote {
  background: var(--brand);
  color: #ffffff;
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
}

.quote cite {
  display: block;
  margin-bottom: 18px;
  font-style: normal;
  font-size: 15px;
  opacity: 0.9;
}

/* ---- contact, and the foot of the page ---------------------------------------------------------------- */
.contact {
  text-align: center;
}

/* A section's one link onward, centred under it. */
.more-link {
  text-align: center;
  margin-top: 40px;
}

/* What you might ask an AI assistant: the asking in ink, what comes of it under it. */
.asks .ask {
  display: block;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asks .card .said {
  margin-top: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.contact .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.foot {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.foot a {
  color: var(--soft);
}

/* ---- pages of words: getting started, download, privacy, terms ------------------------------------------ */
.banner {
  padding: 58px 0 50px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.banner h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}

.banner p {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--soft);
}

.prose {
  max-width: 760px;
  padding: 56px 0 84px;
}

.prose h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 6px;
}

.prose h2 {
  margin: 46px 0 12px;
  font-size: 26px;
}

.prose h3 {
  margin: 30px 0 8px;
  font-size: 19px;
  color: var(--pink);
}

.prose p,
.prose ul,
.prose ol {
  margin: 14px 0;
}

.prose li {
  margin: 7px 0;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--wash);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* ---- the guides ------------------------------------------------------------ */
.guides .card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.guides .card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.guides-files {
  margin: 20px 0 30px;
}

.prose .eyebrow {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  margin: 18px 0 26px;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose td code {
  white-space: nowrap;
}

/* A video that is a picture until pressed: YouTube loads nothing before that. */
.video {
  position: relative;
  margin: 26px 0 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #000;
}

.video iframe,
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  display: block;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.video-play:hover img {
  opacity: 1;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 40px no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.video-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.prose .video-note {
  margin: 0 0 26px;
  color: var(--soft);
  font-size: 14px;
}

.prose .note {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--pink);
  border-radius: 0 10px 10px 0;
  background: var(--wash);
}

.prose figure {
  margin: 26px 0;
}

.prose figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prose figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.downloads .card h3 {
  color: var(--ink);
}

.downloads .btn {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  padding: 11px 16px;
}

/* ---- narrower screens --------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  section {
    padding: 62px 0;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .gallery .wide {
    grid-column: span 12;
  }

  .gallery .tall {
    grid-column: span 6;
  }

  .hero .shot-wrap {
    margin-bottom: -60px;
  }

  .after-hero {
    padding-top: 100px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }

  .hero {
    padding-top: 56px;
  }
}

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

  .btn,
  .gallery img {
    transition: none;
  }
}

/* Questions people ask, on How it works: each a line that opens. */
.faq {
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  font-weight: 400;
  color: var(--pink);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--soft);
}

/* ---- a public link: the Pro feature the home page leads with ------------------------------------ */
.public-band {
  background: var(--brand);
  color: #ffffff;
}
.public-band .eyebrow,
.public-band .head p {
  color: rgba(255, 255, 255, 0.88);
}
.public-band .head h2 {
  color: #ffffff;
}
.public-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.public-points li::before {
  content: "\2713";
  margin-right: 8px;
}
.btn-light {
  background: #ffffff;
  color: var(--pink);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.35);
}
