/* folino's pages, on top of style.css.
   The pale blue wash is the app icon's: white fading to a cool blue. Everything
   else - type, accent, badges, light/dark switching - is style.css, which these
   pages share with harmolo.com, so moving between the two reads as one maker. */

/* ---------------------------------------------------------------- tokens */

:root {
  --fol-wash-top: #ffffff;
  --fol-wash-bottom: #e4edfa;
  --fol-band: #f3f6fc;
  --fol-screen-border: rgba(0, 0, 0, 0.08);
  --fol-screen-shadow: 0 18px 50px rgba(30, 60, 110, 0.16);
  --fol-wordmark-filter: none;
  --fol-wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fol-wash-top: #000000;
    --fol-wash-bottom: #0e1828;
    --fol-band: #0d1420;
    --fol-screen-border: rgba(255, 255, 255, 0.12);
    --fol-screen-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    --fol-wordmark-filter: invert(1);
  }
}

/* Headings break between phrases, never inside a word: "音を取 / る" is what the
   default line breaking does to Japanese. `keep-all` allows a break only after
   punctuation and at the <wbr> the copy places, so every browser breaks a heading
   where the copy says; `anywhere` is the escape for a screen too narrow for a
   phrase. Chrome's auto-phrase is left to the body lists only - on headings it
   split その場で into その / 場で. */
.fol-hero__title,
.fol-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@supports (word-break: auto-phrase) {
  .fol-points li {
    word-break: auto-phrase;
  }
}

/* Korean is written with spaces between words, and a line breaks at those spaces;
   the default breaks between any two syllables, so 악기를 can end up as 악기 / 를. */
html:lang(ko) body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.fol-container {
  width: 100%;
  max-width: var(--fol-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- header */

.fol-header__inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.fol-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.fol-brand img {
  display: block;
  height: 28px;
  width: auto;
  filter: var(--fol-wordmark-filter);
}

.fol-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
  font-size: 0.88rem;
}

.fol-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.fol-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.fol-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fol-button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.fol-button:hover {
  background: var(--accent-hover);
}

/* ------------------------------------------------------------------ hero */

.fol-hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  text-align: center;
  background: linear-gradient(180deg, var(--fol-wash-top) 0%, var(--fol-wash-bottom) 100%);
  overflow: hidden;
}

.fol-hero__icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 14px rgba(30, 60, 110, 0.18));
}

.fol-hero__title {
  margin: 0 auto;
  max-width: 18em;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* A run of text that wraps as a whole: a line breaks around it before it breaks
   inside it, and inside only once the run alone is wider than the line. */
.fol-keep {
  display: inline-block;
}

.fol-hero__subtitle {
  margin: 20px auto 0;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* The lead is set like the headings: breaks only after punctuation and at the
   copy's <wbr>, so a Japanese or Chinese line never ends inside a word. */
.fol-hero__lead {
  margin: 22px auto 0;
  max-width: 46em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: var(--muted);
}

.fol-hero__note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.fol-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

/* The iPad carries the scene; the iPhone overlaps its lower right corner, so the
   two read as one desk rather than two separate pictures. */
.fol-hero__devices {
  position: relative;
  width: min(100%, 720px);
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-bottom: 0;
}

.fol-hero__devices .fol-screen--ipad {
  width: 82%;
  margin-bottom: -18%;
}

.fol-hero__devices .fol-screen--iphone {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 26%;
}

/* ------------------------------------------------------------- screens */

/* The captures already include the status bar, so a screen needs no bezel: a
   rounded clip, a hairline and a soft shadow are enough to read as a device. */
.fol-screen {
  display: block;
  height: auto;
  border: 1px solid var(--fol-screen-border);
  box-shadow: var(--fol-screen-shadow);
  background: var(--bg);
}

/* Corner radii scale with the displayed width, so a phone drawn small is not
   rounder than one drawn large. Percentages on border-radius are taken from the
   width horizontally and the height vertically, so each pair is the same length
   divided by the device's aspect ratio: iPhone 440x956 pt (2.17), iPad 1032x1376
   (1.33), Mac window 1440x900 (0.625). */
.fol-screen--ipad {
  border-radius: 3.6% / 2.7%;
}

.fol-screen--iphone {
  border-radius: 12.5% / 5.75%;
}

.fol-screen--mac {
  border-radius: 1.2% / 1.92%;
}

/* -------------------------------------------------------------- features */

.fol-section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.fol-section--band {
  background: var(--fol-band);
}

.fol-eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.fol-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.fol-body {
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}

.fol-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.fol-points li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  line-height: 1.6;
}

.fol-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.fol-note {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.fol-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.fol-feature--reverse .fol-feature__text {
  order: 2;
}

.fol-feature__media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4%;
}

.fol-feature__media .fol-screen--ipad {
  width: 100%;
  max-width: 520px;
}

.fol-feature__media .fol-screen--iphone {
  width: 46%;
  max-width: 300px;
}

.fol-feature__media .fol-screen--mac {
  width: 100%;
}

/* An iPad with an iPhone in front of its lower right corner, each showing a
   different part of the same job. */
.fol-stack {
  position: relative;
  display: block;
  padding: 0 14% 10% 0;
}

.fol-stack .fol-screen--ipad {
  width: 100%;
}

.fol-stack .fol-screen--iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
}

/* A Mac window with an iPhone in front of its lower right corner: the same
   score on two of the user's devices. */
.fol-duo {
  position: relative;
  display: block;
  padding: 0 8% 14% 0;
}

/* Narrow enough that the phone stays shorter than the Mac window behind it. */
.fol-duo .fol-screen--iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
}

/* The Mac aside inside the editing section: a second, smaller statement that
   belongs to the same feature, so it sits under the text rather than in a row
   of its own. */
.fol-aside {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.fol-aside__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.fol-aside__body {
  margin: 8px 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------- formats */

.fol-formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 0;
}

.fol-formats--single {
  grid-template-columns: minmax(0, 1fr);
}

.fol-formats__label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.fol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fol-chips li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.86rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------- pricing */

.fol-center {
  text-align: center;
}

.fol-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 40px auto 0;
  text-align: left;
}

.fol-plan {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.fol-plan__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.fol-plan .fol-points {
  margin-top: 16px;
}

.fol-plan__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

/* The logo's f descends well below the word, so the word itself reads at about
   half this height. */
.fol-plan__logos img {
  display: block;
  height: 34px;
  width: auto;
}

/* Text written one sentence per line. */
.fol-lines span {
  display: block;
}

.fol-plan__body {
  margin: 16px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.fol-plans + .fol-note {
  max-width: 820px;
  margin: 20px auto 0;
}

/* ------------------------------------------------------------------- faq */

.fol-faq {
  max-width: 760px;
  margin: 0 auto;
}

.fol-faq__list {
  margin: 32px 0 0;
  border-top: 1px solid var(--border);
}

.fol-faq__item {
  border-bottom: 1px solid var(--border);
}

.fol-faq__item > summary {
  position: relative;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.fol-faq__item > summary::-webkit-details-marker {
  display: none;
}

.fol-faq__item > summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.fol-faq__item[open] > summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.fol-faq__answer {
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.85;
}

.fol-faq__answer p {
  margin: 0 0 0.8em;
}

.fol-faq__answer p:last-child {
  margin-bottom: 0;
}

.fol-faq__more {
  margin: 28px 0 0;
  text-align: center;
}

/* The FAQ page itself: every answer open, grouped under category headings, each
   question reachable by its fixed id. */
.fol-faq-page {
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 9vw, 104px);
}

.fol-faq-page__title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fol-faq-page__lead {
  margin: 14px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.fol-faq-page__category {
  margin: 56px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.fol-faq-page .fol-faq__list {
  margin-top: 12px;
}

.fol-faq-entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.fol-faq-entry__q {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}

.fol-faq-entry .fol-faq__answer {
  padding: 10px 0 0;
}

.fol-faq-entry:target .fol-faq-entry__q {
  color: var(--accent);
}

.fol-contact {
  margin: 56px 0 0;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--fol-band);
}

.fol-contact__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.fol-contact__body {
  margin: 8px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

/* -------------------------------------------------------------- download */

.fol-download {
  text-align: center;
  background: linear-gradient(180deg, var(--fol-wash-top) 0%, var(--fol-wash-bottom) 100%);
}

.fol-download .fol-hero__icon {
  width: 72px;
  height: 72px;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 820px) {
  .fol-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .fol-feature--reverse .fol-feature__text {
    order: 0;
  }

  .fol-feature__media {
    max-width: 520px;
    margin: 0 auto;
  }

  .fol-nav {
    display: none;
  }

  .fol-header__actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .fol-formats,
  .fol-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .fol-container {
    padding: 0 20px;
  }
}
