/* The website extends the Mini App's paper palette and uses its original assets. */
.brand-clip {
  width: 43px;
  height: 51px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(44px, 5.1vw, 71px);
}

.hero-description {
  max-width: 510px;
}

.hero-description a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #aab894;
}

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

.hero-actions .button {
  gap: 13px;
  padding-inline: 19px;
}

.hero-footnote {
  display: block;
  line-height: 1.6;
}

.hero-example-link {
  margin-top: 15px;
  font-size: 13px;
}

.hero-paper img {
  aspect-ratio: 1240 / 1754;
  object-fit: contain;
}

.capabilities-overview {
  padding-top: 56px;
}

.overview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.overview-heading h2 {
  font-size: 29px;
  letter-spacing: -.7px;
}

.overview-heading p,
.subject-line p,
.writing-intro > p,
.capture-flow > p,
.own-lead,
.tool-rows p {
  color: var(--muted);
}

.capability-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--border);
}

.capability-links a {
  display: flex;
  gap: 17px;
  align-items: center;
  min-height: 114px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  line-height: 1.4;
}

.capability-links a:hover {
  color: #607330;
}

.capability-links img {
  width: 50px;
  height: 59px;
  object-fit: contain;
  flex-shrink: 0;
}

.capability-links small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
  font-weight: 400;
}

.subject-line {
  display: flex;
  align-items: center;
  max-width: 700px;
  gap: 22px;
  margin: -16px 0 30px;
}

.subject-line img {
  height: 72px;
  width: 65px;
  object-fit: contain;
}

.example-picker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #eaece2;
  border-radius: 9px;
  padding: 5px;
  margin-bottom: 28px;
}

.example-picker button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 12px 19px;
  font-size: 14px;
  font-weight: 600;
}

.example-picker button[aria-pressed="true"] {
  color: var(--dark);
  background: #fff;
  box-shadow: 0 2px 8px #23362c0a;
}

.worked-example {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 70px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.example-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #667156;
}

.example-explanation h3 {
  margin-top: 12px;
  font-size: 25px;
}

.task-formula {
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1.4;
  margin-top: 14px;
}

.task-text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.solution-steps,
.own-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 30px 0;
}

.solution-steps li,
.own-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-top: 23px;
}

.solution-steps li::before,
.own-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #bac7ab;
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
}

.solution-steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.solution-steps code {
  display: block;
  margin-top: 9px;
  font-family: var(--sans);
  color: var(--green);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.answer-line {
  padding: 17px 20px;
  background: #e9eddb;
  border-left: 3px solid #829553;
  display: flex;
  gap: 22px;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 17px;
}

.answer-line strong {
  font-size: 21px;
  font-weight: 500;
}

.render-example {
  margin: 0;
  padding: 22px;
  background: #eaede1;
  min-width: 0;
}

.render-example img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 25px #23362c15;
  aspect-ratio: 1240 / 1754;
}

.render-example figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-top: 20px;
  color: var(--muted);
}

.render-example figcaption a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.example-provenance {
  font-size: 12px;
  line-height: 1.7;
  color: #68705f;
  max-width: 870px;
  margin-top: 24px;
}

.writing-section {
  background: #edf0e4;
}

.section-heading .section-mascot {
  width: 92px;
  height: 155px;
  object-fit: contain;
  margin-right: 28px;
}

.writing-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
}

.writing-intro > p {
  margin-bottom: 20px;
  font-size: 17px;
}

.writing-note {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid #ccd3bd;
  color: var(--muted);
  font-size: 13px;
}

.writing-note img {
  width: 48px;
  height: 55px;
  object-fit: contain;
}

.writing-examples details {
  border-bottom: 1px solid #cdd4c2;
}

.writing-examples details:first-child {
  border-top: 1px solid #cdd4c2;
}

.writing-examples summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}

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

.writing-examples summary small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: #68775e;
  margin-bottom: 9px;
}

.writing-examples summary > span:last-child {
  font-size: 26px;
  font-weight: 400;
}

.writing-examples details[open] summary > span:last-child {
  transform: rotate(45deg);
}

.writing-detail {
  padding-bottom: 27px;
  font-size: 15px;
}

.writing-detail p + p {
  margin-top: 15px;
}

.writing-detail ol {
  padding-left: 20px;
}

.writing-detail li {
  padding: 4px 0;
}

.writing-detail .example-prompt {
  border-left: 2px solid #9ba97b;
  color: #5c6a50;
  padding-left: 15px;
  margin-bottom: 20px;
  font-size: 13px;
}

.example-how {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.capture-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}

.capture-flow {
  min-width: 0;
}

.capture-title {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}

.capture-title img {
  height: 145px;
  width: 90px;
  object-fit: contain;
}

.capture-title h3 {
  font-size: 29px;
}

.capture-title p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.capture-example {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 25px 28px;
  min-height: 304px;
}

.capture-example > .handwritten {
  font-size: 30px;
  color: #364d75;
  line-height: 1.35;
  margin-top: 15px;
}

.dictation {
  margin-top: 18px;
  font-size: 17px;
}

.capture-result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.capture-result p {
  margin-top: 9px;
  color: var(--muted);
}

.capture-flow > .example-how {
  margin-top: 17px;
}

.own-section {
  padding-block: 92px;
  background: #e4e9d7;
}

.own-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
}

.own-lead {
  font-size: 18px;
  margin-top: 25px;
}

.own-steps p {
  color: #5c684f;
  margin-top: 5px;
  font-size: 14px;
}

.own-footnote {
  color: #576449;
  font-size: 12px;
  margin-top: 14px;
}

.own-mascot {
  height: 275px;
  width: auto;
  margin: 0 auto 25px;
}

.own-method {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 23px 0;
  border-top: 1px solid #bec9ab;
}

.own-method img {
  width: 50px;
  height: 57px;
  object-fit: contain;
}

.own-method h3 {
  font-size: 21px;
}

.own-method small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .4px;
  border: 1px solid #aab995;
  border-radius: 4px;
  padding: 3px 7px;
  vertical-align: middle;
}

.own-method p {
  font-size: 14px;
  color: #5c684f;
  margin-top: 7px;
}

.own-note {
  display: block;
  text-align: center;
  font-size: 32px;
  margin-top: 10px;
  transform: rotate(-3deg);
}

.text-tools-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}

.translation-example {
  padding: 35px;
  background: #eeeee4;
}

.translation-example > img {
  height: 116px;
  width: auto;
  margin-bottom: 26px;
}

.translation-source {
  color: var(--muted);
  border-bottom: 1px solid #d3d7c8;
  padding-block: 24px;
}

.translation-target {
  font-size: 20px;
  padding-block: 24px;
}

.languages {
  margin-top: 20px;
  font-size: 12px;
}

.languages summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 35px;
}

.tool-rows article {
  display: flex;
  align-items: start;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.tool-rows article:first-child {
  padding-top: 0;
}

.tool-rows article:last-child {
  border-bottom: 0;
}

.tool-rows img {
  width: 48px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-rows h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.tool-rows p {
  font-size: 14px;
}

.demo-section {
  padding-top: 30px;
}

.platform-payment-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 25px;
}

.closing-section .platform-actions {
  justify-content: center;
  position: relative;
  margin-top: 32px;
}

.closing-section .platform-actions .button {
  margin-top: 0;
}

.closing-mascot {
  height: 115px;
  width: auto;
  margin: 0 auto 28px;
  position: relative;
}

@media (max-width: 1100px) {
  .hero-actions .button {
    padding-inline: 14px;
    font-size: 13px;
  }

  .worked-example,
  .writing-layout,
  .text-tools-layout,
  .own-layout {
    gap: 40px;
  }

  .capture-columns {
    gap: 35px;
  }
}

@media (max-width: 899px) {
  .hero h1 {
    font-size: 66px;
  }

  .hero-actions .button {
    padding-inline: 22px;
    font-size: 15px;
  }

  .capability-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-heading {
    display: block;
  }

  .overview-heading p {
    margin-top: 10px;
  }

  .worked-example {
    gap: 28px;
    grid-template-columns: 1fr .85fr;
    align-items: start;
  }

  .render-example {
    padding: 14px;
  }

  .writing-layout {
    grid-template-columns: 1fr;
  }

  .writing-note {
    max-width: 560px;
  }

  .capture-columns,
  .text-tools-layout {
    gap: 30px;
  }

  .capture-title {
    gap: 18px;
  }

  .capture-title img {
    width: 60px;
    height: 110px;
  }

  .capture-title h3 {
    font-size: 24px;
  }

  .capture-example {
    padding: 20px;
  }

  .own-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
  }

  .own-mascot {
    height: 225px;
  }

  .own-copy .button {
    padding-inline: 17px;
    font-size: 13px;
    gap: 12px;
  }

  .translation-example {
    padding: 25px;
  }
}

@media (max-width: 649px) {
  .hero h1 {
    font-size: clamp(37px, 9.7vw, 59px);
    letter-spacing: -2px;
  }

  .hero-actions.platform-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }

  .hero-example-link {
    font-size: 12px;
  }

  .capabilities-overview {
    padding-top: 37px;
  }

  .overview-heading h2 {
    font-size: 25px;
  }

  .overview-heading p {
    font-size: 14px;
  }

  .capability-links {
    gap: 0 18px;
  }

  .capability-links a {
    flex-direction: column;
    align-items: start;
    gap: 13px;
    font-size: 14px;
    min-height: 154px;
    padding-block: 22px;
  }

  .capability-links img {
    height: 45px;
    width: 42px;
  }

  .capability-links small {
    font-size: 11px;
  }

  .subject-line {
    gap: 18px;
    margin-top: 0;
    font-size: 14px;
  }

  .subject-line img {
    height: 70px;
    width: 54px;
  }

  .example-picker {
    display: flex;
  }

  .example-picker button {
    padding: 12px 9px;
    font-size: 12px;
    flex: 1;
  }

  .worked-example,
  .capture-columns,
  .own-layout,
  .text-tools-layout {
    grid-template-columns: 1fr;
  }

  .worked-example {
    gap: 32px;
    padding-bottom: 0;
  }

  .render-example {
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
    padding: 20px;
  }

  .section-heading .section-mascot {
    width: 55px;
    height: 95px;
    margin-right: 0;
    margin-top: 18px;
  }

  .writing-section .section-heading {
    flex-direction: row;
    align-items: end;
    gap: 10px;
  }

  .writing-section .section-heading > div {
    min-width: 0;
    flex: 1;
  }

  .writing-section h2 {
    font-size: 31px;
  }

  .writing-intro > p {
    font-size: 16px;
  }

  .writing-examples summary {
    font-size: 18px;
  }

  .capture-columns {
    gap: 48px;
  }

  .capture-title img {
    width: 70px;
    height: 123px;
  }

  .capture-example {
    min-height: 0;
  }

  .own-section {
    padding-block: 65px;
  }

  .own-layout {
    gap: 35px;
  }

  .own-copy .button {
    width: 100%;
    font-size: 14px;
  }

  .own-copy .section-index {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .own-mascot {
    height: 195px;
  }

  .text-tools-layout {
    gap: 38px;
  }

  .translation-example {
    padding: 28px;
  }

  .demo-section {
    padding-top: 5px;
  }

  .closing-section .platform-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .closing-caption {
    line-height: 1.7;
  }
}
