/* Camel Notes website. Arabic first: every rule uses logical directions, so the English page mirrors itself. */

@font-face { font-family: Alexandria; font-weight: 600; font-display: swap; src: url(/site/fonts/alexandria-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Alexandria; font-weight: 800; font-display: swap; src: url(/site/fonts/alexandria-arabic-800.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Alexandria; font-weight: 600; font-display: swap; src: url(/site/fonts/alexandria-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Alexandria; font-weight: 800; font-display: swap; src: url(/site/fonts/alexandria-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(/site/fonts/plex-arabic-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Plex; font-weight: 500; font-display: swap; src: url(/site/fonts/plex-arabic-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Plex; font-weight: 600; font-display: swap; src: url(/site/fonts/plex-arabic-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(/site/fonts/plex-arabic-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Plex; font-weight: 500; font-display: swap; src: url(/site/fonts/plex-arabic-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Plex; font-weight: 600; font-display: swap; src: url(/site/fonts/plex-arabic-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --paper: #ffffff;
  --mist: #f2f4f3;
  --ink: #22262a;
  --ink-2: #5b6369;
  --line: #e2e7e5;
  --graphite: #2a2b2f;
  --graphite-2: #37383d;
  --camel: #c2570c;
  --camel-deep: #a3470a;
  --oasis: #0f6e6a;
  --oasis-soft: #e3f1ef;
  --radius: 14px;
  --display: Alexandria, Plex, 'Noto Sans Arabic', system-ui, sans-serif;
  --text: Plex, 'Noto Sans Arabic', system-ui, sans-serif;
  --lift: 0 34px 70px -38px rgb(42 43 47 / 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.8;
}
html[lang='en'] body {
  font-size: 17px;
  line-height: 1.65;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.45rem);
  line-height: 1.35;
}
h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  line-height: 1.4;
}
html[lang='en'] h1 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}
html[lang='en'] h2 {
  line-height: 1.15;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
code {
  font-family: var(--text);
  font-size: 0.92em;
  font-weight: 500;
  padding: 0.05em 0.45em;
  border-radius: 6px;
  background: var(--mist);
  /* markdown and commands read left to right, also inside Arabic text */
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--camel);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1.5px solid var(--camel);
  border-radius: 12px;
  background: var(--camel);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--camel-deep);
  border-color: var(--camel-deep);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--mist);
  border-color: var(--line);
}
.btn-ghost svg {
  color: var(--camel);
}
.btn-small {
  padding: 8px 16px;
  font-size: 14.5px;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled {
  border-color: var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
}
.brand .camel {
  width: 38px;
  height: auto;
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 15.5px;
}
.nav a,
.lang {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover,
.lang:hover {
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-start: auto;
  font-size: 15px;
}

/* ---------- hero: the live note ---------- */
.hero {
  padding-block: 64px 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 56px;
  align-items: center;
}
.lede {
  margin-top: 22px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 1.12em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.platforms-line {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 15px;
}
.app {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--lift);
}
.app-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  background: var(--graphite);
  color: #9b9ca3;
}
.app-camel {
  width: 34px;
  height: auto;
  color: #f1f1ef;
  margin-bottom: 10px;
}
.app-side-item {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.app-side-item.on {
  background: var(--graphite-2);
  color: #fff;
}
.note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 40px 40px;
  font-size: 17px;
  line-height: 1.6;
}
.ln {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 1.6em;
  unicode-bidi: isolate;
  text-align: start;
}
.ln-h {
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
}
.box {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #b9c0c3;
  border-radius: 6px;
  color: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.ln-done .box {
  border-color: var(--camel);
  background: var(--camel);
  color: #fff;
}
.ln-done .t {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: #b9c0c3;
}
.ln-callout {
  padding: 10px 14px;
  border-inline-start: 3px solid var(--oasis);
  border-radius: 8px;
  background: var(--oasis-soft);
  color: #0c4f4c;
}
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  transition: opacity 0.3s;
}
.chip {
  background: var(--mist);
  color: var(--ink-2);
}
.tag {
  background: var(--oasis-soft);
  color: var(--oasis);
}
.waiting {
  opacity: 0;
}
.typing .t::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-inline-start: 2px;
  vertical-align: -0.2em;
  background: var(--camel);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- video ---------- */
.video {
  padding-block: 88px;
  background: var(--mist);
  text-align: center;
}
.section-lede {
  margin: 12px auto 36px;
  max-width: 36em;
  color: var(--ink-2);
}
.player {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--graphite);
  box-shadow: var(--lift);
  aspect-ratio: 16 / 9;
}
.player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: inline-flex;
  width: max-content;
  height: max-content;
  align-items: center;
  gap: 12px;
  padding: 16px 28px 16px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--camel);
  color: #fff;
  font: 600 17px var(--text);
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.5);
}
.play:hover {
  background: var(--camel-deep);
}
.player.playing .play {
  display: none;
}
.credit {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- features ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  padding-block: 84px;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature:nth-child(even) .feature-figure {
  order: -1;
}
.feature-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fbeee4;
  color: var(--camel);
}
.feature h2 {
  margin-block: 20px 14px;
}
.feature-text > p {
  color: var(--ink-2);
  font-size: 1.06em;
}
.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 12px;
  margin-block: 12px;
}
.ticks svg {
  flex-shrink: 0;
  margin-top: 0.45em;
  color: var(--oasis);
}
.feature-figure {
  margin: 0;
}
/* the note pane, from its top: title and content, without the format bar at the bottom */
.shot-pane {
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: top;
}
.shot {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--lift);
}

/* ---------- interactive pages ---------- */
.spotlight {
  padding-block: 96px;
  background: linear-gradient(var(--oasis-soft), var(--paper));
}
.spotlight-text {
  max-width: 44em;
}
.spotlight-text p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.06em;
}
.spotlight-shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 44px;
}

/* ---------- and much more ---------- */
.more {
  padding-block: 96px;
}
.more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 64px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.more-list li {
  display: flex;
  gap: 16px;
}
.more-icon {
  display: flex;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--camel);
}
.more-list h3 {
  font-family: var(--text);
  font-size: 1.05em;
  font-weight: 600;
}
.more-list p {
  margin-top: 4px;
  color: var(--ink-2);
}

/* ---------- platforms ---------- */
.devices {
  padding-block: 96px;
  background: var(--mist);
}
.devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.devices-text > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.06em;
}
.platform-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.platform-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.platform-list svg {
  flex-shrink: 0;
  margin-top: 0.3em;
  color: var(--camel);
}
.phones {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.shot-phone {
  width: min(240px, 44%);
  border: 7px solid var(--graphite);
  border-radius: 34px;
}
.shot-phone + .shot-phone {
  margin-top: 56px;
}

/* ---------- private notes ---------- */
.private {
  padding-block: 100px;
  background: var(--graphite);
  color: #e9e9e6;
}
.private h2 {
  color: #fff;
}
.private-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.private-text > p {
  margin-top: 16px;
  color: #c5c6c2;
  font-size: 1.06em;
}
.private .ticks svg {
  color: #f0a26b;
}
.cipher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cipher-card {
  width: 100%;
  padding: 18px 22px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.cipher-dark {
  background: #1d1e21;
  color: #8f9497;
  border: 1px solid #3b3c41;
}
.cipher-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.cipher-dark .cipher-label {
  color: #b5b7b4;
}
.cipher-plain {
  margin-top: 8px;
  font-size: 17px;
}
.cipher-text {
  margin-top: 8px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
  text-align: left;
}
.cipher-lock {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--camel);
  color: #fff;
}

/* ---------- your files ---------- */
.own {
  padding-block: 96px;
}
.own-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.own-text p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.06em;
}
.files {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15.5px;
}
.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
}
.file svg {
  flex-shrink: 0;
  color: var(--ink-2);
}
.file-folder {
  font-weight: 600;
}
.file-folder svg {
  color: var(--camel);
}
.file-md,
.file-file {
  padding-inline-start: 34px;
}
.file-md:nth-child(2) {
  background: var(--mist);
}

/* ---------- questions ---------- */
.faq {
  padding-block: 96px;
  background: var(--mist);
}
.faq-wrap {
  max-width: 820px;
}
.faq h2 {
  margin-bottom: 24px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-weight: 600;
  font-size: 1.05em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--camel);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding-bottom: 22px;
  color: var(--ink-2);
}

/* ---------- end ---------- */
.end {
  padding-block: 110px;
  text-align: center;
}
.end-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.end-camel {
  width: 120px;
  height: auto;
  color: var(--graphite);
  margin-bottom: 26px;
}
.end p {
  margin-block: 14px 30px;
  color: var(--ink-2);
}
.foot {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-size: 15px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--ink);
}
.copy {
  margin-inline-start: auto;
  color: var(--ink-2);
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .hero {
    padding-block: 40px 72px;
  }
  .hero-grid,
  .feature,
  .devices-grid,
  .private-grid,
  .own-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .feature {
    padding-block: 64px;
  }
  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature:nth-child(even) .feature-figure {
    order: 0;
  }
  .more-list,
  .spotlight-shots {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .top-actions .lang {
    font-size: 14px;
  }
  .brand span {
    display: none;
  }
  .app {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
  }
  .app-side-item {
    width: 32px;
    height: 32px;
  }
  .app-camel {
    width: 28px;
  }
  .note {
    padding: 24px 20px 28px;
    font-size: 15.5px;
  }
  .ln-h {
    font-size: 22px;
  }
  .video,
  .more,
  .devices,
  .private,
  .own,
  .faq,
  .spotlight {
    padding-block: 64px;
  }
  .copy {
    margin-inline-start: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
