@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
  --ink: #141c1e;
  --ink-2: #1c2629;
  --sand: #ede6dc;
  --sand-dim: #b9b2a6;
  --sage: #8fa998;
  --amber: #d9a05b;
  --amber-dim: #8a6b45;
  --line: #2b3639;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ink);
  color: var(--sand);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.app {
  width: 100%;
  max-width: 520px;
  padding: 32px 24px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--sand);
}

.streak {
  font-size: 13px;
  color: var(--sand-dim);
  display: flex;
  align-items: center;
}

.streak b {
  color: var(--amber);
  font-weight: 600;
}

/* ---- screens ---- */

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* ---- start screen ---- */

#start h2 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 10px;
}

#start p.sub {
  color: var(--sand-dim);
  font-size: 15px;
  margin: 0 0 32px;
  line-height: 1.5;
}

label.field-label {
  font-size: 13px;
  color: var(--sand-dim);
  margin-bottom: 8px;
  display: block;
}

input[type=text] {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--sand);
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 22px;
}

input[type=text]:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(143, 169, 152, .12);
}

.duration-row {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.dur-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sand-dim);
  font-family: inherit;
  font-size: 14px;

  transition:
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    transform .1s ease,
    box-shadow .2s ease;
}

.dur-btn:hover {
  border-color: var(--sand-dim);
  background: rgba(237, 230, 220, .05);
  color: var(--sand);
}

.dur-btn:active {
  transform: translateY(1px);
}

.dur-btn.selected {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(217, 160, 91, .08);
  box-shadow: inset 0 0 0 1px rgba(217, 160, 91, .08);
}

.primary-btn {
  width: 100%;
  padding: 16px 0;
  border-radius: 10px;
  border: none;
  background: var(--amber);
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;

  transition:
    background-color .2s ease,
    transform .1s ease,
    box-shadow .2s ease;
}

.primary-btn:hover:not(:disabled) {
  background: #e3ab68;
  box-shadow: 0 4px 18px rgba(217, 160, 91, .16);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-btn:disabled {
  background: var(--amber-dim);
  cursor: not-allowed;
  opacity: .7;
  box-shadow: none;
}

.ghost-btn {
  width: 100%;
  padding: 14px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sand-dim);
  font-family: inherit;
  font-size: 14px;
  margin-top: 10px;

  transition:
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    transform .1s ease;
}

.ghost-btn:hover {
  border-color: var(--sand-dim);
  background: rgba(237, 230, 220, .05);
  color: var(--sand);
}

.ghost-btn:active {
  transform: translateY(1px);
}

.limit-note {
  text-align: center;
  font-size: 13px;
  color: var(--sand-dim);
  margin-top: 16px;
}

.limit-note a {
  color: var(--amber);
  text-decoration: none;
  transition: color .2s ease;
}

.limit-note a:hover {
  color: var(--sand);
  text-decoration: underline;
}

/* ---- session screen ---- */

#session {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.task-label {
  font-size: 13px;
  color: var(--sand-dim);
  margin-bottom: 26px;
  letter-spacing: .02em;
}

.dot-wrap {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
}

.dot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
      #a9c2b3,
      var(--sage) 60%,
      #6f8a7c 100%);
  animation: breathe 8s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(143, 169, 152, .25);
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(.82);
  }

  50% {
    transform: scale(1.05);
  }
}

.timer {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.breath-label {
  font-size: 12px;
  color: var(--sand-dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.checkin {
  min-height: 44px;
  font-size: 15px;
  color: var(--sage);
  font-style: italic;
  margin-bottom: 36px;
  max-width: 340px;
  opacity: 0;
  transition: opacity .6s ease;
}

.checkin.show {
  opacity: 1;
}

.session-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.icon-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sand-dim);
  font-family: inherit;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition:
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    transform .1s ease;
}

.icon-btn:hover {
  border-color: var(--sand-dim);
  background: rgba(237, 230, 220, .05);
  color: var(--sand);
}

.icon-btn:active {
  transform: translateY(1px);
}

/* ---- pricing screen ---- */

#pricing h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

#pricing p.sub {
  color: var(--sand-dim);
  font-size: 15px;
  line-height: 1.5;
}

/* ---- end screen ---- */

#end {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.end-emoji {
  font-size: 36px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.end-emoji img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

#end h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

#end p.sub {
  color: var(--sand-dim);
  font-size: 14px;
  margin: 0 0 30px;
}

/* ---- completion status ---- */

.status-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 26px;
}

.status-btn {
  flex: 1;
  padding: 14px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sand);
  font-family: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition:
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    transform .1s ease;
}

.status-btn:hover {
  border-color: var(--sand-dim);
  background: rgba(237, 230, 220, .05);
  color: var(--sand);
}

.status-btn:active {
  transform: translateY(1px);
}

.status-btn.chosen {
  border-color: var(--sage);
  background: rgba(143, 169, 152, .12);
  color: var(--sage);
}

/* ---- share card ---- */

.share-card {
  width: 100%;
  max-width: 300px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  text-align: left;
}

.share-card .sc-top {
  font-size: 12px;
  color: var(--sand-dim);
  margin-bottom: 10px;
}

.share-card .sc-task {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.share-card .sc-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--sage);
}

/* ---- end actions ---- */

.end-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 2px;
}

/* Main action */

.end-primary {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 11px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  font-size: 16px;
}

.end-primary i {
  font-size: 14px;
  transition: transform .2s ease;
}

.end-primary:hover i {
  transform: translateX(3px);
}

/* Share action */

.share-action {
  width: 100%;
  height: 46px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(237, 230, 220, .025);

  color: var(--sand-dim);
  font-family: inherit;
  font-size: 14px;

  transition:
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    transform .1s ease;
}

.share-action i {
  font-size: 13px;
}

.share-action:hover {
  border-color: var(--amber-dim);
  background: rgba(217, 160, 91, .06);
  color: var(--amber);
}

.share-action:active {
  transform: translateY(1px);
}

.share-action:disabled {
  opacity: .6;
  cursor: wait;
}

/* Last / quiet action */

.quiet-action {
  width: 100%;
  height: 38px;
  padding: 0;

  border: 0;
  background: transparent;

  color: #697274;
  font-family: inherit;
  font-size: 13px;

  transition:
    color .2s ease,
    background-color .2s ease;
}

.quiet-action:hover {
  color: var(--sand-dim);
}

.quiet-action:active {
  color: var(--sand);
}

/* ---- keyboard focus ---- */

.dur-btn:focus-visible,
.primary-btn:focus-visible,
.ghost-btn:focus-visible,
.icon-btn:focus-visible,
.status-btn:focus-visible,
.share-action:focus-visible,
.quiet-action:focus-visible,
.limit-note a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* ---- footer ---- */

footer {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
  font-size: 11px;
  color: #5a6467;
}

/* ---- images ---- */

img {
  height: 1lh;
  overflow-clip-margin: unset;
}

.streak img {
  height: 1lh;
  width: auto;
  object-fit: contain;
}

.share-card img {
  height: 1lh;
  width: auto;
  object-fit: contain;
}

/* ---- selection / dragging ---- */

* {
  user-select: none;
}

input {
  user-select: text;
}

a {
  -webkit-user-drag: none;
}

button {
  -webkit-tap-highlight-color: transparent;
}
